|
CartoType API
|
#include <cartotype_stream.h>
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) |
An input stream for a contiguous piece of memory.
| 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.
1.7.5.1