46 length += spec.encoded_length();
49 length += state.encoded_length();
89 for (
size_t i=0; i<count; ++i)
93 for (
size_t i=0; i<count; ++i) {
95 spec.
decode(bufp, remainp);
100 for (
size_t i=0; i<count; ++i) {
102 state.
decode(bufp, remainp);
char * decode_vstr(const uint8_t **bufp, size_t *remainp)
Decode a vstr (vint64, data, null).
void decode_internal(uint8_t version, const uint8_t **bufp, size_t *remainp) override
Reads serialized representation of object from a buffer.
const char * m_location
Location.
int32_t m_plan_generation
Plan generation.
void encode_internal(uint8_t **bufp) const override
Writes serialized representation of object to a buffer.
size_t encoded_length_vstr(size_t len)
Computes the encoded length of vstr (vint64, data, null)
uint32_t decode_i32(const uint8_t **bufp, size_t *remainp)
Decode a 32-bit integer in little-endian order.
size_t encoded_length_internal() const override
Returns internal serialized length.
Logging routines and macros.
void encode_i32(uint8_t **bufp, uint32_t val)
Encode a 32-bit integer in little-endian order.
Declarations for PhantomLoad request parameters.
vector< QualifiedRangeSpec > m_range_specs
Vector of range specifications.
vector< RangeState > m_range_states
Vector of range states.
Compatibility Macros for C/C++.
Functions to serialize/deserialize primitives to/from a memory buffer.
virtual void decode(const uint8_t **bufp, size_t *remainp)
Reads serialized representation of object from a buffer.
vector< int32_t > m_fragments
Fragments.
void encode_vstr(uint8_t **bufp, const void *buf, size_t len)
Encode a buffer as variable length string (vint64, data, null)
Qualified (with table identifier) range specification.
uint8_t encoding_version() const override
Returns encoding version.