Foxit PDF Conversion SDK
|
Inherits CFX_Object.
Public Member Functions | |
CFX_BitWriter (CFX_BinaryBuf *pBinBuf) | |
A constructor with bits write. More... | |
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... | |
int | GetCurBytePos () |
Get current byte position. More... | |
void | WriteBits (FX_INT64 value, FX_INT32 nBits) |
Write a value of bits. More... | |
The class represents Bit Writer, writting a value to a continuous bit stream (starting at byte boundary).
|
inline |
A constructor with bits write.
[in] | pBinBuf | The dynamic binary buffer. |
void CFX_BitWriter::ByteAlign | ( | ) |
Get to byte boundary. If current bit position is not multiplication of 8, the rest of the current byte will be skipped.
|
inline |
Get current byte position.
void CFX_BitWriter::WriteBits | ( | FX_INT64 | value, |
FX_INT32 | nBits | ||
) |
Write a value of bits.
[in] | value | The value to be written. |
[in] | nBits | The number of bits to be written. |