[]
Writes the content of the specified buffer to the unmanaged memory location of this instance.
public void CopyFrom<T>(T[] buffer) where T : struct
Type | Name | Description |
---|---|---|
T[] | buffer | The buffer. |
Name | Description |
---|---|
T | Type of a buffer element |
Type | Condition |
---|---|
ArgumentNullException | buffer |
InvalidOperationException | DataPointer is Zero |
Writes the content of the specified buffer to the unmanaged memory location of this instance.
public void CopyFrom<T>(T[] buffer, int offset, int count) where T : struct
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. |
Name | Description |
---|---|
T |
Type | Condition |
---|---|
ArgumentNullException | buffer |
InvalidOperationException | DataPointer is Zero |
ArgumentOutOfRangeException | buffer;Total buffer size cannot be larger than size of this data pointer |