|
10Duke Enterprise C++ SDK
|
#include <BinaryData.h>
A holder of binary data.
Public Member Functions | |
| virtual unsigned char * | getData () const=0 |
| Returns the data. | |
| virtual std::size_t | getLength () const=0 |
| Returns the length of data in bytes. | |
| unsigned char * | data () override |
| Returns a mutable view of the underlying data. | |
| const unsigned char * | data () const override |
| Returns a pointer to the beginning of the underlying sequence. | |
| std::size_t | size_bytes () const override |
| Returns the size of the span in bytes. | |
|
inlineoverridevirtual |
Returns a pointer to the beginning of the underlying sequence.
This provides a read-only view of the data.
Implements tenduke::utl::DataSpan.
|
inlineoverridevirtual |
Returns a mutable view of the underlying data.
This provides a writable view of the data, allowing modification of the data.
Implements tenduke::utl::MutableDataSpan.
|
pure virtual |
Returns the data.
DO NOT free() or delete() this: The class maintains the data. The data is mutable.
|
inlineoverridevirtual |
Returns the size of the span in bytes.
Implements tenduke::utl::DataSpan.