Document Solutions for PDF
GrapeCity.Documents.DX.Windows Assembly / GrapeCity.Documents.DX Namespace / DXUtil Class / WriteAndPosition<T> Method
Type of a data to write.
Memory location to write to.
The data to write.

In This Topic
    WriteAndPosition<T> Method
    In This Topic
    Writes the specified T data to a memory location.
    Syntax
    'Declaration
     
    Public Shared Function WriteAndPosition(Of T As {New, Struct})( _
       ByVal destination As System.IntPtr, _
       ByRef data As T _
    ) As System.IntPtr
    public static System.IntPtr WriteAndPosition<T>( 
       System.IntPtr destination,
       ref T data
    )
    where T: new(), struct

    Parameters

    destination
    Memory location to write to.
    data
    The data to write.

    Type Parameters

    T
    Type of a data to write.

    Return Value

    destination pointer + sizeof(T).
    See Also