Package com.epam.fix.message.storage
Class PerFieldMessageStorage
java.lang.Object
com.epam.fix.message.MessageStorage
com.epam.fix.message.storage.ByteBufferStorage
com.epam.fix.message.storage.PerFieldMessageStorage
Created by IntelliJ IDEA.
User: Alexander_Sereda
Date: 26.10.12
Time: 13:36
To change this template use File | Settings | File Templates.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ByteBuffer[]protected static final intprotected static final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(int tagIndex, byte[] value, int offset, int length) voidclear(int index) voidclearAll()voidcopy(PerFieldMessageStorage srcStorage) voidenlarge(int ratio) byte[]getByteArray(int index) protected ByteBuffergetByteBuffer(int tagIndex) voidinit(int tagIndex) booleanisEmpty()protected ByteBuffervoidsetValue(int tagIndex, long value, int length) voidshift(int index, int offset, int filledSize) voidshiftBack(int index, int offset, int filledSize) Methods inherited from class com.epam.fix.message.storage.ByteBufferStorage
setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueMethods inherited from class com.epam.fix.message.MessageStorage
getAsBoolean, getAsByte, getAsByteArray, getAsDouble, getAsLong, getAsReusableString, getAsString, getAsStringBuffer, updateValue, updateValue, updateValue, updateValue, updateValue, updateValue, updateValue, updateValue, updateValue
-
Field Details
-
PERFIRLD_STORAGE_INITIAL_SIZE
protected static final int PERFIRLD_STORAGE_INITIAL_SIZE- See Also:
-
PERFIRLD_STORAGE_GROW_INCREMENT
protected static final int PERFIRLD_STORAGE_GROW_INCREMENT- See Also:
-
perFieldStorage
-
-
Constructor Details
-
PerFieldMessageStorage
public PerFieldMessageStorage(int initialSize)
-
-
Method Details
-
enlarge
public void enlarge(int ratio) -
shift
public void shift(int index, int offset, int filledSize) -
shiftBack
public void shiftBack(int index, int offset, int filledSize) -
getByteArray
public byte[] getByteArray(int index) - Specified by:
getByteArrayin classMessageStorage
-
clearAll
public void clearAll()- Specified by:
clearAllin classMessageStorage
-
clear
public void clear(int index) -
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin classMessageStorage
-
add
public void add(int tagIndex, byte[] value, int offset, int length) - Specified by:
addin classMessageStorage
-
setValue
public void setValue(int tagIndex, long value, int length) - Overrides:
setValuein classByteBufferStorage
-
getByteBuffer
- Specified by:
getByteBufferin classByteBufferStorage
-
init
public void init(int tagIndex) -
newPerFieldStorage
-
copy
-