ASN1C C/C++ Common Runtime  ASN1C v7.3.x
Macros | Functions
rtxBitString.h File Reference
#include "rtxsrc/rtxContext.h"

Go to the source code of this file.

Macros

#define OSRTBYTEARRAYSIZE(numbits)   ((numbits+7)/8)
 

Functions

OSUINT32 rtxGetBitCount (OSUINT32 value)
 
int rtxSetBit (OSOCTET *pBits, OSSIZE numbits, OSSIZE bitIndex)
 
OSUINT32 rtxSetBitFlags (OSUINT32 flags, OSUINT32 mask, OSBOOL action)
 
int rtxClearBit (OSOCTET *pBits, OSSIZE numbits, OSSIZE bitIndex)
 
OSBOOL rtxTestBit (const OSOCTET *pBits, OSSIZE numbits, OSSIZE bitIndex)
 
OSSIZE rtxLastBitSet (const OSOCTET *pBits, OSSIZE numbits)
 
int rtxCheckBitBounds (OSCTXT *pctxt, OSOCTET **ppBits, OSSIZE *pNumocts, OSSIZE minRequiredBits, OSSIZE preferredLimitBits)
 
int rtxZeroUnusedBits (OSOCTET *pBits, OSSIZE numbits)
 
int rtxCheckUnusedBitsZero (const OSOCTET *pBits, OSSIZE numbits)
 

Detailed Description

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