public interface BitWriter
| Modifier and Type | Method and Description |
|---|---|
long |
nrBits()
Returns the number of bits that have been written to this bitwriter.
|
void |
one()
Write a 1 bit.
|
void |
pad(int factor)
Pad the rest of the block with zeros and flush.
|
void |
write(int bits,
int width)
Write some bits.
|
void |
zero()
Write a 0 bit.
|
long nrBits()
void one()
throws java.io.IOException
java.io.IOExceptionvoid pad(int factor)
throws java.io.IOException
factor - The size in bits of the block to pad. This will typically be
8, 16, 32, 64, 128, 256, etc.java.io.IOExceptionvoid write(int bits,
int width)
throws java.io.IOException
bits - The bits to be written.width - The number of bits to write. (0..32)java.io.IOExceptionvoid zero()
throws java.io.IOException
java.io.IOExceptionCopyright © 2014. All Rights Reserved.