27 #ifndef FsBroker_Lib_Request_Parameters_Pread_h
28 #define FsBroker_Lib_Request_Parameters_Pread_h
40 namespace Parameters {
62 Pread(int32_t fd, uint64_t offset, uint32_t amount,
bool verify_checksum)
63 : m_fd(fd), m_offset(offset), m_amount(amount),
64 m_verify_checksum(verify_checksum) {}
84 uint8_t encoding_version()
const override;
86 size_t encoded_length_internal()
const override;
88 void encode_internal(uint8_t **bufp)
const override;
90 void decode_internal(uint8_t version,
const uint8_t **bufp,
91 size_t *remainp)
override;
110 #endif // FsBroker_Lib_Request_Parameters_Pread_h
Pread(int32_t fd, uint64_t offset, uint32_t amount, bool verify_checksum)
Constructor.
uint64_t m_offset
File offset.
int32_t get_fd()
Gets file descriptor.
bool m_verify_checksum
Verify checksum flag.
uint64_t get_offset()
Gets file offset.
uint32_t get_amount()
Gets amount of data to read.
bool get_verify_checksum()
Gets verify checksum flag.
Declarations for Serializable.
uint32_t m_amount
Amount of data to read.
Mixin class that provides a standard serialization interface.
Request parameters for pread requests.