Class Bzip2BitWriter
java.lang.Object
io.netty.handler.codec.compression.Bzip2BitWriter
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidWrites any remaining bits to the outputByteBuf, zero padding to a whole byte as required.(package private) voidWrites up to 32 bits to the outputByteBuf.(package private) voidwriteBoolean(ByteBuf out, boolean value) Writes a single bit to the outputByteBuf.(package private) voidWrites an integer as 32 bits to the outputByteBuf.(package private) voidwriteUnary(ByteBuf out, int value) Writes a zero-terminated unary number to the outputByteBuf.
-
Field Details
-
bitBuffer
private long bitBufferA buffer of bits waiting to be written to the output stream. -
bitCount
private int bitCountThe number of bits currently buffered inbitBuffer.
-
-
Constructor Details
-
Bzip2BitWriter
Bzip2BitWriter()
-
-
Method Details
-
writeBits
-
writeBoolean
-
writeUnary
-
writeInt
-
flush
-