34 uint8_t RangeMoveSpec::encoding_version()
const {
38 size_t RangeMoveSpec::encoded_length_internal()
const {
39 return table.encoded_length() + range.encoded_length() +
76 void RangeMoveSpec::encode_internal(uint8_t **bufp)
const {
85 void RangeMoveSpec::decode_internal(uint8_t version,
const uint8_t **bufp,
87 table.decode(bufp, remainp);
88 range.decode(bufp, remainp);
97 os <<
"{RangeMoveSpec: " << move_spec.
table <<
" " << move_spec.
range
101 <<
"' complete=" << (move_spec.
complete ?
"true" :
"false") <<
"}";
char * decode_vstr(const uint8_t **bufp, size_t *remainp)
Decode a vstr (vint64, data, null).
TableIdentifierManaged table
std::string source_location
size_t encoded_length_vstr(size_t len)
Computes the encoded length of vstr (vint64, data, null)
std::string dest_location
uint32_t decode_i32(const uint8_t **bufp, size_t *remainp)
Decode a 32-bit integer in little-endian order.
Range move specification.
bool decode_bool(const uint8_t **bufp, size_t *remainp)
Decodes a boolean value from the given buffer.
const char * get_text(int error)
Returns a descriptive error message.
void encode_i32(uint8_t **bufp, uint32_t val)
Encode a 32-bit integer in little-endian order.
Compatibility Macros for C/C++.
std::ostream & operator<<(std::ostream &os, const crontab_entry &entry)
Helper function to write crontab_entry to an ostream.
Declarations for RangeMoveSpec.
Functions to serialize/deserialize primitives to/from a memory buffer.
void encode_vstr(uint8_t **bufp, const void *buf, size_t len)
Encode a buffer as variable length string (vint64, data, null)
void encode_bool(uint8_t **bufp, bool bval)
Encodes a boolean into the given buffer.