Метод | Описание | |
---|---|---|
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, |
Метод | Описание | |
---|---|---|
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 | ||
Результат | void |
public CopyTo ( |
||
destAddress | ||
writeOffset | int | |
size | int | |
Результат | void |
public GetSubBlock ( int offset ) : |
||
offset | int | |
Результат |
public MemoryHolder ( |
||
data | ||
size | int | |
Результат | System |
public MemoryHolder ( |
||
data | ||
size | int | |
parent | ||
Результат | System |
public ReadIntPtr ( int offset ) : |
||
offset | int | |
Результат |
public ReadMemoryHolder ( int offset ) : |
||
offset | int | |
Результат |
public WriteByte ( int offset, byte value ) : void | ||
offset | int | |
value | byte | |
Результат | void |
public WriteInt16 ( int offset, short value ) : void | ||
offset | int | |
value | short | |
Результат | void |
public WriteInt32 ( int offset, int value ) : void | ||
offset | int | |
value | int | |
Результат | void |
public WriteInt64 ( int offset, long value ) : void | ||
offset | int | |
value | long | |
Результат | void |
public WriteIntPtr ( int offset, |
||
offset | int | |
value | ||
Результат | void |
public WriteIntPtr ( int offset, |
||
offset | int | |
address | ||
Результат | void |