cohtml.Net.DataBuffer
A reference counted data buffer.
Inherits from SystemIDisposable
Public Functions
Section titled “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
Section titled “Protected Attributes”| Name | |
|---|---|
| bool | swigCMemOwn |
Public Functions Documentation
Section titled “Public Functions Documentation”function Dispose
Section titled “function Dispose”virtual void Dispose()function CallbackOnDestruction
Section titled “function CallbackOnDestruction”delegate void CallbackOnDestruction( global.System.IntPtr data, global.System.IntPtr userData)Will be called when all references are released.
function GetData
Section titled “function GetData”virtual System.IntPtr GetData()function GetSize
Section titled “function GetSize”virtual ulong GetSize()function Release
Section titled “function Release”virtual void Release()Releases the currently held reference. CallbackOnDestruction will be called when all references are released
function CreateDataBuffer
Section titled “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
Section titled “Protected Attributes Documentation”variable swigCMemOwn
Section titled “variable swigCMemOwn”bool swigCMemOwn;© 2026 Coherent Labs. All rights reserved.