[]
Reads the specified T data from a memory location.
public static T Read<T>(IntPtr source) where T : struct
Type | Name | Description |
---|---|---|
IntPtr | source | Memory location to read from. |
Type | Description |
---|---|
T | The data read from the memory location. |
Name | Description |
---|---|
T | Type of a data to read. |
Reads the specified T data from a memory location.
public static void Read<T>(IntPtr source, ref T data) where T : struct
Type | Name | Description |
---|---|---|
IntPtr | source | Memory location to read from. |
T | data | The data write to. |
Name | Description |
---|---|
T | Type of a data to read. |
Reads the specified array T[] data from a memory location.
public static IntPtr Read<T>(IntPtr source, T[] data, int offset, int count) where T : struct
Type | Name | Description |
---|---|---|
IntPtr | source | Memory location to read from. |
T[] | data | The data write to. |
int | offset | The offset in the array to write to. |
int | count | The number of T element to read from the memory location. |
Type | Description |
---|---|
IntPtr | source pointer + sizeof(T) * count. |
Name | Description |
---|---|
T | Type of a data to read. |