|
CartoType API
|
#include <cartotype_stream.h>
Public Member Functions | |
| CT_IMPORT TResult | Write (const uint8 *aBuffer, int32 aBytes) |
| const uint8 * | Data () const |
| int32 | Length () const |
| int32 | BytesWritten () const |
Static Public Member Functions | |
|
static CT_IMPORT CMemoryOutputStream * | New (TResult &aError, int32 aLength) |
Output stream for a buffer in memory. The caller specifies the size of the buffer. The output stream maintains the position internally and generates an error when too many bytes are written to the output stream.
| int32 CartoType::CMemoryOutputStream::BytesWritten | ( | ) | const [inline] |
Return the number of bytes written.
| const uint8* CartoType::CMemoryOutputStream::Data | ( | ) | const [inline] |
Return a pointer to the memory buffer.
| int32 CartoType::CMemoryOutputStream::Length | ( | ) | const [inline] |
Return the length of the memory buffer.
| CT_EXPORT TResult CMemoryOutputStream::Write | ( | const uint8 * | aBuffer, |
| int32 | aBytes | ||
| ) | [virtual] |
Write aBytes bytes from aBuffer to the stream.
Implements CartoType::MOutputStream.
1.7.5.1