[This is preliminary documentation and is subject to change.]

Gets a pointer to an allocated umanaged memory buffer.

Namespace: org.critterai.interop
Assembly: cai-util (in cai-util.dll) Version: 0.5.0.0 (0.5.0.0)

Syntax

         
 C#  Visual Basic  Visual C++ 
public static IntPtr GetBuffer(
	int size,
	bool zeroMemory
)
Public Shared Function GetBuffer ( _
	size As Integer, _
	zeroMemory As Boolean _
) As IntPtr
public:
static IntPtr GetBuffer(
	int size, 
	bool zeroMemory
)

Parameters

size
Int32
The size, in bytes, of the buffer.
zeroMemory
Boolean
If true the the content of the buffer will be zeroed.

Return Value

A pointer to an allocated unmanaged memory butter.

See Also