[]
        
(Showing Draft Content)

C1.Util.DX.DXUtil.Read

Read Method

Read<T>(IntPtr)

Reads the specified T data from a memory location.

Declaration
public static T Read<T>(IntPtr source) where T : struct
Parameters
Type Name Description
IntPtr source

Memory location to read from.

Returns
Type Description
T

The data read from the memory location.

Type Parameters
Name Description
T

Type of a data to read.

Read<T>(IntPtr, ref T)

Reads the specified T data from a memory location.

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

Memory location to read from.

T data

The data write to.

Type Parameters
Name Description
T

Type of a data to read.

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

Reads the specified array T[] data from a memory location.

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

Returns
Type Description
IntPtr

source pointer + sizeof(T) * count.

Type Parameters
Name Description
T

Type of a data to read.