RESP Decoder class.
More...
#include <resp_decoder.hpp>
|
| static Resp | decode (const char *buffer, size_t length) |
| | Decode a RESP command from a buffer.
|
| static Resp | decode (const char *buffer) |
| | Decode a RESP command from a null-terminated string.
|
RESP Decoder class.
This class is responsible for decoding RESP commands from a buffer. It parses the input buffer to extract the operation, key, and value, and handles error cases. The decode method returns a Resp object containing the parsed information.
◆ decode() [1/2]
| Resp RespDecoder::decode |
( |
const char * | buffer | ) |
|
|
inlinestatic |
Decode a RESP command from a null-terminated string.
- Parameters
-
| buffer | The input buffer containing the RESP command |
- Returns
- Resp object containing the parsed information
◆ decode() [2/2]
| Resp RespDecoder::decode |
( |
const char * | buffer, |
|
|
size_t | length ) |
|
inlinestatic |
Decode a RESP command from a buffer.
- Parameters
-
| buffer | The input buffer containing the RESP command |
| length | The length of the input buffer |
- Returns
- Resp object containing the parsed information
The documentation for this class was generated from the following file: