|
Foxit PDF Conversion SDK
|
Inherits CFX_Object.
Public Member Functions | |
| void | ByteAlign () |
| Get to byte boundary. If current bit position is not multiplication of 8, the rest of the current byte will be skipped. More... | |
| FX_DWORD | GetBits (FX_DWORD nBits) |
| Get specified number of bits (maximum 32 bits). More... | |
| void | Init (FX_LPCBYTE pData, FX_DWORD dwSize) |
| Initialize the bit-stream with a memory block. Must call Init() first. More... | |
| FX_BOOL | IsEOF () const |
| Check if reached end of the stream. More... | |
| void | Rewind () |
| Rewind a bit-stream. Simply set the current bit position to be zero. More... | |
| void | SkipBits (FX_DWORD nBits) |
| Skip a number of bits. More... | |
The class represents Bit stream, reading from a continuous bit stream (starting at byte boundary). Assuming number of bits in each unit is not larger than 32.
| void CFX_BitStream::ByteAlign | ( | ) |
Get to byte boundary. If current bit position is not multiplication of 8, the rest of the current byte will be skipped.
Get specified number of bits (maximum 32 bits).
| [in] | nBits | Specify the number of bits (maximum 32 bits). |
| void CFX_BitStream::Init | ( | FX_LPCBYTE | pData, |
| FX_DWORD | dwSize | ||
| ) |
Initialize the bit-stream with a memory block. Must call Init() first.
| [in] | pData | Pointer to a memory block. |
| [in] | dwSize | The size in bytes of the memory block. |
|
inline |
Check if reached end of the stream.
|
inline |
Rewind a bit-stream. Simply set the current bit position to be zero.
|
inline |
Skip a number of bits.
| [in] | nBits | The number of bits to be skipped. |