public class DeltaBitOutput extends Object
| Modifier and Type | Field and Description |
|---|---|
static long[] |
BIT_SET_MASK |
protected int |
bitsLeft |
static int |
DEFAULT_ALLOCATION |
protected long |
lB |
static long[] |
MASK_ARRAY |
| Constructor and Description |
|---|
DeltaBitOutput()
Creates a new ByteBufferBitOutput with a default allocated size of 4096 bytes.
|
DeltaBitOutput(int initialSize)
Give an initialSize different than DEFAULT_ALLOCATIONS.
|
| Modifier and Type | Method and Description |
|---|---|
protected int |
capacityLeft() |
protected void |
expandAllocation() |
protected void |
flipWord() |
protected void |
flipWordWithoutExpandCheck() |
void |
flush()
Causes the currently handled word to be written to the stream
|
long[] |
getLongArray() |
void |
skipBit() |
void |
writeBit()
Sets the next bit (or not) and moves the bit pointer.
|
void |
writeBits(long value,
int bits)
Writes the given long to the stream using bits amount of meaningful bits.
|
public static final int DEFAULT_ALLOCATION
protected long lB
protected int bitsLeft
public static final long[] MASK_ARRAY
public static final long[] BIT_SET_MASK
public DeltaBitOutput()
public DeltaBitOutput(int initialSize)
initialSize - New initialsize to useprotected void expandAllocation()
protected int capacityLeft()
protected void flipWord()
protected void flipWordWithoutExpandCheck()
public void writeBit()
public void skipBit()
public void writeBits(long value,
int bits)
value - Value to be written to the streambits - How many bits are stored to the streampublic void flush()
public long[] getLongArray()
Copyright © 2025 DolphinDB. All rights reserved.