28 #ifndef _RTXBITENCODE_H_ 29 #define _RTXBITENCODE_H_ 44 #define rtxEncByteAlignPattern(pctxt, pattern) \ 45 if ((pctxt)->buffer.bitOffset != 8) { \ 46 rtxEncBits(pctxt, pattern, (pctxt)->buffer.bitOffset); } 117 (
OSCTXT* pctxt,
const OSOCTET* pvalue, OSSIZE nbits);
133 (
OSCTXT* pctxt,
const OSOCTET* pvalue, OSSIZE nbits, OSUINT32 bitOffset);
EXTERNRT int rtxCopyBits(OSCTXT *pctxt, const OSOCTET *pvalue, OSSIZE nbits, OSUINT32 bitOffset)
This function will encode a series of bits from an octet array.
EXTERNRT int rtxEncBitsFromByteArray(OSCTXT *pctxt, const OSOCTET *pvalue, OSSIZE nbits)
This function will encode a series of bits from an octet array.
EXTERNRT int rtxMergeBits(OSCTXT *pctxt, OSUINT32 value, OSSIZE nbits)
This function will merge a series of bits (up to 32) from an unsigned integer value into an existing ...
Common run-time context definitions.
EXTERNRT int rtxEncBitsPattern(OSCTXT *pctxt, OSUINT8 pattern, OSSIZE nbits)
This function encodes the given number of bits using a repeating bit pattern.
EXTERNRT int rtxEncBits(OSCTXT *pctxt, OSUINT32 value, OSSIZE nbits)
This function encodes a number of the least significant bits (up to 32) of an unsigned integer value...
EXTERNRT int rtxEncBitsFromSize(OSCTXT *pctxt, OSSIZE value, OSSIZE nbits)
This function encodes a number of the least significant bits from a size type.
Run-time context structure.
EXTERNRT int rtxEncBit(OSCTXT *pctxt, OSBOOL value)
This function will set the bit at the current encode bit cursor position to 1 or 0 and advance the cu...