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  FwSizeType getCapacity() const;
21 
22  U8* getBuffAddr();
23  const U8* getBuffAddr() const;
24 
25  private:
26  U8 m_data[DATA_BUFFER_SIZE]; // packet data buffer
27 };
28 } // namespace Drv
29 
30 #endif
PlatformSizeType FwSizeType
FwSizeType getCapacity() const
Get buffer capacity.
Definition: DataBuffer.cpp:30
DataBuffer & operator=(const DataBuffer &other)
Definition: DataBuffer.cpp:20
U8 * getBuffAddr()
Get buffer address for data filling (non-const version)
Definition: DataBuffer.cpp:42
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:53