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 IOException
IOExceptionvoid pad(int factor)
throws IOException
factor - The size in bits of the block to pad. This will typically be
8, 16, 32, 64, 128, 256, etc.IOExceptionvoid write(int bits,
int width)
throws IOException
bits - The bits to be written.width - The number of bits to write. (0..32)IOExceptionvoid zero()
throws IOException
IOExceptionCopyright © 2013. All Rights Reserved.