cohtml.Net.DataBuffer

A reference counted data buffer.

Inherits from SystemIDisposable

Public Functions

Name
virtual voidDispose()
delegate voidCallbackOnDestruction(global.System.IntPtr data, global.System.IntPtr userData)
Will be called when all references are released.
virtual System.IntPtrGetData()
virtual ulongGetSize()
virtual voidRelease()
Releases the currently held reference. CallbackOnDestruction will be called when all references are released
DataBufferCreateDataBuffer(global.System.IntPtr data, ulong size, DataBuffer.CallbackOnDestruction callback, global.System.IntPtr userData)
Constructs new object from provided data, size and callback. Data is adopted, but the memory is not copied, you should let this buffer free the memory via the provided destruction callback

Protected Attributes

Name
boolswigCMemOwn

Public Functions Documentation

function Dispose

virtual void Dispose()

function CallbackOnDestruction

delegate void CallbackOnDestruction(
    global.System.IntPtr data,
    global.System.IntPtr userData
)

Will be called when all references are released.

function GetData

virtual System.IntPtr GetData()

function GetSize

virtual ulong GetSize()

function Release

virtual void Release()

Releases the currently held reference. CallbackOnDestruction will be called when all references are released

function CreateDataBuffer

static DataBuffer CreateDataBuffer(
    global.System.IntPtr data,
    ulong size,
    DataBuffer.CallbackOnDestruction callback,
    global.System.IntPtr userData
)

Constructs new object from provided data, size and callback. Data is adopted, but the memory is not copied, you should let this buffer free the memory via the provided destruction callback

Protected Attributes Documentation

variable swigCMemOwn

bool swigCMemOwn;