|
oevislib_net
0.14.3.0
|
Class to handle binary data with ownership semantics. More...
Public Member Functions | |
| ByteBuffer () | |
| Constructs an empty ByteBuffer object. | |
| ByteBuffer (int inSize=0) | |
| Constructs a new ByteBuffer object. | |
| ByteBuffer (int inSize, IntPtr inData) | |
| Constructs a new ByteBuffer object. | |
| ByteBuffer (int inSize, IntPtr inData, bool inOwn) | |
| Constructs a new ByteBuffer object. | |
| ByteBuffer (byte[] inBuffer) | |
| bool | IsDataOwn () |
| Checks if the buffer owns its data. | |
| bool | IsEmpty () |
| Checks if the buffer is empty. | |
| IntPtr | GetData () |
| Returns a pointer to the buffer data. | |
| int | GetSize () |
| Returns the size of the buffer. | |
| void | Dispose () |
| byte[] | ToByteArray () |
Class to handle binary data with ownership semantics.
After a release operation, the memory is expected to be deleted with delete[] keyword.
|
inline |
Constructs an empty ByteBuffer object.
|
inline |
Constructs a new ByteBuffer object.
| inSize | Size of the buffer (in bytes) to be allocated. |
|
inline |
Constructs a new ByteBuffer object.
| inSize | Size of the buffer (in bytes). |
| inData | Pointer to initial data. |
|
inline |
Constructs a new ByteBuffer object.
| inSize | Size of the buffer (in bytes). |
| inData | Pointer to initial data (if null new memory will be allocated based on input size). |
| inOwn | Whether the buffer should own the data. If true the input data will be copied and managed internally, otherwise the buffer will point directly to the input data. |
|
inline |
Returns a pointer to the buffer data.
|
inline |
Returns the size of the buffer.
|
inline |
Checks if the buffer owns its data.
|
inline |
Checks if the buffer is empty.