Phants Client for Redis™*
|
Public Member Functions | |
IntegerArraySinkAdapter (IntegerArrayCallback arrayCallback, ErrorCallback errorCallback) | |
void | ArrayBegin (int size) |
void | ArrayDone () |
void | BulkStringBegin (int size) |
void | BulkStringData (byte[] data, int offset, int numBytes) |
void | BulkStringDone () |
void | Integer (long i) |
void | SimpleString (string s) |
void | Error (string error) |
An implementation of the ArraySink interface that is designed to handle RESP Arrays of Integers.
This adapter only handles RESP arrays of Integers.
|
inline |
Constructs an IntegerArraySinkAdapter.
arrayCallback | Delegate method that is called when a RESP Array of Integers has been received. |
errorCallback | Delegate method that is called when a RESP Error has been received. |
|
inline |
Called at the start of a RESP Array.
size | The number of elements in the array being parsed. |
Implements ArrayParser.
|
inline |
Called at the end of a RESP Array.
Implements ArrayParser.
|
inline |
Called at the start of a RESP Bulk String.
size | The length of the string being parsed. |
Implements BulkStringParser.
|
inline |
Called when a block of string data has been read.
Since RESP Bulk Strings can be up to 512MB in length, this interface was designed to handle data in chunks (typically sent over a network). This method will be called as many times is as necessary to transfer the whole Bulk String.
data | A buffer containing the block of new bytes. |
offset | The zero-based offset into data where the new bytes are stored. |
numBytes | The number of bytes read. |
Implements BulkStringParser.
|
inline |
Called after the last byte(s) of a Bulk String have been parsed.
Implements BulkStringParser.
|
inline |
Called when an Error has been parsed.
error | The error string that was parsed. |
Implements ErrorParser.
|
inline |
Called when an Integer has been parsed.
i | The value of the parsed Integer. |
Implements IntegerParser.
|
inline |
Called when a Simple String has been parsed.
s | The string that was parsed. |
Implements SimpleStringParser.