mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-29 11:53:23 +08:00
[~] updated : loadArray returns python list, not dict
git-svn-id: https://pykd.svn.codeplex.com/svn@61345 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
parent
1604ec506e
commit
5e4ad89747
@ -27,14 +27,15 @@ loadArray( ULONG64 address, ULONG number, BOOLEAN phyAddr = FALSE )
|
|||||||
|
|
||||||
if ( loadMemory( address, buffer, number*sizeof(T), phyAddr ) )
|
if ( loadMemory( address, buffer, number*sizeof(T), phyAddr ) )
|
||||||
{
|
{
|
||||||
boost::python::dict arr;
|
boost::python::list lst;
|
||||||
|
|
||||||
for ( ULONG i = 0; i < number; ++i )
|
for ( ULONG i = 0; i < number; ++i )
|
||||||
arr[i] = buffer[i];
|
lst.append( buffer[i] );
|
||||||
|
//arr[i] = buffer[i];
|
||||||
|
|
||||||
delete[] buffer;
|
delete[] buffer;
|
||||||
|
|
||||||
return arr;
|
return lst;
|
||||||
}
|
}
|
||||||
|
|
||||||
delete[] buffer;
|
delete[] buffer;
|
||||||
|
Loading…
Reference in New Issue
Block a user