[]
        
(Showing Draft Content)

C1.Util.DX.DataPointer.CopyFrom

CopyFrom Method

CopyFrom<T>(T[])

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

Declaration
public void CopyFrom<T>(T[] buffer) where T : struct
Parameters
Type Name Description
T[] buffer

The buffer.

Type Parameters
Name Description
T

Type of a buffer element

Exceptions
Type Condition
ArgumentNullException

buffer

InvalidOperationException

DataPointer is Zero

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

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

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

The buffer to read from.

int offset

The offset in the array to read from.

int count

The number of T element to write to the memory location.

Type Parameters
Name Description
T
Exceptions
Type Condition
ArgumentNullException

buffer

InvalidOperationException

DataPointer is Zero

ArgumentOutOfRangeException

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