|
EmbeddedProto
2.0.0
EmbeddedProto is a C++ Protocol Buffer implementation specifically suitable for microcontrollers.
|
Go to the documentation of this file.
31 #ifndef _WRITE_BUFFER_INTERFACE_H_
32 #define _WRITE_BUFFER_INTERFACE_H_
54 virtual void clear() = 0;
57 virtual uint32_t
get_size()
const = 0;
70 virtual bool push(
const uint8_t
byte) = 0;
79 virtual bool push(
const uint8_t* bytes,
const uint32_t length) = 0;
85 #endif // End of _WRITE_BUFFER_INTERFACE_H_
virtual uint32_t get_max_size() const =0
Obtain the total number of bytes which can at most be stored in the buffer.
virtual uint32_t get_size() const =0
Obtain the total number of bytes currently stored in the buffer.
WriteBufferInterface()=default
virtual ~WriteBufferInterface()=default
virtual bool push(const uint8_t byte)=0
Push a single byte into the buffer.
The pure virtual definition of a message buffer used for writing .
Definition: WriteBufferInterface.h:46
virtual uint32_t get_available_size() const =0
Obtain the total number of bytes still available in the buffer.
virtual void clear()=0
Delete all data in the buffer.