BitStream.Out

A bit output stream.

Methods
static int getGolombSize(int divisor, int value)
Get the size of the Golomb code for this value.
static int getGolombSize(int divisor, int value)
Get the size of the Golomb code for this value.
Parameters:
divisor - the divisor
value - the value
Returns:
the number of bits
void close()
Flush and close the stream.
void close()
Flush and close the stream. This will also close the underlying stream.
void flush()
Flush the stream.
void flush()
Flush the stream. This will at write at most 7 '0' bits. This will also flush the underlying stream.
void writeBit(int bit)
Write a bit.
void writeBit(int bit)
Write a bit.
Parameters:
bit - the bit (0 or 1)
void writeGolomb(int divisor, int value)
Write the Golomb code of a value.
void writeGolomb(int divisor, int value)
Write the Golomb code of a value.
Parameters:
divisor - the divisor
value - the value