Reads the content of the unmanaged memory location of this instance to the specified buffer.
シンタックス
'宣言
Public Sub CopyTo(Of As {New, Struct})( _
ByVal () As , _
ByVal As System.Integer, _
ByVal As System.Integer _
)
public void CopyTo<>(
[] ,
System.int ,
System.int
)
where T: new(), struct
パラメータ
- buffer
- The buffer.
- offset
- The offset in the array to write to.
- count
- The number of T element to read from the memory location.
型パラメータ
- T
- Type of a buffer element
例外
例外 | 解説 |
System.ArgumentNullException | buffer |
System.InvalidOperationException | DataPointer is Zero |
System.ArgumentOutOfRangeException | buffer;Total buffer size cannot be larger than size of this data pointer |
参照