public class PerFieldMessageStorage extends ByteBufferStorage
Modifier and Type | Field and Description |
---|---|
protected ByteBuffer[] |
perFieldStorage |
protected static int |
PERFIRLD_STORAGE_GROW_INCREMENT |
protected static int |
PERFIRLD_STORAGE_INITIAL_SIZE |
Constructor and Description |
---|
PerFieldMessageStorage(int initialSize) |
Modifier and Type | Method and Description |
---|---|
void |
add(int tagIndex,
byte[] value,
int offset,
int length) |
void |
clear(int index) |
void |
clearAll() |
void |
copy(PerFieldMessageStorage srcStorage) |
void |
enlarge(int ratio) |
byte[] |
getByteArray(int index) |
protected ByteBuffer |
getByteBuffer(int tagIndex) |
void |
init(int tagIndex) |
boolean |
isEmpty() |
protected ByteBuffer |
newPerFieldStorage() |
void |
setValue(int tagIndex,
long value,
int length) |
void |
shift(int index,
int offset,
int filledSize) |
void |
shiftBack(int index,
int offset,
int filledSize) |
setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue
getAsBoolean, getAsByte, getAsByteArray, getAsDouble, getAsLong, getAsReusableString, getAsString, getAsStringBuffer, updateValue, updateValue, updateValue, updateValue, updateValue, updateValue, updateValue, updateValue, updateValue
protected static final int PERFIRLD_STORAGE_INITIAL_SIZE
protected static final int PERFIRLD_STORAGE_GROW_INCREMENT
protected ByteBuffer[] perFieldStorage
public void enlarge(int ratio)
public void shift(int index, int offset, int filledSize)
public void shiftBack(int index, int offset, int filledSize)
public byte[] getByteArray(int index)
getByteArray
in class MessageStorage
public void clearAll()
clearAll
in class MessageStorage
public void clear(int index)
public boolean isEmpty()
isEmpty
in class MessageStorage
public void add(int tagIndex, byte[] value, int offset, int length)
add
in class MessageStorage
public void setValue(int tagIndex, long value, int length)
setValue
in class ByteBufferStorage
protected ByteBuffer getByteBuffer(int tagIndex)
getByteBuffer
in class ByteBufferStorage
public void init(int tagIndex)
protected ByteBuffer newPerFieldStorage()
public void copy(PerFieldMessageStorage srcStorage)
Copyright © 2000–2022 EPAM Systems. All rights reserved.