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