F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
DataBuffer.cpp
Go to the documentation of this file.
2 #include <Fw/Types/Assert.hpp>
3 
4 namespace Drv {
5 
6 DataBuffer::DataBuffer(const U8* args, FwSizeType size) {
8  FW_ASSERT(Fw::FW_SERIALIZE_OK == stat, static_cast<FwAssertArgType>(stat));
9 }
10 
12 
14 
15 DataBuffer::DataBuffer(const DataBuffer& other) : Fw::SerializeBufferBase() {
17  FW_ASSERT(Fw::FW_SERIALIZE_OK == stat, static_cast<FwAssertArgType>(stat));
18 }
19 
21  if (this == &other) {
22  return *this;
23  }
24 
26  FW_ASSERT(Fw::FW_SERIALIZE_OK == stat, static_cast<FwAssertArgType>(stat));
27  return *this;
28 }
29 
31  return sizeof(this->m_data);
32 }
33 
34 const U8* DataBuffer::getBuffAddr() const {
35  return this->m_data;
36 }
37 
39  return this->m_data;
40 }
41 
42 } // namespace Drv
Serialization/Deserialization operation was successful.
PlatformSizeType FwSizeType
DataBuffer & operator=(const DataBuffer &other)
Definition: DataBuffer.cpp:20
SerializeStatus
forward declaration for string
Serializable::SizeType getBuffLength() const
returns current buffer size
U8 * getBuffAddr()
gets buffer address for data filling
Definition: DataBuffer.cpp:38
virtual ~DataBuffer()
Definition: DataBuffer.cpp:13
uint8_t U8
8-bit unsigned integer
Definition: BasicTypes.h:53
SerializeStatus setBuff(const U8 *src, Serializable::SizeType length)
sets buffer contents and size
#define FW_ASSERT(...)
Definition: Assert.hpp:14
FwSizeType getBuffCapacity() const
returns capacity, not current size, of buffer
Definition: DataBuffer.cpp:30