cohtml.Net.DataBuffer
A reference counted data buffer.
Inherits from SystemIDisposable
Public Functions
Name | |
---|---|
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 |
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
Name | |
---|---|
bool | swigCMemOwn |
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;