Pylon::CSharedByteBuffer#
Byte buffer with smart pointer semantics. Not thread safe.
#include <pylon/SharedByteBuffer.h>
Public Functions#
Name | |
---|---|
CSharedByteBuffer() default constructer for shared buffer | |
CSharedByteBuffer(size_t nBytes) constructer for shared buffer form buffer size | |
CSharedByteBuffer(const CSharedByteBuffer & other) copy constructor | |
~CSharedByteBuffer() destructor | |
CSharedByteBuffer & | operator=(const CSharedByteBuffer & rhs) copy assignment operator |
operator bool() const pointer like test if nullptr | |
void | Release() release the referenz on buffer and memory if last referenzing object. |
size_t | GetSize() const return size of buffer in bytes |
uint8_t * | GetBuffer() get pointer to buffer memory |
const uint8_t * | GetBuffer() const get pointer to buffer memory |
bool | IsNull() const test if buffer references memory |
Public Functions Documentation#
function CSharedByteBuffer#
default constructer for shared buffer
function CSharedByteBuffer#
constructer for shared buffer form buffer size
function CSharedByteBuffer#
copy constructor
function ~CSharedByteBuffer#
destructor
function operator=#
copy assignment operator
function operator bool#
pointer like test if nullptr
function Release#
release the referenz on buffer and memory if last referenzing object.
function GetSize#
return size of buffer in bytes
function GetBuffer#
get pointer to buffer memory
Return: nullptr if buffer references no memory
function GetBuffer#
get pointer to buffer memory
Return: nullptr if buffer references no memory
function IsNull#
test if buffer references memory