File Information
Library: FastInfoset
Package: FastInfoset
Header: Poco/FastInfoset/Encoder.h
Description
Encoder class contains utility functions for encoding simple FIS data types.
Member Summary
Member Functions: documentPreHeader, integer, lengthOfSequence, nonEmptyOctetString, nonEmptyStringLength, pad0ThenInteger
Enumerations
Anonymous
ENC_MAXINT1 = 2
ENC_MAXINT1PLUS = 3
ENC_MAXINT3 = 8
ENC_MAXINT3PLUS = 9
ENC_MAXINT4 = 16
ENC_MAXINT4PLUS = 17
ENC_MAXINT5 = 32
ENC_MAXINT5PLUS = 33
ENC_MAXINT6 = 64
ENC_MAXINT6PLUS = 65
ENC_ZEROENCODEDVALUE = 0x7f
ENC_MAXINT8XS = 258
ENC_MAXINT8XSPLUS = 259
ENC_MAXINT8S = 264
ENC_MAXINT8SPLUS = 265
ENC_MAXINT8 = 320
ENC_MAXINT8PLUS = 321
ENC_MAXINT10 = 1040
ENC_MAXINT10PLUS = 1041
ENC_MAXINT11 = 2080
ENC_MAXINT11PLUS = 2081
ENC_MAXINT13 = 8256
ENC_MAXINT13PLUS = 8257
ENC_MAXINT18 = 263184
ENC_MAXINT18PLUS = 263185
ENC_MAXINT19 = 526368
ENC_MAXINT19PLUS = 526369
ENC_MAXINT20 = 0x00100000
Member Functions
documentPreHeader
static void documentPreHeader(
BitStreamWriter & aWriter,
bool writeXMLDeclaration = false
);
Writes the default pre header for a FIS document (33bits).
integer
static void integer(
BitStreamWriter & aWriter,
Poco::UInt32 val
);
Encodes an integer value.
lengthOfSequence
static void lengthOfSequence(
BitStreamWriter & aWriter,
Poco::UInt32 len
);
Encodes the length of a sequence type.
nonEmptyOctetString
static void nonEmptyOctetString(
BitStreamWriter & aWriter,
const std::string & str
);
Encodes a non empty string.
nonEmptyStringLength
static void nonEmptyStringLength(
BitStreamWriter & aWriter,
const std::size_t strLen
);
Encodes the length of a string.
pad0ThenInteger
static void pad0ThenInteger(
BitStreamWriter & aWriter,
Poco::UInt32 val
);
Writes first a padding bit 0 then the integer. Faster in some cases.
Variables
DOCUMENTSTART
static const Poco::UInt16 DOCUMENTSTART;
XMLDECLARATION
static const Poco::UInt16 XMLDECLARATION;