27 #ifndef FsBroker_Lib_Response_Parameters_Read_h
28 #define FsBroker_Lib_Response_Parameters_Read_h
40 namespace Parameters {
58 Read(uint64_t offset, uint32_t amount) : m_offset(offset), m_amount(amount) {}
70 uint8_t encoding_version()
const override;
72 size_t encoded_length_internal()
const override;
74 void encode_internal(uint8_t **bufp)
const override;
76 void decode_internal(uint8_t version,
const uint8_t **bufp,
77 size_t *remainp)
override;
91 #endif // FsBroker_Lib_Response_Parameters_Read_h
Response parameters for read requests.
uint64_t get_offset()
Gets read data offset.
Read(uint64_t offset, uint32_t amount)
Constructor.
uint32_t m_amount
Amount of data read.
uint32_t get_amount()
Gets amount of data read.
Declarations for Serializable.
Mixin class that provides a standard serialization interface.