Impact Acquire SDK .NET
|
A small helper class to create a user supplied buffer on the heap. More...
Public Member Functions | |
UserSuppliedHeapBuffer (int size, int alignment) | |
Constructs a new mv.impact.acquire.helper.UserSuppliedHeapBuffer object. | |
Properties | |
int | alignment [get] |
Returns the alignment of the user buffer in bits. | |
IntPtr | pointer [get] |
Returns an System.IntPtr instance pointing to the aligned memory location. | |
int | size [get] |
Returns the size in bytes of the user buffer. | |
A small helper class to create a user supplied buffer on the heap.
This buffer will internally be pinned in order to not be moved by the garbage collector. This ensures, that this buffer can be passed down into unmanaged layers of the SDK.
|
inline |
Constructs a new mv.impact.acquire.helper.UserSuppliedHeapBuffer object.
[in] | size | The size of the user buffer to allocate in bytes. |
[in] | alignment | The alignment of the user buffer in bits. |
|
get |
Returns the alignment of the user buffer in bits.
Implements IRequestBuffer.
|
get |
Returns an System.IntPtr instance pointing to the aligned memory location.
Implements IRequestBuffer.
|
get |
Returns the size in bytes of the user buffer.
Implements IRequestBuffer.