Skip to content
SiteEmail

cohtml.Net.DataBuffer

A reference counted data buffer.

Inherits from SystemIDisposable

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
Name
boolswigCMemOwn
virtual void Dispose()
delegate void CallbackOnDestruction(
global.System.IntPtr data,
global.System.IntPtr userData
)

Will be called when all references are released.

virtual System.IntPtr GetData()
virtual ulong GetSize()
virtual void Release()

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

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

bool swigCMemOwn;