F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
StatementArgBuffer.hpp
Go to the documentation of this file.
1 #ifndef FW_STATEMENT_BUFFER_HPP
2 #define FW_STATEMENT_BUFFER_HPP
3 
6 
7 namespace Fw {
8 
10  public:
12 
13  StatementArgBuffer(const U8* args, FwSizeType size);
16  virtual ~StatementArgBuffer();
18 
19  DEPRECATED(Serializable::SizeType getBuffCapacity() const, "Use getCapacity() instead");
20  Serializable::SizeType getCapacity() const; // !< returns capacity, not current size, of buffer
21 
22  U8* getBuffAddr();
23  const U8* getBuffAddr() const;
24  bool operator==(const StatementArgBuffer& other) const;
25 
26 #if FW_SERIALIZABLE_TO_STRING
27  void toString(Fw::StringBase& text) const;
28 #endif
29  private:
30  U8 m_bufferData[FW_STATEMENT_ARG_BUFFER_MAX_SIZE]; // command argument buffer
31 };
32 
33 } // namespace Fw
34 
35 #endif
PlatformSizeType FwSizeType
StatementArgBuffer & operator=(const StatementArgBuffer &other)
U8 * getBuffAddr()
Get buffer address for data filling (non-const version)
DEPRECATED(Serializable::SizeType getBuffCapacity() const, "Use getCapacity() instead")
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...
FwSizeType SizeType
Serializable::SizeType getCapacity() const
Get buffer capacity.
bool operator==(const StatementArgBuffer &other) const
uint8_t U8
8-bit unsigned integer
Definition: BasicTypes.h:54
Implementation of malloc based allocator.