CartoType C++ API 8.8-7-gb35e4dc71
for Windows, Linux, Qt and other platforms supporting C++ development
|
#include <cartotype_stream.h>
Public Member Functions | |
MemoryOutputStream (size_t aInitialBufferSize=0) | |
void | Write (const uint8_t *aBuffer, size_t aBytes) override |
const uint8_t * | Data () const |
std::vector< uint8_t > | RemoveData () |
size_t | Length () const |
Public Member Functions inherited from CartoTypeCore::OutputStream | |
virtual | ~OutputStream () |
virtual void | Write (const uint8_t *aBuffer, size_t aBytes)=0 |
void | WriteString (const char *aString) |
void | WriteString (const std::string &aString) |
void | WriteString (const MString &aString) |
void | WriteXmlText (const MString &aString) |
void | WriteUint8 (uint8_t aValue) |
void | WriteUint16 (uint16_t aValue) |
void | WriteUint16LE (uint16_t aValue) |
void | WriteUint32 (uint32_t aValue) |
void | WriteUint32LE (uint32_t aValue) |
void | WriteUint (uint32_t aValue, int32_t aSize) |
void | WriteUintLE (uint32_t aValue, int32_t aSize) |
void | WriteUint (uint64_t aValue) |
void | WriteInt (int64_t aValue) |
void | WriteFloat (float aValue) |
void | WriteFloatLE (float aValue) |
void | WriteDouble (double aValue) |
void | WriteDoubleLE (double aValue) |
void | WriteUtf8StringWithLength (const MString &aString) |
void | WriteUtf8StringWithLength (const std::string &aString) |
void | WriteNullTerminatedString (const MString &aString) |
Output stream for a buffer in memory. The caller specifies the initial size of the buffer, which is automatically enlarged when necessary.
|
inline |
Creates a MemoryOutputStream object to write to a buffer owned by it, optionally specifying an initial buffer size in bytes.
|
inline |
Return a pointer to the memory buffer.
|
inline |
Return the number of bytes written.
|
inline |
Take ownership of the data.
|
overridevirtual |
Writes aBytes bytes from aBuffer to the stream.
Implements CartoTypeCore::OutputStream.