ComponentOne Bitmap for WinForms
C1.Win.C1DX.4.8 Assembly / C1.Util.DX Namespace / DataPointer Structure / CopyTo<T> Method
Type of a buffer element
The buffer.
The offset in the array to write to.
The number of T element to read from the memory location.

In This Topic
    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 T As {New, Struct})( _
       ByVal buffer() As T, _
       ByVal offset As System.Integer, _
       ByVal count As System.Integer _
    ) 
    public void CopyTo<T>( 
       T[] buffer,
       System.int offset,
       System.int count
    )
    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
    ExceptionDescription
    buffer
    DataPointer is Zero
    buffer;Total buffer size cannot be larger than size of this data pointer
    See Also