21 #ifndef __PRC_BIT_STREAM_H
22 #define __PRC_BIT_STREAM_H
29 typedef signed char int8_t;
30 typedef signed short int16_t;
31 typedef signed long int32_t;
32 typedef unsigned char uint8_t;
33 typedef unsigned short uint16_t;
34 typedef unsigned long uint32_t;
35 #endif // _MSC_VER >= 1600
43 #define CHUNK_SIZE (1024)
49 PRCbitStream(uint8_t*& buff,
unsigned int l) : byteIndex(0), bitIndex(0),
50 allocatedLength(l), data(buff), compressed(
false)
58 unsigned int getSize()
const;
70 void write(std::ostream &out)
const;
73 void writeBits(uint32_t,uint8_t);
74 void writeByte(uint8_t);
79 unsigned int byteIndex,bitIndex;
80 unsigned int allocatedLength;
83 uint32_t compressedDataSize;
86 #endif // __PRC_BIT_STREAM_H
Definition: PRCbitStream.h:46