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.IOException
void 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.IOException
void 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.IOException
void zero() throws java.io.IOException
java.io.IOException
Copyright © 2014. All Rights Reserved.