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;
const unsigned char * getDataBuffer() const
Get the data buffer.
Definition: RVNGBinaryData.cpp:224
std::vector< unsigned char > m_buf
Definition: RVNGBinaryData.cpp:48
~RVNGBinaryData()
Definition: RVNGBinaryData.cpp:103
boost::scoped_ptr< RVNGMemoryInputStream > m_stream
Definition: RVNGBinaryData.cpp:49
void appendBase64Data(const RVNGString &base64)
Definition: RVNGBinaryData.cpp:159
boost::shared_ptr< DataImpl > m_ptr
Definition: RVNGBinaryData.cpp:85
unsigned long size() const
Get the size of the content in bytes.
Definition: RVNGBinaryData.cpp:209
RVNGBinaryData & operator=(const RVNGBinaryData &)
Assign the content of another RVNGBinaryData object.
Definition: RVNGBinaryData.cpp:218
A representation of arbitrary binary data.
Definition: RVNGBinaryData.h:37
const RVNGString getBase64Data() const
Get the content encoded as base64.
Definition: RVNGBinaryData.cpp:231
UTF-8 string.
Definition: RVNGString.h:34
void clear()
Remove current content.
Definition: RVNGBinaryData.cpp:201
unsigned long size() const
Return the size in bytes of the data buffer.
Definition: RVNGString.cpp:247
void append(const RVNGBinaryData &data)
Definition: RVNGBinaryData.cpp:149
RVNGBinaryDataImpl * m_binaryDataImpl
Definition: RVNGBinaryData.h:102
bool empty() const
Test if the content is empty.
Definition: RVNGBinaryData.cpp:213
const char * cstr() const
Definition: RVNGString.cpp:174
Definition: RVNGBinaryData.cpp:39
RVNGInputStream * getDataStream() const
Create a stream for the data.
Definition: RVNGBinaryData.cpp:238
RVNGBinaryDataImpl()
Definition: RVNGBinaryData.cpp:88
Definition: RVNGBinaryData.cpp:80
#define REVENGE_API
Definition: librevenge-api.h:34
RVNGBinaryData()
Definition: RVNGBinaryData.cpp:108
void makeUnique()
Definition: RVNGBinaryData.cpp:93
Generated for librevenge by
doxygen 1.8.18