Go to the documentation of this file.
20 #ifndef RVNGBINARYDATA_H
21 #define RVNGBINARYDATA_H
32 struct RVNGBinaryDataImpl;
41 RVNGBinaryData(
const unsigned char *buffer,
const unsigned long bufferSize);
47 void append(
const unsigned char *buffer,
const unsigned long bufferSize);
48 void append(
const unsigned char c);
49 void appendBase64Data(
const RVNGString &base64);
50 void appendBase64Data(
const char *base64);
60 unsigned long size()
const;
75 const unsigned char *getDataBuffer()
const;
std::shared_ptr< DataImpl > m_ptr
Definition: RVNGBinaryData.cpp:86
const unsigned char * getDataBuffer() const
Get the data buffer.
Definition: RVNGBinaryData.cpp:227
std::vector< unsigned char > m_buf
Definition: RVNGBinaryData.cpp:49
~RVNGBinaryData()
Definition: RVNGBinaryData.cpp:104
void appendBase64Data(const RVNGString &base64)
Definition: RVNGBinaryData.cpp:162
unsigned long size() const
Get the size of the content in bytes.
Definition: RVNGBinaryData.cpp:212
RVNGBinaryData & operator=(const RVNGBinaryData &)
Assign the content of another RVNGBinaryData object.
Definition: RVNGBinaryData.cpp:221
A representation of arbitrary binary data.
Definition: RVNGBinaryData.h:37
const RVNGString getBase64Data() const
Get the content encoded as base64.
Definition: RVNGBinaryData.cpp:234
UTF-8 string.
Definition: RVNGString.h:34
void clear()
Remove current content.
Definition: RVNGBinaryData.cpp:204
unsigned long size() const
Return the size in bytes of the data buffer.
Definition: RVNGString.cpp:288
void append(const RVNGBinaryData &data)
Definition: RVNGBinaryData.cpp:152
RVNGBinaryDataImpl * m_binaryDataImpl
Definition: RVNGBinaryData.h:102
bool empty() const
Test if the content is empty.
Definition: RVNGBinaryData.cpp:216
const char * cstr() const
Definition: RVNGString.cpp:217
std::unique_ptr< RVNGMemoryInputStream > m_stream
Definition: RVNGBinaryData.cpp:50
Definition: RVNGBinaryData.cpp:40
RVNGInputStream * getDataStream() const
Create a stream for the data.
Definition: RVNGBinaryData.cpp:241
RVNGBinaryDataImpl()
Definition: RVNGBinaryData.cpp:89
Definition: RVNGBinaryData.cpp:81
#define REVENGE_API
Definition: librevenge-api.h:34
RVNGBinaryData()
Definition: RVNGBinaryData.cpp:109
void makeUnique()
Definition: RVNGBinaryData.cpp:94
Generated for librevenge by
doxygen 1.8.20