Main Page | Modules | Data Structures | File List | Globals | Related Pages

bitfield.h

Go to the documentation of this file.
00001 #ifndef BITFIELDH
00002 #define BITFIELDH
00003 
00017 typedef struct _BITFIELD_ {
00018    int numBytes;
00019    unsigned char *data;
00020 } BitFieldStruct, *BitFieldPtr;
00021 
00022 typedef BitFieldPtr BitField;
00023 
00025 BitField BitFieldNew(int byteSize);
00026 
00027 void BitFieldSetSizeData(BitField b, int byteSize, unsigned char *data);
00028 
00030 void BitFieldFree(BitField b);
00031 
00032 unsigned char *BitFieldFreeSaveData(BitField b);
00033 
00035 int BitFieldGetNumBytes(BitField b);
00036 
00038 int BitFieldGetBit(BitField b, long offset);
00039 
00041 void BitFieldSetBit(BitField b, long offset, int val);
00042 
00043 #endif

Generated for VFML by doxygen hosted by SourceForge.net Logo