Document Solutions for PDF
GrapeCity.Documents.DX.Windows Assembly / GrapeCity.Documents.DX Namespace / DXUtil Class / AllocateMemory Method
Size of the buffer to allocate.
Alignment, 16 bytes by default.

In This Topic
    AllocateMemory Method
    In This Topic
    Allocate an aligned memory buffer.
    Syntax
    'Declaration
     
    Public Shared Function AllocateMemory( _
       ByVal sizeInBytes As System.Integer, _
       Optional ByVal align As System.Integer _
    ) As System.IntPtr
    public static System.IntPtr AllocateMemory( 
       System.int sizeInBytes,
       System.int align
    )

    Parameters

    sizeInBytes
    Size of the buffer to allocate.
    align
    Alignment, 16 bytes by default.

    Return Value

    A pointer to a buffer aligned.
    Remarks
    To free this buffer, call FreeMemory.
    See Also