[]
        
(Showing Draft Content)

C1.Util.DX.DataPointer.CopyTo

CopyTo Method

CopyTo<T>(T[], int, int)

Reads the content of the unmanaged memory location of this instance to the specified buffer.

Declaration
public void CopyTo<T>(T[] buffer, int offset, int count) where T : struct
Parameters
Type Name Description
T[] buffer

The buffer.

int offset

The offset in the array to write to.

int count

The number of T element to read from the memory location.

Type Parameters
Name Description
T

Type of a buffer element

Exceptions
Type Condition
ArgumentNullException

buffer

InvalidOperationException

DataPointer is Zero

ArgumentOutOfRangeException

buffer;Total buffer size cannot be larger than size of this data pointer