CartoType API
Public Member Functions | Static Public Member Functions
CartoType::CMemoryOutputStream Class Reference

#include <cartotype_stream.h>

Inheritance diagram for CartoType::CMemoryOutputStream:
CartoType::MOutputStream

List of all members.

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)

Detailed Description

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.


Member Function Documentation

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.


The documentation for this class was generated from the following files: