#include <cartotype_stream.h>
A data output stream. It writes integers, strings and blocks of data to a data sink provided by a class derived from MOutputStream.
◆ TDataOutputStream()
CartoType::TDataOutputStream::TDataOutputStream |
( |
MOutputStream & |
aOutputStream | ) |
|
|
inline |
Creates a data output stream to write to aOutputStream.
◆ WriteBytes()
void CartoType::TDataOutputStream::WriteBytes |
( |
const uint8_t * |
aBuffer, |
|
|
size_t |
aBytes |
|
) |
| |
Writes a number of bytes from a buffer.
◆ WriteDouble()
void CartoType::TDataOutputStream::WriteDouble |
( |
double |
aValue | ) |
|
Writes a double-precision float as a 64-bit value.
◆ WriteFloat()
void CartoType::TDataOutputStream::WriteFloat |
( |
float |
aValue | ) |
|
Writes a single-precision float as a 32-bit value.
◆ WriteInt()
void CartoType::TDataOutputStream::WriteInt |
( |
int64_t |
aValue | ) |
|
Writes a signed integer of a size determined by the value.
◆ WriteNullTerminatedString()
void CartoType::TDataOutputStream::WriteNullTerminatedString |
( |
const MString & |
aString | ) |
|
Writes a null terminated string according to the current encoding and endianness.
◆ WriteNullTerminatedUtf16String()
void CartoType::TDataOutputStream::WriteNullTerminatedUtf16String |
( |
const MString & |
aString | ) |
|
Writes a null terminated string in UTF-16.
◆ WriteNullTerminatedUtf8String()
void CartoType::TDataOutputStream::WriteNullTerminatedUtf8String |
( |
const MString & |
aString | ) |
|
Writes a null terminated string in UTF-8.
◆ WriteString() [1/2]
void CartoType::TDataOutputStream::WriteString |
( |
const char * |
aString | ) |
|
|
inline |
Writes a null-terminated 8-bit string.
◆ WriteString() [2/2]
void CartoType::TDataOutputStream::WriteString |
( |
const MString & |
aString | ) |
|
Writes a string to the stream, converting aString from UTF-16 to UTF-8 then writing the resulting bytes.
◆ WriteUint() [1/2]
void CartoType::TDataOutputStream::WriteUint |
( |
uint32_t |
aValue, |
|
|
int32_t |
aSize |
|
) |
| |
Write an integer of size aSize. aSize must be 1, 2 or 4.
◆ WriteUint() [2/2]
void CartoType::TDataOutputStream::WriteUint |
( |
uint64_t |
aValue | ) |
|
Writes an unsigned integer of a size determined by the value.
◆ WriteUint16()
void CartoType::TDataOutputStream::WriteUint16 |
( |
uint16_t |
aValue | ) |
|
◆ WriteUint32()
void CartoType::TDataOutputStream::WriteUint32 |
( |
uint32_t |
aValue | ) |
|
◆ WriteUint8()
void CartoType::TDataOutputStream::WriteUint8 |
( |
uint8_t |
aValue | ) |
|
Writes a single byte integer.
◆ WriteUtf8StringWithLength()
void CartoType::TDataOutputStream::WriteUtf8StringWithLength |
( |
const MString & |
aString | ) |
|
Write a UTF-8 string preceded by its length as a variable-length unsigned integer.
◆ WriteXmlText()
void CartoType::TDataOutputStream::WriteXmlText |
( |
const MString & |
aString | ) |
|
Writes a string, converting single and double quotes, less than and greater than, and ampersand, into XML entity references.
The documentation for this class was generated from the following files:
- cartotype_stream.h
- cartotype_stream.cpp