27 #ifndef FsBroker_Lib_Request_Parameters_Read_h
28 #define FsBroker_Lib_Request_Parameters_Read_h
40 namespace Parameters {
58 Read(int32_t fd, uint32_t amount) : m_fd(fd), 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_Request_Parameters_Read_h
Request parameters for read requests.
uint32_t get_amount()
Gets amount of data to read.
uint32_t m_amount
Amount of data to read.
Read(int32_t fd, uint32_t amount)
Constructor.
Declarations for Serializable.
Mixin class that provides a standard serialization interface.
int32_t get_fd()
Gets file descriptor.