A representation of arbitrary binary data. More...
#include <RVNGBinaryData.h>
Public Member Functions | |
| RVNGBinaryData () | |
| RVNGBinaryData (const RVNGBinaryData &) | |
| RVNGBinaryData (const unsigned char *buffer, const unsigned long bufferSize) | |
| RVNGBinaryData (const RVNGString &base64) | |
| RVNGBinaryData (const char *base64) | |
| ~RVNGBinaryData () | |
| void | append (const RVNGBinaryData &data) |
| void | append (const unsigned char *buffer, const unsigned long bufferSize) |
| void | append (const unsigned char c) |
| void | appendBase64Data (const RVNGString &base64) |
| void | appendBase64Data (const char *base64) |
| void | clear () |
| Remove current content. | |
| unsigned long | size () const |
| Get the size of the content in bytes. | |
| bool | empty () const |
| Test if the content is empty. | |
| const unsigned char * | getDataBuffer () const |
| Get the data buffer. | |
| const RVNGString | getBase64Data () const |
| Get the content encoded as base64. | |
| RVNGInputStream * | getDataStream () const |
| Create a stream for the data. | |
| RVNGBinaryData & | operator= (const RVNGBinaryData &) |
Assign the content of another RVNGBinaryData object. | |
Private Attributes | |
| RVNGBinaryDataImpl * | m_binaryDataImpl |
A representation of arbitrary binary data.
| librevenge::RVNGBinaryData::RVNGBinaryData | ( | ) |
| librevenge::RVNGBinaryData::RVNGBinaryData | ( | const RVNGBinaryData & | data | ) |
| librevenge::RVNGBinaryData::RVNGBinaryData | ( | const unsigned char * | buffer, |
| const unsigned long | bufferSize | ||
| ) |
|
explicit |
|
explicit |
| librevenge::RVNGBinaryData::~RVNGBinaryData | ( | ) |
| void librevenge::RVNGBinaryData::append | ( | const RVNGBinaryData & | data | ) |
Referenced by appendBase64Data().
| void librevenge::RVNGBinaryData::append | ( | const unsigned char * | buffer, |
| const unsigned long | bufferSize | ||
| ) |
| void librevenge::RVNGBinaryData::append | ( | const unsigned char | c | ) |
| void librevenge::RVNGBinaryData::appendBase64Data | ( | const char * | base64 | ) |
| void librevenge::RVNGBinaryData::appendBase64Data | ( | const RVNGString & | base64 | ) |
| void librevenge::RVNGBinaryData::clear | ( | ) |
Remove current content.
| bool librevenge::RVNGBinaryData::empty | ( | ) | const |
Test if the content is empty.
true if the content is emtpy, false otherwise. | const RVNGString librevenge::RVNGBinaryData::getBase64Data | ( | ) | const |
Get the content encoded as base64.
Referenced by librevenge::RVNGBinaryDataProperty::getStr().
| const unsigned char * librevenge::RVNGBinaryData::getDataBuffer | ( | ) | const |
Get the data buffer.
The buffer is managed internally, so it shall not be deleted. If this object is empty, 0 is returned.
| RVNGInputStream * librevenge::RVNGBinaryData::getDataStream | ( | ) | const |
Create a stream for the data.
The stream is managed internally, so it shall not be deleted. If this object is empty, 0 is returned.
| RVNGBinaryData & librevenge::RVNGBinaryData::operator= | ( | const RVNGBinaryData & | dataBuf | ) |
Assign the content of another RVNGBinaryData object.
this object | unsigned long librevenge::RVNGBinaryData::size | ( | ) | const |
Get the size of the content in bytes.
|
private |
Referenced by append(), clear(), empty(), getBase64Data(), getDataBuffer(), getDataStream(), operator=(), RVNGBinaryData(), size(), and ~RVNGBinaryData().