102 os <<
"type=" <<
type;
106 time_t t = (time_t)(
timestamp / 1000000000LL);
109 string timestr(asctime_r(gmtime_r(&t, &tmval), buf));
110 boost::trim_if(timestr, boost::is_any_of(
" \t\n"));
111 os <<
",timestamp=" << timestr;
113 os <<
",flags=" <<
flags;
114 os <<
",length=" <<
length;
uint32_t decode_i32(const uint8_t **bufp, size_t *remainp)
Decode a 32-bit integer in little-endian order.
uint64_t decode_i64(const uint8_t **bufp, size_t *remainp)
Decode a 64-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++.
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.
Time related declarations.
int64_t get_ts64()
Returns the current time in nanoseconds as a 64bit number.