[]
        
(Showing Draft Content)

C1.Util.DX.DXUtil.Write

Write Method

Write<T>(IntPtr, ref T)

Writes the specified T data to a memory location.

Declaration
public static void Write<T>(IntPtr destination, ref T data) where T : struct
Parameters
Type Name Description
IntPtr destination

Memory location to write to.

T data

The data to write.

Type Parameters
Name Description
T

Type of a data to write.

Write<T>(IntPtr, T[], int, int)

Writes the specified array T[] data to a memory location.

Declaration
public static IntPtr Write<T>(IntPtr destination, T[] data, int offset, int count) where T : struct
Parameters
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.

Returns
Type Description
IntPtr

destination pointer + sizeof(T) * count.

Type Parameters
Name Description
T

Type of a data to write.