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 int
protected static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
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
void
setValue
(int tagIndex, long value, int length) void
shift
(int index, int offset, int filledSize) void
shiftBack
(int index, int offset, int filledSize) Methods inherited from class com.epam.fix.message.storage.ByteBufferStorage
setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue
Methods 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:
getByteArray
in classMessageStorage
-
clearAll
public void clearAll()- Specified by:
clearAll
in classMessageStorage
-
clear
public void clear(int index) -
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in classMessageStorage
-
add
public void add(int tagIndex, byte[] value, int offset, int length) - Specified by:
add
in classMessageStorage
-
setValue
public void setValue(int tagIndex, long value, int length) - Overrides:
setValue
in classByteBufferStorage
-
getByteBuffer
- Specified by:
getByteBuffer
in classByteBufferStorage
-
init
public void init(int tagIndex) -
newPerFieldStorage
-
copy
-