rtxBitString.h File Reference

  • Contains utility functions for setting, clearing, and testing bits at any position in an arbitrarily sized array of bytes.
More...

#include "rtxsrc/rtxContext.h"

Go to the source code of this file.


Defines

#define OSRTBYTEARRAYSIZE(numbits)   (((numbits-1)/8)+1)
 This macro is used to calculate the byte array size required to hold the given number of bits.

Functions

EXTERNRT int rtxSetBit (OSOCTET *pBits, OSUINT32 numbits, OSUINT32 bitIndex)
 This function sets the specified bit in the bit string.
EXTERNRT OSUINT32 rtxSetBitFlags (OSUINT32 flags, OSUINT32 mask, OSBOOL action)
 This function sets one or more bits to TRUE or FALSE in a 32-bit unsigned bit flag set.
EXTERNRT int rtxClearBit (OSOCTET *pBits, OSUINT32 numbits, OSUINT32 bitIndex)
 This function clears the specified bit in the bit string.
EXTERNRT OSBOOL rtxTestBit (const OSOCTET *pBits, OSUINT32 numbits, OSUINT32 bitIndex)
 This function tests the specified bit in the bit string.

Detailed Description

  • Contains utility functions for setting, clearing, and testing bits at any position in an arbitrarily sized array of bytes.

Definition in file rtxBitString.h.