src/bitmap.h

Go to the documentation of this file.
00001 
00006 #ifndef BITMAP_H_
00007 #define BITMAP_H_
00008 
00012 typedef struct {
00013         unsigned int max_size;          
00014         unsigned int length;            
00015         unsigned char* contents;        
00016 } bitmap;
00017 
00018 unsigned char* bitmapGetContents(bitmap bm);
00019 unsigned int bitmapGetMaxSize(bitmap bm);
00020 unsigned int bitmapGetLength(bitmap bm);
00021 bitmap bitmapInit(unsigned int max_size);
00022 unsigned char bitmapGetBit(bitmap bm, unsigned int index);
00023 void bitmapSetBit(bitmap* bm, unsigned int index, unsigned char bit);
00024 void bitmapAppendLeastSignificantBit(bitmap* bm, unsigned char bit);
00025 
00026 #endif /*BITMAP_H_*/

Generated on Sun Jun 1 10:19:09 2008 for bitmap by  doxygen 1.5.3