#include "EncoderChannel.h"
#include "EXIOptions.h"
#include "BitOutputStream.h"
#include "EXITypes.h"
#include "ErrorCodes.h"
#include "MethodsBag.h"
Macros | |
#define | ABSTRACT_ENCODER_CHANNEL_C |
Functions | |
int | encodeUnsignedInteger (bitstream_t *stream, exi_integer_t *iv) |
Encode unsigned integer. More... | |
int | encodeUnsignedInteger16 (bitstream_t *stream, uint16_t n) |
Encode unsigned integer. More... | |
int | encodeUnsignedInteger32 (bitstream_t *stream, uint32_t n) |
Encode unsigned integer. More... | |
int | encodeUnsignedInteger64 (bitstream_t *stream, uint64_t n) |
Encode unsigned integer. More... | |
int | encodeInteger (bitstream_t *stream, exi_integer_t *iv) |
Encode integer. More... | |
int | encodeInteger16 (bitstream_t *stream, int16_t n) |
Encode integer. More... | |
int | encodeInteger32 (bitstream_t *stream, int32_t n) |
Encode integer. More... | |
int | encodeInteger64 (bitstream_t *stream, int64_t n) |
Encode integer. More... | |
int | encodeFloat (bitstream_t *stream, exi_float_me_t *f) |
Encode float. More... | |
int | encodeDecimal (bitstream_t *stream, exi_decimal_t *d) |
Encode decimal. More... | |
int | encodeString (bitstream_t *stream, exi_string_t *string) |
Encode string. More... | |
int | encodeStringValue (bitstream_t *stream, exi_state_t *state, uint16_t qnameID, exi_string_value_t *string) |
Encode string value. More... | |
int | encodeRCSStringValue (bitstream_t *stream, exi_state_t *state, uint16_t qnameID, exi_rcs_t *rcs, exi_string_value_t *string) |
Encode restricted character set value. More... | |
int | encodeCharacters (bitstream_t *stream, exi_string_character_t *chars, uint16_t len) |
Encode characters. More... | |
int | encodeRCSCharacters (bitstream_t *stream, exi_string_character_t *chars, uint16_t len, uint16_t rcsCodeLength, uint16_t rcsSize, const exi_string_character_t rcsSet[]) |
Encode characters. More... | |
int | encodeBinary (bitstream_t *stream, exi_bytes_t *bytes) |
Encode binary. More... | |
int | encodeBytes (bitstream_t *stream, uint8_t *data, uint16_t len) |
Encode binary data. More... | |
int | encodeDateTime (bitstream_t *stream, exi_datetime_t *datetime) |
Encode datetime. More... | |
#define ABSTRACT_ENCODER_CHANNEL_C |
int encodeBinary | ( | bitstream_t * | stream, |
exi_bytes_t * | bytes | ||
) |
Encode binary.
Encode a binary value as a length-prefixed sequence of octets.
int encodeBytes | ( | bitstream_t * | stream, |
uint8_t * | data, | ||
uint16_t | len | ||
) |
Encode binary data.
Encode a sequence of octets.
stream | Output Stream |
data | Byte values |
len | Length |
int encodeCharacters | ( | bitstream_t * | stream, |
exi_string_character_t * | chars, | ||
uint16_t | len | ||
) |
Encode characters.
Encode a sequence of characters according to a given length. Each character is represented by its UCS [ISO/IEC 10646] code point encoded as an Unsigned Integer
int encodeDateTime | ( | bitstream_t * | stream, |
exi_datetime_t * | datetime | ||
) |
Encode datetime.
Encode a datetime representation which is a sequence of values representing the individual components of the Date-Time
int encodeDecimal | ( | bitstream_t * | stream, |
exi_decimal_t * | d | ||
) |
Encode decimal.
Encode a decimal represented as a Boolean sign followed by two Unsigned Integers. A sign value of zero (0) is used to represent positive Decimal values and a sign value of one (1) is used to represent negative Decimal values The first Integer represents the integral portion of the Decimal value. The second positive integer represents the fractional portion of the decimal with the digits in reverse order to preserve leading zeros.
int encodeFloat | ( | bitstream_t * | stream, |
exi_float_me_t * | f | ||
) |
Encode float.
The Float datatype representation is two consecutive Integers. The first Integer represents the mantissa of the floating point number and the second Integer represents the base-10 exponent of the floating point number.
int encodeInteger | ( | bitstream_t * | stream, |
exi_integer_t * | iv | ||
) |
Encode integer.
Encode an arbitrary precision integer using a sign boolean followed by a sequence of octets. The most significant bit of the last octet is set to zero to indicate sequence termination. Only seven bits per octet are used to store the integer's value.
stream | Output Stream |
iv | Integer value |
int encodeInteger16 | ( | bitstream_t * | stream, |
int16_t | n | ||
) |
Encode integer.
Encode an arbitrary precision integer using a sign bit followed by a sequence of octets. The most significant bit of the last octet is set to zero to indicate sequence termination. Only seven bits per octet are used to store the integer's value.
int encodeInteger32 | ( | bitstream_t * | stream, |
int32_t | n | ||
) |
Encode integer.
Encode an arbitrary precision integer using a sign bit followed by a sequence of octets. The most significant bit of the last octet is set to zero to indicate sequence termination. Only seven bits per octet are used to store the integer's value.
int encodeInteger64 | ( | bitstream_t * | stream, |
int64_t | n | ||
) |
Encode integer.
Encode an arbitrary precision integer using a sign bit followed by a sequence of octets. The most significant bit of the last octet is set to zero to indicate sequence termination. Only seven bits per octet are used to store the integer's value.
int encodeRCSCharacters | ( | bitstream_t * | stream, |
exi_string_character_t * | chars, | ||
uint16_t | len, | ||
uint16_t | rcsCodeLength, | ||
uint16_t | rcsSize, | ||
const exi_string_character_t | rcsSet[] | ||
) |
Encode characters.
Encode a sequence of characters according to a given length. Each character is represented by its UCS [ISO/IEC 10646] code point encoded as an Unsigned Integer.
stream | Output Stream |
chars | Characters |
len | Numbr of characters |
rcsCodeLength | RCS code-length |
rcsCodeLength | RCS size |
rcsCodeLength | RCS set |
int encodeRCSStringValue | ( | bitstream_t * | stream, |
exi_state_t * | state, | ||
uint16_t | qnameID, | ||
exi_rcs_t * | rcs, | ||
exi_string_value_t * | string | ||
) |
Encode restricted character set value.
Encode a length prefixed sequence of characters in the sense of string tables
stream | Output Stream |
state | Codec state |
qnameID | Qualified Name ID |
rcs | Restricted character set |
string | String value |
int encodeString | ( | bitstream_t * | stream, |
exi_string_t * | string | ||
) |
Encode string.
Encode a length prefixed sequence of characters.
int encodeStringValue | ( | bitstream_t * | stream, |
exi_state_t * | state, | ||
uint16_t | qnameID, | ||
exi_string_value_t * | string | ||
) |
Encode string value.
Encode a length prefixed sequence of characters in the sense of string tables
stream | Output Stream |
state | Codec state |
qnameID | Qualified Name ID |
string | String value |
int encodeUnsignedInteger | ( | bitstream_t * | stream, |
exi_integer_t * | iv | ||
) |
Encode unsigned integer.
Encode an arbitrary precision non negative integer using a sequence of octets. The most significant bit of the last octet is set to zero to indicate sequence termination. Only seven bits per octet are used to store the integer's value.
stream | Output Stream |
iv | Unsigned integer value |
int encodeUnsignedInteger16 | ( | bitstream_t * | stream, |
uint16_t | n | ||
) |
Encode unsigned integer.
Encode an arbitrary precision non negative integer using a sequence of octets. The most significant bit of the last octet is set to zero to indicate sequence termination. Only seven bits per octet are used to store the integer's value.
int encodeUnsignedInteger32 | ( | bitstream_t * | stream, |
uint32_t | n | ||
) |
Encode unsigned integer.
Encode an arbitrary precision non negative integer using a sequence of octets. The most significant bit of the last octet is set to zero to indicate sequence termination. Only seven bits per octet are used to store the integer's value.
int encodeUnsignedInteger64 | ( | bitstream_t * | stream, |
uint64_t | n | ||
) |
Encode unsigned integer.
Encode an arbitrary precision non negative integer using a sequence of octets. The most significant bit of the last octet is set to zero to indicate sequence termination. Only seven bits per octet are used to store the integer's value.