F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
DataBuffer.hpp
Go to the documentation of this file.
1 #ifndef _DrvDataBuffer_hpp_
2 #define _DrvDataBuffer_hpp_
3 
6 
7 namespace Drv {
8 
10  public:
12 
13  DataBuffer(const U8* args, FwSizeType size);
14  DataBuffer();
15  DataBuffer(const DataBuffer& other);
16  virtual ~DataBuffer();
17  DataBuffer& operator=(const DataBuffer& other);
18 
19  DEPRECATED(FwSizeType getBuffCapacity() const, "Use getCapacity() instead");
20 
21  private:
22  U8 m_data[DATA_BUFFER_SIZE]; // packet data buffer
23 };
24 } // namespace Drv
25 
26 #endif
PlatformSizeType FwSizeType
DataBuffer & operator=(const DataBuffer &other)
Definition: DataBuffer.cpp:22
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...
virtual ~DataBuffer()
Definition: DataBuffer.cpp:13
DEPRECATED(FwSizeType getBuffCapacity() const, "Use getCapacity() instead")
uint8_t U8
8-bit unsigned integer
Definition: BasicTypes.h:54