41 if (
id == 0 || other.
id == 0) {
45 if (strcmp(
id, other.
id) ||
52 return !(*
this == other);
56 if (
id == 0 || other.
id == 0) {
62 int cmpval = strcmp(
id, other.
id);
65 (cmpval == 0 && generation < other.
generation))
113 os <<
"{TableIdentifier: id='"<< tid.
id
char * decode_vstr(const uint8_t **bufp, size_t *remainp)
Decode a vstr (vint64, data, null).
static const char * METADATA_ID
static const char * METADATA_NAME
Declarations for TableIdentifier and TableIdentifierManaged.
size_t encoded_length_internal() const override
Returns internal serialized length.
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 operator!=(const TableIdentifier &other) const
void encode_internal(uint8_t **bufp) const override
Writes serialized representation of object to a buffer.
uint64_t decode_i64(const uint8_t **bufp, size_t *remainp)
Decode a 64-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.
void encode_i64(uint8_t **bufp, uint64_t val)
Encode a 64-bit integer in little-endian order.
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)
static const int METADATA_ID_LENGTH
bool operator<(const TableIdentifier &other) const
uint8_t encoding_version() const override
Returns encoding version.
void decode_internal(uint8_t version, const uint8_t **bufp, size_t *remainp) override
Reads serialized representation of object from a buffer.
bool operator==(const TableIdentifier &other) const