7 #ifndef FW_LINEAR_BUFFER_TEMPLATE_HPP 8 #define FW_LINEAR_BUFFER_TEMPLATE_HPP 23 template <FwSizeType MaxSize>
58 U8 m_bufferData[MaxSize];
Serialization/Deserialization operation was successful.
SerializeStatus setBuff(const U8 *src, Serializable::SizeType length) override
Set buffer contents from external source.
PlatformSizeType FwSizeType
Serializable::SizeType getSize() const override
Get current buffer size.
Serializable::SizeType getCapacity() const override
Get buffer capacity.
SerializeStatus
forward declaration for string
static constexpr Serializable::SizeType STATIC_SERIALIZED_SIZE(Serializable::SizeType maxSize)
Get the static serialized size of a buffer This is the max size of the buffer data plus the size of t...
LinearBufferTemplate(const U8 *args, FwSizeType size)
uint8_t U8
8-bit unsigned integer
LinearBufferTemplate(const LinearBufferTemplate &other)
size when serialized: buffer + stored size
Implementation of malloc based allocator.
~LinearBufferTemplate() override=default
DEPRECATED(FwSizeType getBuffCapacity() const, "Use getCapacity() instead")
LinearBufferTemplate & operator=(const LinearBufferTemplate &other)