public abstract class Chunk extends RawChunk
Modifier and Type | Field and Description |
---|---|
private static int |
CHUNK_TYPE_OFFSET |
protected static int |
DATA_OFFSET |
protected static int |
DEFAULT_CHUNK_SIZE |
private static int |
LENGTH_OFFSET |
private static int |
MAGIC_WORD_1 |
private static int |
MAGIC_WORD_2 |
ENCODING_SPACE_DOUBLE, ENCODING_SPACE_INT, ENCODING_SPACE_LONG
Modifier | Constructor and Description |
---|---|
protected |
Chunk(int chunkType) |
protected |
Chunk(int chunkType,
byte[] buffer) |
protected |
Chunk(int chunkType,
int capacity) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected char[] |
getChars(String s) |
protected void |
resetImpl() |
addByte, addDouble, addDoubleUnchecked, addInt, addIntUnchecked, addLong, addLongUnchecked, addString, addStringInternal, getPosition, hasRoom, putIntAt, seek, write
private static final int MAGIC_WORD_1
private static final int MAGIC_WORD_2
private static final int LENGTH_OFFSET
private static final int CHUNK_TYPE_OFFSET
protected static final int DATA_OFFSET
protected static final int DEFAULT_CHUNK_SIZE