rtxIntEncode.h File Reference

General purpose integer encode functions. More...

#include "rtxsrc/rtxContext.h"

Go to the source code of this file.

Functions

EXTERNRT int rtxEncUInt32 (OSCTXT *pctxt, OSUINT32 value, OSSIZE size)
 This function will encode the given unsigned integer into big-endian form.

Detailed Description

General purpose integer encode functions.

These encode integer value contents into big-endian form which is a common format for a number of different encoding rules.

Definition in file rtxIntEncode.h.


Function Documentation

EXTERNRT int rtxEncUInt32 ( OSCTXT pctxt,
OSUINT32  value,
OSSIZE  size 
)

This function will encode the given unsigned integer into big-endian form.

One, two, and four byte fixed sizes are supported.

Parameters:
pctxt Pointer to a context structure. This provides a storage area for the function to store all working variables that must be maintained between function calls.
value The value to be encoded.
size Size of the field in bytes into which the value should be encoded (1, 2, or 4).