ByteBuf when sufficient bits have been accumulated.
| Modifier and Type | Field and Description |
|---|---|
| private long | bitBuffer
A buffer of bits waiting to be written to the output stream. |
| private int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| pack-priv void | |
| pack-priv void | writeBoolean(ByteBuf out, final boolean
The bit to write value)Writes a single bit to the output |
| pack-priv void | |
| pack-priv void | writeUnary(ByteBuf out, int
The number of value)1 to writeWrites a zero-terminated unary number to the output |
| bitBuffer | back to summary |
|---|---|
| private long bitBuffer A buffer of bits waiting to be written to the output stream. | |
| bitCount | back to summary |
|---|---|
| private int bitCount The number of bits currently buffered in | |
| Bzip2BitWriter | back to summary |
|---|---|
| pack-priv Bzip2BitWriter() | |
| flush | back to summary |
|---|---|
| pack-priv void flush(ByteBuf out) Writes any remaining bits to the output | |
| writeBits | back to summary |
|---|---|
| pack-priv void writeBits(ByteBuf out, final int count, final long value) Writes up to 32 bits to the output
| |
| writeBoolean | back to summary |
|---|---|
| pack-priv void writeBoolean(ByteBuf out, final boolean value) Writes a single bit to the output
| |
| writeInt | back to summary |
|---|---|
| pack-priv void writeInt(ByteBuf out, final int value) Writes an integer as 32 bits to the output
| |
| writeUnary | back to summary |
|---|---|
| pack-priv void writeUnary(ByteBuf out, int value) Writes a zero-terminated unary number to the output
| |