43 : MetaLog::Entity(header) {
76 for (
size_t i=0; i<count; ++i)
81 uint16_t definition_version) {
82 Entity::decode(bufp, remainp);
86 return "RecoveredServers";
void encode_internal(uint8_t **bufp) const override
Writes serialized representation of object to a buffer.
char * decode_vstr(const uint8_t **bufp, size_t *remainp)
Decode a vstr (vint64, data, null).
void decode(const uint8_t **bufp, size_t *remainp, uint16_t definition_version) override
MetaLog entity decode method.
std::set< std::string > m_servers
Set of proxy names of recovered servers.
Declarations for RecoveredServers.
size_t encoded_length_vstr(size_t len)
Computes the encoded length of vstr (vint64, data, null)
uint32_t decode_i32(const uint8_t **bufp, size_t *remainp)
Decode a 32-bit integer in little-endian order.
uint8_t encoding_version() const override
Returns encoding version.
bool contains(const std::string &location)
Check to see if proxy name is in recovered servers set.
void encode_i32(uint8_t **bufp, uint32_t val)
Encode a 32-bit integer in little-endian order.
Compatibility Macros for C/C++.
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)
size_t encoded_length_internal() const override
Returns internal serialized length.
const std::string name() override
Returns the name of the entity (RecoveredServers).
void display(std::ostream &os) override
Writes a textual representation of the entity to an output stream.
void add(const std::string &location)
Adds proxy name to recovered servers set.
RecoveredServers()
Default constructor.
void decode_internal(uint8_t version, const uint8_t **bufp, size_t *remainp) override
Reads serialized representation of object from a buffer.