Метод | Описание | |
---|---|---|
Allocate ( int size ) : |
Allocates unmanaged zero-filled memory
|
|
Free ( |
Frees previously allocated unmanaged memory
|
|
Read ( |
Creates copy of unmanaged memory contet
|
|
Read ( |
Copies content of unmanaged memory to the newly allocated managed structure
|
|
Read ( |
Copies content of unmanaged memory to the existing managed structure
|
|
SizeOf ( |
Returns the unmanaged size of the structure in bytes
|
|
Write ( |
Copies content of byte array to unmanaged memory
|
|
Write ( |
Copies content of structure to unmanaged memory
|
public static Allocate ( int size ) : |
||
size | int | Number of bytes required |
Результат |
public static Free ( |
||
memory | Pointer to the previously allocated unmanaged memory | |
Результат | void |
public static Read ( |
||
memory | Memory that should be copied | |
size | int | Number of bytes that should be copied |
Результат | byte[] |
public static Read ( |
||
memory | Memory that should be copied | |
structureType | Type of structure that should be created | |
Результат | object |
public static Read ( |
||
memory | Memory that should be copied | |
structure | object | Object to which data should be copied |
Результат | void |
public static SizeOf ( |
||
structureType | Type of structure whose size should be determined | |
Результат | int |
public static Write ( |
||
memory | Previously allocated unmanaged memory to copy to | |
content | byte | Byte array to copy from |
Результат | void |
public static Write ( |
||
memory | Previously allocated unmanaged memory to copy to | |
structure | object | Structure to copy from |
Результат | void |