CartoType API
Public Member Functions
CartoType::TMemoryInputStream Class Reference

#include <cartotype_stream.h>

Inheritance diagram for CartoType::TMemoryInputStream:
CartoType::MInputStream

List of all members.

Public Member Functions

 TMemoryInputStream (const uint8 *aData, int32 aLength)
void Set (const uint8 *aData, int32 aLength)
CT_IMPORT TResult Read (const uint8 *&aPointer, int32 &aLength)
bool EndOfStream () const
CT_IMPORT TResult Seek (int32 aPosition)
int32 Position (TResult &aError)
int32 Length (TResult &aError)

Detailed Description

An input stream for a contiguous piece of memory.


Member Function Documentation

bool CartoType::TMemoryInputStream::EndOfStream ( ) const [inline, virtual]

Return whether the end of the stream has been reached.

Implements CartoType::MInputStream.

int32 CartoType::TMemoryInputStream::Length ( TResult aError) [inline, virtual]

Return the number of bytes in the stream.

Implements CartoType::MInputStream.

int32 CartoType::TMemoryInputStream::Position ( TResult aError) [inline, virtual]

Return the current position.

Implements CartoType::MInputStream.

CT_EXPORT TResult TMemoryInputStream::Read ( const uint8 *&  aPointer,
int32 &  aLength 
) [virtual]

Read some data into a buffer owned by the MInputStream object and return a pointer to it in aPointer. Return the number of bytes of data in aLength. This function will return at least one byte if there are bytes remaining in the stream. The pointer is valid until the next call to Read.

Implements CartoType::MInputStream.

CT_EXPORT TResult TMemoryInputStream::Seek ( int32  aPosition) [virtual]

Seek to the specified position.

Implements CartoType::MInputStream.


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