[]
Writes the specified T data to a memory location.
public static void Write<T>(IntPtr destination, ref T data) where T : struct
Public Shared Sub Write(Of T As Structure)(destination As IntPtr, ByRef data As T)
| 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
Public Shared Function Write(Of T As Structure)(destination As IntPtr, data As T(), offset As Integer, count As Integer) As IntPtr
| 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. |