uint64_t m_offset
File offset.
uint32_t decode_i32(const uint8_t **bufp, size_t *remainp)
Decode a 32-bit integer in little-endian order.
bool m_verify_checksum
Verify checksum flag.
uint64_t decode_i64(const uint8_t **bufp, size_t *remainp)
Decode a 64-bit integer in little-endian order.
bool decode_bool(const uint8_t **bufp, size_t *remainp)
Decodes a boolean value from the given buffer.
Logging routines and macros.
void encode_i32(uint8_t **bufp, uint32_t val)
Encode a 32-bit integer in little-endian order.
Compatibility Macros for C/C++.
Declarations for Pread request parameters.
void decode_internal(uint8_t version, const uint8_t **bufp, size_t *remainp) override
Reads serialized representation of object from a buffer.
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.
void encode_bool(uint8_t **bufp, bool bval)
Encodes a boolean into the given buffer.
uint32_t m_amount
Amount of data to read.
uint8_t encoding_version() const override
Returns encoding version.
void encode_internal(uint8_t **bufp) const override
Writes serialized representation of object to a buffer.
size_t encoded_length_internal() const override
Returns internal serialized length.
int32_t m_fd
File descriptor to which pread applies.