00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 #ifndef BITS_H
00015 #define BITS_H
00016 
00017 #include "il_internal.h"
00018 
00019 
00020 
00021 typedef struct BITFILE
00022 {
00023         ILHANDLE        File;
00024         ILuint          BitPos;
00025         ILint           ByteBitOff;
00026         ILubyte         Buff;
00027 } BITFILE;
00028 
00029 
00030 
00031 ILint           bclose(BITFILE *BitFile);
00032 BITFILE*        bfile(ILHANDLE File);
00033 ILint           btell(BITFILE *BitFile);
00034 ILint           bseek(BITFILE *BitFile, ILuint Offset, ILuint Mode);
00035 ILint           bread(void *Buffer, ILuint Size, ILuint Number, BITFILE *BitFile);
00036 
00037 
00038 
00039 #define SetBits(var, bits)              (var |= bits)
00040 #define ClearBits(var, bits)    (var &= ~(bits))
00041 
00042 
00043 #endif//BITS_H