47 BlockHeader(BaseVersions[version]), m_revision(0), m_cluster_id(0),
53 uint64_t cluster_id) :
54 BlockHeader(BaseVersions[LatestVersion], magic), m_revision(revision),
55 m_cluster_id(cluster_id), m_version(LatestVersion) {
65 uint8_t *base = *bufp;
94 if (static_cast<const BlockHeader &>(*
this) == other &&
uint64_t decode_i64(const uint8_t **bufp, size_t *remainp)
Decode a 64-bit integer in little-endian order.
Logging routines and macros.
Compatibility Macros for C/C++.
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.
Error codes, Exception handling, error logging.