OpenV2G
|
Bit Output Stream. More...
Go to the source code of this file.
Functions | |
int | writeBits (bitstream_t *stream, size_t nbits, uint32_t bits) |
Write bits. More... | |
int | flush (bitstream_t *stream) |
Flush output. More... | |
Bit Output Stream.
Write bits and bytes to an underlying output stream.
int flush | ( | bitstream_t * | stream | ) |
Flush output.
If there are some unwritten bits, pad them if necessary and write them out. Note that this method does flush the underlying stream.
stream | Output Stream |
Flush output
int writeBits | ( | bitstream_t * | stream, |
size_t | nbits, | ||
uint32_t | bits | ||
) |
Write bits.
Write the n least significant bits of parameter b starting with the most significant, i.e. from left to right.
stream | Output Stream |
nbits | Number of bits |
bits | value |