ComponentOne Bitmap for WPF
C1.WPF.DX.4.5.2 Assembly / C1.Util.DX Namespace / DXUtil Class / ReadAndPosition<T> Method
Type of a data to read.
Memory location to read from.
The data write to.

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

    Parameters

    source
    Memory location to read from.
    data
    The data write to.

    Type Parameters

    T
    Type of a data to read.

    Return Value

    source pointer + sizeof(T).
    See Also