home *** CD-ROM | disk | FTP | other *** search
/ PC Shareware 1997 June / PC_Shareware-1997-06.iso / manga / mp2win95 / _setup.1 / BIT_RES.H < prev    next >
Encoding:
C/C++ Source or Header  |  1996-08-02  |  441 b   |  28 lines

  1. #ifndef BIT_RES_H
  2. #define BIT_RES_H
  3.  
  4. #define BUFSIZE 4096
  5.  
  6. class Bit_Reserve {
  7.  
  8. private:
  9.  
  10.     unsigned int offset, totbit, buf_byte_idx;
  11.     unsigned int *buf;
  12.     unsigned int buf_bit_idx;
  13.    int *putmask;
  14.  
  15. public:
  16.  
  17.     Bit_Reserve();
  18.     ~Bit_Reserve();
  19.  
  20.     unsigned int hsstell() { return(totbit); }
  21.     unsigned int hgetbits(int N);
  22.     void hputbuf(unsigned int val);
  23.  
  24.     void rewindNbits(int N);
  25.     void rewindNbytes(int N);
  26. };
  27.  
  28. #endif