XBinder  Version 2.9.x
Functions
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. More...
 

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

◆ rtxEncUInt32()

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
pctxtPointer to a context structure. This provides a storage area for the function to store all working variables that must be maintained between function calls.
valueThe value to be encoded.
sizeSize of the field in bytes into which the value should be encoded (1, 2, or 4).