|
Phants Client for Redis™*
|


Public Member Functions | |
| BulkStringSinkAdapter (BulkStringCallback bulkStringCallback, ErrorCallback errorCallback, int bufferSize=BUFFER_SIZE_32K) | |
| BulkStringSinkAdapter (BulkStringCallback bulkStringCallback, ErrorCallback errorCallback, byte[] buffer) | |
| void | BulkStringBegin (int size) |
| void | BulkStringData (byte[] data, int offset, int numBytes) |
| void | BulkStringDone () |
| void | Error (string error) |
An implementation of the BulkStringSink interface that is designed to handle RESP Bulk Strings.
|
inline |
Constructs a BulkStringSinkAdapter.
| bulkStringCallback | Delegate method that is called when a RESP Bulk String has been received. |
| errorCallback | Delegate method that is called when a RESP Error has been received. |
| bufferSize | An optional parameter allowing the user to specify how big the receive buffer should be. |
|
inline |
Constructs a BulkStringSinkAdapter.
| bulkStringCallback | Delegate method that is called when a RESP Bulk String has been received. |
| errorCallback | Delegate method that is called when a RESP Error has been received. |
| buffer | A buffer provided by the user that serves as the Bulk String receive buffer. |
|
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.