7 #ifndef FW_LINEAR_BUFFER_TEMPLATE_HPP 8 #define FW_LINEAR_BUFFER_TEMPLATE_HPP 23 template <FwSizeType MaxSize>
62 U8 m_bufferData[MaxSize] = {};
Serialization/Deserialization operation was successful.
PlatformSizeType FwSizeType
Serializable::SizeType getSize() const override
Get current buffer size.
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...
SerializeStatus setBuff(const U8 *src, Serializable::SizeType length) override
Set buffer contents from external source.
LinearBufferTemplate(const U8 *args, FwSizeType size)
uint8_t U8
8-bit unsigned integer
const U8 * getBuffAddr() const override
Get buffer address for data reading (const version)
LinearBufferTemplate(const LinearBufferTemplate &other)
size when serialized: buffer + stored size
LinearBufferTemplate()=default
U8 * getBuffAddr() override
Get buffer address for data filling (non-const version)
FwSizeType getCapacity() const override
Get buffer capacity.
Implementation of malloc based allocator.
~LinearBufferTemplate() override=default
DEPRECATED(FwSizeType getBuffCapacity() const, "Use getCapacity() instead")
LinearBufferTemplate & operator=(const LinearBufferTemplate &other)