Impact Acquire SDK .NET
UserSuppliedHeapBuffer Class Reference

A small helper class to create a user supplied buffer on the heap. More...

Inheritance diagram for UserSuppliedHeapBuffer:
[legend]

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.
 

Detailed Description

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.

Examples
CaptureToUserMemory.cs.

Constructor & Destructor Documentation

◆ UserSuppliedHeapBuffer()

UserSuppliedHeapBuffer ( int size,
int alignment )
inline

Constructs a new mv.impact.acquire.helper.UserSuppliedHeapBuffer object.

Parameters
[in]sizeThe size of the user buffer to allocate in bytes.
[in]alignmentThe alignment of the user buffer in bits.

Property Documentation

◆ alignment

int alignment
get

Returns the alignment of the user buffer in bits.

Implements IRequestBuffer.

◆ pointer

IntPtr pointer
get

Returns an System.IntPtr instance pointing to the aligned memory location.

Implements IRequestBuffer.

Examples
CaptureToUserMemory.cs.

◆ size

int size
get

Returns the size in bytes of the user buffer.

Implements IRequestBuffer.

Examples
CaptureToUserMemory.cs.