29 #ifndef _RTXBITSTRING_H_ 30 #define _RTXBITSTRING_H_ 48 #define OSRTBYTEARRAYSIZE(numbits) ((numbits+7)/8) 72 EXTERNRT
int rtxSetBit (OSOCTET* pBits, OSSIZE numbits, OSSIZE bitIndex);
86 (OSUINT32 flags, OSUINT32 mask, OSBOOL action);
102 (OSOCTET* pBits, OSSIZE numbits, OSSIZE bitIndex);
115 (
const OSOCTET* pBits, OSSIZE numbits, OSSIZE bitIndex);
126 EXTERNRT OSSIZE
rtxLastBitSet (
const OSOCTET *pBits, OSSIZE numbits);
146 OSSIZE* pNumocts, OSSIZE minRequiredBits, OSSIZE preferredLimitBits);
EXTERNRT int rtxSetBit(OSOCTET *pBits, OSSIZE numbits, OSSIZE bitIndex)
This function sets the specified zero-counted bit in the bit string.
EXTERNRT int rtxCheckBitBounds(OSCTXT *pctxt, OSOCTET **ppBits, OSSIZE *pNumocts, OSSIZE minRequiredBits, OSSIZE preferredLimitBits)
Check whether the given bit string is large enough, and expand it if necessary.
EXTERNRT int rtxCheckUnusedBitsZero(const OSOCTET *pBits, OSSIZE numbits)
This function checks to see if unused bits at the end of the given bit string are zero...
EXTERNRT int rtxZeroUnusedBits(OSOCTET *pBits, OSSIZE numbits)
This function zeros unused bits at the end of the given bit string.
EXTERNRT int rtxClearBit(OSOCTET *pBits, OSSIZE numbits, OSSIZE bitIndex)
This function clears the specified zero-counted bit in the bit string.
Common run-time context definitions.
EXTERNRT OSBOOL rtxTestBit(const OSOCTET *pBits, OSSIZE numbits, OSSIZE bitIndex)
This function tests the specified zero-counted bit in the bit string.
EXTERNRT OSSIZE rtxLastBitSet(const OSOCTET *pBits, OSSIZE numbits)
This function returns the zero-counted index of the last bit set in a bit string. ...
Run-time context structure.
EXTERNRT OSUINT32 rtxGetBitCount(OSUINT32 value)
This function returns the minimum size of the bit field required to hold the given integer value...
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...