Struct SnapshotDynamicBuffersHelper
Helper class for managing ghost buffers data
Syntax
public struct SnapshotDynamicBuffersHelper
Methods
CalculateBufferCapacity(UInt32, out UInt32)
Declaration
public static uint CalculateBufferCapacity(uint dynamicDataSize, out uint slotSize)
Parameters
Type |
Name |
Description |
UInt32 |
dynamicDataSize |
|
UInt32 |
slotSize |
|
Returns
GetDynamicDataCapacity(UInt32, Int32)
Return the currently available space (masks + buffer data) avaiable in each slot
Declaration
public static uint GetDynamicDataCapacity(uint headerSize, int length)
Parameters
Returns
GetDynamicDataChangeMaskSize(Int32, Int32)
Compute the size of the bitmask for the given number of elements and mask bits. The size is aligned to 16 bytes
Declaration
public static int GetDynamicDataChangeMaskSize(int changeMaskBits, int numElements)
Parameters
Type |
Name |
Description |
Int32 |
changeMaskBits |
|
Int32 |
numElements |
|
Returns
GetDynamicDataPtr(Byte*, Int32, Int32)
Retrieve the dynamic buffer history slot pointer
Declaration
public static byte *GetDynamicDataPtr(byte *dynamicDataBuffer, int historyPosition, int bufferLength)
Parameters
Type |
Name |
Description |
Byte* |
dynamicDataBuffer |
|
Int32 |
historyPosition |
|
Int32 |
bufferLength |
|
Returns
Exceptions
Declaration
public static uint GetHeaderSize()
Returns