CopyTo<T> Method (DataPointer)
In This Topic
Reads the content of the unmanaged memory location of this instance to the specified buffer.
Syntax
'Declaration
Public Sub CopyTo(Of As {New, Struct})( _
ByVal () As , _
ByVal As Integer, _
ByVal As Integer _
)
public void CopyTo<>(
[] ,
int ,
int
)
where T: new(), struct
Parameters
- buffer
- The buffer.
- offset
- The offset in the array to write to.
- count
- The number of T element to read from the memory location.
Type Parameters
- T
- Type of a buffer element
Exceptions
See Also