|
AMPS C# Client
5.3.5.0
AMPS C# Client for .NET
|
MemoryStoreBuffer is a wrapper for a list that maintains position. In order to do this, MemoryStoreBuffer uses a ByteBuffer. More...
Inheritance diagram for AMPS.Client.MemoryStoreBuffer:Public Member Functions | |
| MemoryStoreBuffer (int initialSize) | |
| Constructor for MemoryStoreBuffer. More... | |
| long | getSize () |
| Gets the size of the buffer. More... | |
| void | setSize (long newSize_) |
| Sets the size of the buffer, growing if necessary. 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 to the buffer and advances the position. More... | |
| byte | getByte () |
| Gets the next byte from the buffer and advances the position. More... | |
| void | putInt (int i) |
| Writes the integer to the buffer. Advances current position. More... | |
| void | putInt (long position, int intValue) |
| Writes the integer to the buffer at position, doesn't change current position. More... | |
| int | getInt () |
| Gets an integer from the buffer and advances the position. More... | |
| int | getInt (long position) |
| Gets the integer from the buffer at position and doesn't change current position. More... | |
| void | putLong (long l) |
| Writes thee long to the buffer and advances the position. More... | |
| void | putLong (long position, long longValue) |
| Writes the long to the buffer at position and doesn't change current position. More... | |
| long | getLong () |
| Gets the long from the buffer and advances the position. More... | |
| void | putUlong (ulong l) |
| Writes an unsigned long to the buffer and advances the position. More... | |
| void | putUlong (long position, ulong ulongValue) |
| Writes an unsigned long to the buffer at position and doesn't change current position. More... | |
| ulong | getUlong () |
| Gets the unsigned long from the buffer and advances the position. More... | |
| void | putBytes (BlockPublishStore.ByteSequence bytes) |
| Writes a series of bytes at the current position, taken from the specified BlockPublishStore.ByteSequence and advances the position. More... | |
| void | getBytes (BlockPublishStore.ByteSequence outBytes) |
| Gets the series of bytes at the current position by placing them into the provided BlockPublishStore.ByteSequence object and advances the position. More... | |
| void | putBytes (byte[] buffer, int position, int length) |
| Writes a series of bytes at the current position, taken from a byte array and advances the position. 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 and advances the position. More... | |
| void | zero (long offset, int length) |
| Sets length bytes starting at offset to 0. More... | |
Public Member Functions inherited from AMPS.Client.BlockPublishStore.Buffer | |
| void | getBytes (Field outBytes, int length) |
| Reads data into a Field object from the buffer More... | |
Public Attributes | |
| long | _position = 0 |
Protected Attributes | |
| byte[] | _buffer = null |
| Store | _store = null |
MemoryStoreBuffer is a wrapper for a list that maintains position. In order to do this, MemoryStoreBuffer uses a ByteBuffer.
|
inline |
Constructor for MemoryStoreBuffer.
Initializes a new instance of the MemoryStoreBuffer class with the specified initial size.
| initialSize | The initial size of the buffer, specified in terms of the number of blocks. |
|
inline |
Gets the next byte from the buffer and advances the position.
Implements AMPS.Client.BlockPublishStore.Buffer.
|
inline |
Gets the series of bytes at the current position by placing them into the provided BlockPublishStore.ByteSequence object and advances the position.
| 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 and advances the position.
| outField | The Field object used to copy the byte sequence. |
| length | The length of the Field object. |
|
inline |
Gets an integer from the buffer and advances the position.
Implements AMPS.Client.BlockPublishStore.Buffer.
|
inline |
Gets the integer from the buffer at position and doesn't change current position.
| position | The position in the buffer where the integer begins. |
Implements AMPS.Client.BlockPublishStore.Buffer.
|
inline |
Gets the long from the buffer and advances the position.
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 and advances the position.
Implements AMPS.Client.BlockPublishStore.Buffer.
|
inline |
Writes the byte to the buffer and advances the position.
| b | The byte to be written in the buffer |
Implements AMPS.Client.BlockPublishStore.Buffer.
|
inline |
Writes a series of bytes at the current position, taken from the specified BlockPublishStore.ByteSequence and advances the position.
| 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 and advances the position.
| 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 buffer. |
Implements AMPS.Client.BlockPublishStore.Buffer.
|
inline |
Writes the integer to the buffer. Advances current position.
| i | The integer to be placed in the buffer. |
Implements AMPS.Client.BlockPublishStore.Buffer.
|
inline |
Writes the integer to the buffer at position, doesn't change current position.
| 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 and advances the position.
| l | The long to write in the buffer. |
Implements AMPS.Client.BlockPublishStore.Buffer.
|
inline |
Writes the long to the buffer at position and doesn't change current position.
| 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 at position and doesn't change current position.
| 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 and advances the position.
| 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, growing if necessary.
| newSize_ | The new size to be assigned to the buffer. |
Implements AMPS.Client.BlockPublishStore.Buffer.
|
inline |
Sets length bytes starting at offset to 0.
| offset | The offset at which to start |
| length | The length of bytes to set to 0. |
Implements AMPS.Client.BlockPublishStore.Buffer.