90 HT_TRY(
"decoding cell interval",
101 hql.reserve( (start_row ? strlen(start_row) : 0) +
102 (start_column ? strlen(start_column) : 0) +
103 (end_row ? strlen(end_row) : 0) +
104 (end_column ? strlen(end_column) : 0) + 8);
105 if (start_row && *start_row) {
107 hql.append(start_row);
109 if (start_column && *start_column)
110 hql.append(start_column);
118 if (end_row && *end_row) {
126 if (end_column && *end_column)
127 hql.append(end_column);
135 os <<
"{CellInterval: ";
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.
size_t encoded_length_vstr(size_t len)
Computes the encoded length of vstr (vint64, data, null)
bool decode_bool(const uint8_t **bufp, size_t *remainp)
Decodes a boolean value from the given buffer.
ostream & operator<<(ostream &os, const CellInterval &ci)
Logging routines and macros.
size_t encoded_length_internal() const override
Returns internal serialized length.
const string render_hql() const
Renders cell interval as HQL.
Compatibility Macros for C/C++.
uint8_t encoding_version() const override
Returns encoding version.
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.
const char * start_column
void encode_internal(uint8_t **bufp) const override
Writes serialized representation of object to a buffer.
Represents a cell interval.
#define HT_TRY(_s_, _code_)