[]
        
(Showing Draft Content)

C1.Util.DX.DXUtil.AllocateMemory

AllocateMemory Method

AllocateMemory(int, int)

Allocate an aligned memory buffer.

Declaration
public static IntPtr AllocateMemory(int sizeInBytes, int align = 16)
Parameters
Type Name Description
int sizeInBytes

Size of the buffer to allocate.

int align

Alignment, 16 bytes by default.

Returns
Type Description
IntPtr

A pointer to a buffer aligned.

Remarks

To free this buffer, call FreeMemory(IntPtr).