28 #ifndef HYPERTABLE_BLOCKHEADER_H
29 #define HYPERTABLE_BLOCKHEADER_H
52 static const uint16_t LatestVersion = 1;
61 BlockHeader(uint16_t version=LatestVersion,
const char *magic=0);
74 void set_magic(
const char *magic) { memcpy(m_magic, magic, 10); }
79 const char *
get_magic() {
return (
const char *)m_magic; }
86 bool check_magic(
const char *magic) {
return !memcmp(magic, m_magic, 10); }
151 void write_header_checksum(uint8_t *base);
157 virtual size_t encoded_length();
192 virtual void encode(uint8_t **bufp);
201 virtual void decode(
const uint8_t **bufp,
size_t *remainp);
249 #endif // HYPERTABLE_BLOCKHEADER_H
bool operator==(const directory_entry< _Key, _Tp > &lhs, const directory_entry< _Key, _Tp > &rhs)