Method | Description | |
---|---|---|
CopyFrom ( |
Copies the data in data into this MemoryHolder.
|
|
CopyTo ( |
Copies memory from one location to another keeping the associated memory holders alive during the operation.
|
|
GetSubBlock ( int offset ) : |
||
MemoryHolder ( |
Creates a new MemoryHolder at the specified address which is not tracked by us and we will never free.
|
|
MemoryHolder ( |
Creates a new MemoryHolder at the specified address which will keep alive the parent memory holder.
|
|
ReadByte ( int offset ) : byte | ||
ReadInt16 ( int offset ) : short | ||
ReadInt32 ( int offset ) : int | ||
ReadInt64 ( int offset ) : long | ||
ReadIntPtr ( int offset ) : |
||
ReadMemoryHolder ( int offset ) : |
||
WriteByte ( int offset, byte value ) : void | ||
WriteInt16 ( int offset, short value ) : void | ||
WriteInt32 ( int offset, int value ) : void | ||
WriteInt64 ( int offset, long value ) : void | ||
WriteIntPtr ( int offset, |
||
WriteIntPtr ( int offset, |
Method | Description | |
---|---|---|
AddObject ( object key, object value ) : void |
Used to track the lifetime of objects when one memory region depends upon another memory region. For example if you have an array of objects that each have an element which has it's own lifetime the array needs to keep the individual elements alive. The keys used here match CPython's keys as tested by CPython's test_ctypes. Typically they are a string which is the array index, "ffffffff" when from_buffer is used, or when it's a simple type there's just a string instead of the full dictionary - we store that under the key "str".
|
|
EnsureObjects ( ) : PythonDictionary | ||
MemoryHolder ( int size ) : System | ||
ReadAnsiString ( |
||
ReadAnsiString ( |
||
ReadAnsiString ( int offset ) : string | ||
ReadAnsiString ( int offset, int length ) : string | ||
ReadUnicodeString ( int offset ) : string | ||
ReadUnicodeString ( int offset, int length ) : string | ||
WriteAnsiString ( int offset, string value ) : void | ||
WriteUnicodeString ( int offset, string value ) : void |
public CopyFrom ( |
||
source | ||
size | ||
return | void |
public CopyTo ( |
||
destAddress | ||
writeOffset | int | |
size | int | |
return | void |
public GetSubBlock ( int offset ) : |
||
offset | int | |
return |
public MemoryHolder ( |
||
data | ||
size | int | |
return | System |
public MemoryHolder ( |
||
data | ||
size | int | |
parent | ||
return | System |
public ReadIntPtr ( int offset ) : |
||
offset | int | |
return |
public ReadMemoryHolder ( int offset ) : |
||
offset | int | |
return |
public WriteByte ( int offset, byte value ) : void | ||
offset | int | |
value | byte | |
return | void |
public WriteInt16 ( int offset, short value ) : void | ||
offset | int | |
value | short | |
return | void |
public WriteInt32 ( int offset, int value ) : void | ||
offset | int | |
value | int | |
return | void |
public WriteInt64 ( int offset, long value ) : void | ||
offset | int | |
value | long | |
return | void |
public WriteIntPtr ( int offset, |
||
offset | int | |
value | ||
return | void |
public WriteIntPtr ( int offset, |
||
offset | int | |
address | ||
return | void |