Main Page | Modules | Class List | Directories | File List | Class Members | File Members | Related Pages

bitop.h File Reference

#include <stdlib.h>
#include <string.h>
#include <sys/types.h>

Go to the source code of this file.

Defines

#define INLINE   inline

Typedefs

typedef _BITOP BITOP

Functions

static INLINE int boInitStaticBITOP (BITOP *BitOp, int iBytes, unsigned char *buf)
static INLINE int boInitBITOP (BITOP *BitOp, int iSize)
static INLINE int boResetBITOP (BITOP *BitOp)
static INLINE int boSetBit (BITOP *BitOp, unsigned int uiPos)
static INLINE int boIsBitSet (BITOP *BitOp, unsigned int uiPos)
static INLINE void boClearBit (BITOP *BitOp, unsigned int uiPos)
static INLINE void boClearByte (BITOP *BitOp, unsigned int uiPos)


Define Documentation

#define INLINE   inline
 

Definition at line 50 of file bitop.h.


Typedef Documentation

typedef struct _BITOP BITOP
 


Function Documentation

static INLINE void boClearBit BITOP BitOp,
unsigned int  uiPos
[static]
 

Definition at line 252 of file bitop.h.

References _BITOP::pucBitBuffer, and _BITOP::uiMaxBits.

Referenced by FlowBitsCheck().

static INLINE void boClearByte BITOP BitOp,
unsigned int  uiPos
[static]
 

Definition at line 285 of file bitop.h.

References _BITOP::pucBitBuffer, and _BITOP::uiMaxBits.

static INLINE int boInitBITOP BITOP BitOp,
int  iSize
[static]
 

Definition at line 108 of file bitop.h.

References int(), NULL, _BITOP::pucBitBuffer, _BITOP::uiBitBufferSize, and _BITOP::uiMaxBits.

Referenced by BuildMultiPatGroup(), and BuildMultiPatGroupsUri().

static INLINE int boInitStaticBITOP BITOP BitOp,
int  iBytes,
unsigned char *  buf
[static]
 

This function is for use if you handle the bitop buffer allocation yourself. Just pass in the char array and the number of bytes the array is and this function sets up the structure for you.

Return values:
int 
Returns:
0 successful

!0 failed

Definition at line 74 of file bitop.h.

References int(), memset, _BITOP::pucBitBuffer, _BITOP::uiBitBufferSize, and _BITOP::uiMaxBits.

Referenced by init_flowdata().

static INLINE int boIsBitSet BITOP BitOp,
unsigned int  uiPos
[static]
 

Definition at line 219 of file bitop.h.

References _BITOP::pucBitBuffer, and _BITOP::uiMaxBits.

Referenced by FlowBitsCheck(), mwmGroupMatch2(), and otnx_match().

static INLINE int boResetBITOP BITOP BitOp  )  [static]
 

Definition at line 163 of file bitop.h.

References memset, _BITOP::pucBitBuffer, and _BITOP::uiBitBufferSize.

Referenced by FlowBitsCheck(), fpEvalHeaderSW(), and GetFlowbitsData().

static INLINE int boSetBit BITOP BitOp,
unsigned int  uiPos
[static]
 

Definition at line 185 of file bitop.h.

References _BITOP::pucBitBuffer, and _BITOP::uiMaxBits.

Referenced by FlowBitsCheck(), and otnx_match().


Generated on Sun May 14 14:51:26 2006 by  doxygen 1.4.2