35 #include <boost/algorithm/string/predicate.hpp>
56 HT_ASSERT(!boost::ends_with(pathname,
"/"));
62 m_log_set.insert(logs.begin(), logs.end());
67 for (
const auto &path : logs)
77 uint16_t definition_version) {
78 if (definition_version < 3)
81 Entity::decode(bufp, remainp);
104 for (int32_t i=0; i<count; i++)
112 if (val == 123456789LL) {
120 for (uint32_t i=0; i<count; i++)
126 return "RemoveOkLogs";
133 os << (first ?
" " :
", ") << pathname;
std::set< String > StringSet
STL Set managing Strings.
char * decode_vstr(const uint8_t **bufp, size_t *remainp)
Decode a vstr (vint64, data, null).
std::string String
A String is simply a typedef to std::string.
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.
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)