47 const uint8_t *decode_ptr =
event->payload + 4;
48 size_t decode_remain =
event->payload_len - 4;
59 m_response.decode(&decode_ptr, &decode_remain);
66 uint8_t *p = (uint8_t *)decode_ptr;
67 uint8_t *endp = p + len;
76 m_vec.push_back(std::make_pair(key, value));
78 m_iter = m_vec.begin();
88 if (m_iter == m_vec.end())
91 key = (*m_iter).first;
92 value = (*m_iter).second;
static int32_t response_code(const Event *event)
Returns the response code from an event event generated in response to a request message.
std::shared_ptr< Event > EventPtr
Smart pointer to Event.
uint32_t decode_i32(const uint8_t **bufp, size_t *remainp)
Decode a 32-bit integer in little-endian order.
A class managing one or more serializable ByteStrings.
Logging routines and macros.
Compatibility Macros for C/C++.
Functions to serialize/deserialize primitives to/from a memory buffer.
size_t length() const
Retrieves the length of the serialized string.
const uint8_t * ptr
The pointer to the serialized data.
bool next(SerializedKey &key, ByteString &value)
Returns the next key/value pair in the scanblock.
Declarations for Protocol.
This is a generic exception class for Hypertable.
Declarations for ScanBlock.
Error codes, Exception handling, error logging.
int load(EventPtr &event)
Loads scanblock data returned from RangeServer.
int code() const
Returns the error code.