28 #ifndef _RTXDYNBITSET_H_ 29 #define _RTXDYNBITSET_H_ 37 #define OSRTBITSETSEGSIZE 16 59 (
OSCTXT* pctxt, OSRTDynBitSet* pbitset, OSUINT16 segNBytes);
79 (
OSCTXT* pctxt,
const OSRTDynBitSet* pSrcBitSet, OSRTDynBitSet* pDestBitSet);
92 (
OSCTXT* pctxt, OSRTDynBitSet* pbitset, OSUINT32 idx);
118 (
const OSRTDynBitSet* pbitset, OSUINT32 idx);
133 (
OSCTXT* pctxt, OSRTDynBitSet* pbitset, OSUINT32 idx, OSBOOL value);
149 (
OSCTXT* pctxt, OSRTDynBitSet* pbitset, OSUINT32 idx, OSBOOL value);
158 EXTERNRT
void rtxDynBitSetPrint
159 (
const OSRTDynBitSet* pbitset,
const char* varname);
EXTERNRT int rtxDynBitSetSetBit(OSCTXT *pctxt, OSRTDynBitSet *pbitset, OSUINT32 idx)
This function sets the bit at the given index.
EXTERNRT OSBOOL rtxDynBitSetTestBit(const OSRTDynBitSet *pbitset, OSUINT32 idx)
This function tests the bit at the given index.
EXTERNRT int rtxDynBitSetClearBit(OSRTDynBitSet *pbitset, OSUINT32 idx)
This function clears the bit at the given index.
EXTERNRT int rtxDynBitSetInit(OSCTXT *pctxt, OSRTDynBitSet *pbitset, OSUINT16 segNBytes)
This function initializes a dynamic bit set structure.
EXTERNRT int rtxDynBitSetSetBitToValue(OSCTXT *pctxt, OSRTDynBitSet *pbitset, OSUINT32 idx, OSBOOL value)
This function sets the bit at the given index to the give value.
EXTERNRT void rtxDynBitSetFree(OSCTXT *pctxt, OSRTDynBitSet *pbitset)
This function frees dynamic memory held by the bit set.
Contains utility functions for setting, clearing, and testing bits at any position in an arbitrarily ...
EXTERNRT int rtxDynBitSetInsertBit(OSCTXT *pctxt, OSRTDynBitSet *pbitset, OSUINT32 idx, OSBOOL value)
This function inserts a bit with the given value at the given index.
Run-time context structure.
EXTERNRT int rtxDynBitSetCopy(OSCTXT *pctxt, const OSRTDynBitSet *pSrcBitSet, OSRTDynBitSet *pDestBitSet)
This function creates a deep copy of the given bit set.