AMPS C# Client
5.3.3.4
AMPS C# Client for .NET
|
MemoryStoreBuffer is a wrapper for a list that maintains positon. In order to do this, MemoryStoreBuffer uses a ByteBuffer. More...
Public Member Functions | |
MemoryStoreBuffer (int initialSize) | |
long | getSize () |
Gets the size of the buffer. More... | |
void | setSize (long newSize_) |
Sets the size of the buffer. More... | |
long | getPosition () |
Gets the current position of the buffer. More... | |
void | setPosition (long position_) |
Sets the new current position in the buffer. More... | |
void | putByte (byte b) |
Writes the byte in the buffer. More... | |
byte | getByte () |
Gets the byte from the buffer. More... | |
void | putInt (int i) |
Writes the integer to the buffer. More... | |
void | putInt (long position, int intValue) |
Writes the integer to the buffer. More... | |
int | getInt () |
Gets the integer from the buffer. More... | |
int | getInt (long position) |
Gets the integer from the buffer. More... | |
void | putLong (long l) |
Writes thee long to the buffer. More... | |
void | putLong (long position, long longValue) |
Writes the long to the buffer. More... | |
long | getLong () |
Gets the long from the buffer. More... | |
void | putUlong (ulong l) |
Writes an unsigned long to the buffer. More... | |
void | putUlong (long position, ulong ulongValue) |
Writes an unsigned long to the buffer. More... | |
ulong | getUlong () |
Gets the unsigned long from the buffer. More... | |
void | putBytes (BlockPublishStore.ByteSequence bytes) |
Writes a series of bytes at the current positon, taken from the specified BlockPublishStore.ByteSequence. More... | |
void | getBytes (BlockPublishStore.ByteSequence outBytes) |
Gets the series of bytes at the current position by placing them into the provided BlockPublishStore.ByteSequence object. More... | |
void | putBytes (byte[] buffer, int position, int length) |
Writes a series of bytes at the current position, taken from a byte array. More... | |
void | getBytes (Fields.Field outField, int length) |
Gets the series of bytes at the current position, this is done by copying them into a Field object. More... | |
void | zero (long offset, int length) |
Sets the offset and length of the buffer to 0. More... | |
![]() | |
void | getBytes (Field outBytes, int length) |
Public Attributes | |
long | _position = 0 |
Protected Attributes | |
byte[] | _buffer = null |
Store | _store = null |
MemoryStoreBuffer is a wrapper for a list that maintains positon. In order to do this, MemoryStoreBuffer uses a ByteBuffer.
|
inline |
Gets the byte from the buffer.
Implements AMPS.Client.BlockPublishStore.Buffer.
|
inline |
Gets the series of bytes at the current position by placing them into the provided BlockPublishStore.ByteSequence object.
outBytes | The ByteSequence object to be copied. |
Implements AMPS.Client.BlockPublishStore.Buffer.
|
inline |
Gets the series of bytes at the current position, this is done by copying them into a Field object.
outField | The Field object used to copy the byte sequence. |
length | The length of the Field object. |
|
inline |
Gets the integer from the buffer.
Implements AMPS.Client.BlockPublishStore.Buffer.
|
inline |
Gets the integer from the buffer.
position | The position in the buffer where the integer begins. |
Implements AMPS.Client.BlockPublishStore.Buffer.
|
inline |
Gets the long from the buffer.
Implements AMPS.Client.BlockPublishStore.Buffer.
|
inline |
Gets the current position of the buffer.
Implements AMPS.Client.BlockPublishStore.Buffer.
|
inline |
Gets the size of the buffer.
Implements AMPS.Client.BlockPublishStore.Buffer.
|
inline |
Gets the unsigned long from the buffer.
Implements AMPS.Client.BlockPublishStore.Buffer.
|
inline |
Writes the byte in the buffer.
b | The byte to be written in the buffer |
Implements AMPS.Client.BlockPublishStore.Buffer.
|
inline |
Writes a series of bytes at the current positon, taken from the specified BlockPublishStore.ByteSequence.
bytes | The series of bytes to write at the current position. |
Implements AMPS.Client.BlockPublishStore.Buffer.
|
inline |
Writes a series of bytes at the current position, taken from a byte array.
buffer | The buffer containing a series of bytes. |
position | The position in the buffer where the series of bytes are located. |
length | The length of the byte buffeer. |
Implements AMPS.Client.BlockPublishStore.Buffer.
|
inline |
Writes the integer to the buffer.
i | The integer to be placed in the buffer. |
Implements AMPS.Client.BlockPublishStore.Buffer.
|
inline |
Writes the integer to the buffer.
position | The location where the integer is placed in the buffer. |
intValue | The integer to bee placed in the buffer. |
Implements AMPS.Client.BlockPublishStore.Buffer.
|
inline |
Writes thee long to the buffer.
l | The long to write in the buffer. |
Implements AMPS.Client.BlockPublishStore.Buffer.
|
inline |
Writes the long to the buffer.
position | The position in the buffer where the long should be placed. |
longValue | The long to write in the buffer. |
Implements AMPS.Client.BlockPublishStore.Buffer.
|
inline |
Writes an unsigned long to the buffer.
position | The position in the buffer where the unsigned long should be placed. |
ulongValue | The unsigned long to write in the buffer. |
Implements AMPS.Client.BlockPublishStore.Buffer.
|
inline |
Writes an unsigned long to the buffer.
l | The unsigned long to write in the buffer. |
Implements AMPS.Client.BlockPublishStore.Buffer.
|
inline |
Sets the new current position in the buffer.
position_ | The new current position to be set in the buffer. |
Implements AMPS.Client.BlockPublishStore.Buffer.
|
inline |
Sets the size of the buffer.
newSize_ | The new size to be assigned to the buffer. |
Implements AMPS.Client.BlockPublishStore.Buffer.
|
inline |
Sets the offset and length of the buffer to 0.
offset | The offset to set as 0. |
length | The length to set as 0. |
Implements AMPS.Client.BlockPublishStore.Buffer.