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 | |
TMemoryInputStream (const uint8_t *aData, size_t aLength) | |
TMemoryInputStream (const std::string &aString) | |
void | Set (const uint8_t *aData, size_t aLength) |
void | Read (const uint8_t *&aPointer, size_t &aLength) override |
bool | EndOfStream () const override |
void | Seek (int64_t aPosition) override |
int64_t | Position () override |
int64_t | Length () override |
Public Member Functions inherited from CartoType::MInputStream | |
virtual | ~MInputStream () |
virtual void | Read (const uint8_t *&aPointer, size_t &aLength)=0 |
virtual bool | EndOfStream () const =0 |
virtual void | Seek (int64_t aPosition)=0 |
virtual int64_t | Position ()=0 |
virtual int64_t | Length ()=0 |
virtual std::string | Name () |
An input stream for a contiguous piece of memory.
|
inline |
Creates a memory input stream to read from data of aLength bytes starting at aData.
|
inlineexplicit |
Creates a memory input stream to read from a std::string.
|
inlineoverridevirtual |
Return whether the end of the stream has been reached.
Implements CartoType::MInputStream.
|
inlineoverridevirtual |
Return the number of bytes in the stream.
Implements CartoType::MInputStream.
|
inlineoverridevirtual |
Return the current position.
Implements CartoType::MInputStream.
|
overridevirtual |
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.
|
overridevirtual |
Seek to the specified position.
Implements CartoType::MInputStream.
|
inline |
Resets this memory input stream to read from data of aLength bytes starting at aData.