public final class PackedDataOutput
extends java.lang.Object
DataOutput
wrapper to write unaligned, variable-length packed
integers.PackedDataInput
Modifier and Type | Field and Description |
---|---|
(package private) long |
current |
(package private) DataOutput |
out |
(package private) int |
remainingBits |
Constructor and Description |
---|
PackedDataOutput(DataOutput out)
Create a new instance that wraps
out . |
Modifier and Type | Method and Description |
---|---|
void |
flush()
Flush pending bits to the underlying
DataOutput . |
void |
writeLong(long value,
int bitsPerValue)
Write a value using exactly
bitsPerValue bits. |
final DataOutput out
long current
int remainingBits
public PackedDataOutput(DataOutput out)
out
.public void writeLong(long value, int bitsPerValue) throws java.io.IOException
bitsPerValue
bits.java.io.IOException
public void flush() throws java.io.IOException
DataOutput
.java.io.IOException