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 
21  bool operator==(const StatementArgBuffer& other) const;
22 
23 #if FW_SERIALIZABLE_TO_STRING
24  void toString(Fw::StringBase& text) const;
25 #endif
26  private:
27  U8 m_bufferData[FW_STATEMENT_ARG_BUFFER_MAX_SIZE]; // command argument buffer
28 };
29 
30 } // namespace Fw
31 
32 #endif
PlatformSizeType FwSizeType
StatementArgBuffer & operator=(const StatementArgBuffer &other)
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
bool operator==(const StatementArgBuffer &other) const
uint8_t U8
8-bit unsigned integer
Definition: BasicTypes.h:54
Implementation of malloc based allocator.