CartoType C++ API 7.8.2, 2022-03-25
for Windows, Linux, Qt and other platforms supporting C++ development
|
#include <cartotype_stream.h>
Public Member Functions | |
CMemoryOutputStream (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 CartoType::MOutputStream | |
virtual | ~MOutputStream () |
virtual void | Write (const uint8_t *aBuffer, size_t aBytes)=0 |
void | WriteString (const char *aString) |
void | WriteString (const MString &aString) |
void | WriteXmlText (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 CMemoryOutputStream 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 CartoType::MOutputStream.