Shared data buffer. More...
Public Member Functions | |
const Burger::StaticRTTI * | get_StaticRTTI (void) const noexcept override |
Get the description to the class. | |
SharedBuffer () | |
Default constructor. | |
virtual | ~SharedBuffer () |
Release all data. | |
uintptr_t | GetDataSize (void) const |
Get the size of the buffer in bytes. | |
void | Append (uint8_t uInput) |
Append a byte at the end of the buffer. | |
const uint8_t * | GetData (void) const |
Get the pointer to the buffer. | |
SimpleArray< uint8_t > * | GetBuffer (void) |
Get the pointer to the SimpleArray. | |
Public Member Functions inherited from Burger::ReferenceCounter | |
ReferenceCounter () noexcept | |
Sets the reference count to zero. | |
virtual | ~ReferenceCounter () |
Destructor. | |
void | AddRef (void) noexcept |
Increase the reference count by 1. | |
void | Release (void) noexcept |
Decrease the reference count by 1. | |
Public Member Functions inherited from Burger::Base | |
const char * | get_class_name (void) const noexcept |
Get the name of the class. | |
virtual | ~Base () noexcept=default |
Destructor. | |
Static Public Attributes | |
static const Burger::StaticRTTI | g_StaticRTTI |
The global description of the class. | |
Static Public Attributes inherited from Burger::ReferenceCounter | |
static const Burger::StaticRTTI | g_StaticRTTI |
The global description of the class. | |
Static Public Attributes inherited from Burger::Base | |
static const Burger::StaticRTTI | g_StaticRTTI |
The global description of the class. | |
Private Attributes | |
SimpleArray< uint8_t > | m_Buffer |
Internal data buffer. | |
Shared data buffer.
A shared buffer that's reference counted so multiple action script items can manager a single copy of this buffer
Burger::Flash::SharedBuffer::SharedBuffer | ( | ) |
|
virtual |
|
inline |
|
overridevirtualnoexcept |
Get the description to the class.
This virtual function will pull the pointer to the StaticRTTI instance that has the name of the class. Due to it being virtual, it will be the name of the most derived class.
Reimplemented from Burger::ReferenceCounter.
|
inline |
Get the pointer to the SimpleArray.
|
inline |
|
inline |
Get the size of the buffer in bytes.
|
static |
The global description of the class.
This record contains the name of this class and a reference to the parent
|
private |
Internal data buffer.