mirror of
https://github.com/nasa/fprime.git
synced 2025-12-11 04:35:25 -06:00
* Changed PrmBuffer m_data to m_bufferData for VxWorks * More m_data instances * VxWorks and virtual destructors * Added Vxworks fatal handler compile * Fixed active component schematron * Changed ActiveTextLogger to use Fw::Logger to avoid VxWorks mushing of output * fix(BufferManager): size checking logic and assert cleanup * fix: change U64 to POINTER_CAST Co-authored-by: Kyle Botteon <botteon@jpl.nasa.gov>
42 lines
1.2 KiB
C++
42 lines
1.2 KiB
C++
#include <Fw/Prm/PrmBuffer.hpp>
|
|
#include <Fw/Types/Assert.hpp>
|
|
|
|
namespace Fw {
|
|
|
|
ParamBuffer::ParamBuffer(const U8 *args, NATIVE_UINT_TYPE size) {
|
|
SerializeStatus stat = SerializeBufferBase::setBuff(args,size);
|
|
FW_ASSERT(FW_SERIALIZE_OK == stat,static_cast<NATIVE_INT_TYPE>(stat));
|
|
}
|
|
|
|
ParamBuffer::ParamBuffer() {
|
|
}
|
|
|
|
ParamBuffer::~ParamBuffer() {
|
|
}
|
|
|
|
ParamBuffer::ParamBuffer(const ParamBuffer& other) : Fw::SerializeBufferBase() {
|
|
SerializeStatus stat = SerializeBufferBase::setBuff(other.m_bufferData,other.getBuffLength());
|
|
FW_ASSERT(FW_SERIALIZE_OK == stat,static_cast<NATIVE_INT_TYPE>(stat));
|
|
}
|
|
|
|
const ParamBuffer& ParamBuffer::operator=(const ParamBuffer& other) {
|
|
SerializeStatus stat = SerializeBufferBase::setBuff(other.m_bufferData,other.getBuffLength());
|
|
FW_ASSERT(FW_SERIALIZE_OK == stat,static_cast<NATIVE_INT_TYPE>(stat));
|
|
return *this;
|
|
}
|
|
|
|
NATIVE_UINT_TYPE ParamBuffer::getBuffCapacity(void) const {
|
|
return sizeof(this->m_bufferData);
|
|
}
|
|
|
|
const U8* ParamBuffer::getBuffAddr(void) const {
|
|
return this->m_bufferData;
|
|
}
|
|
|
|
U8* ParamBuffer::getBuffAddr(void) {
|
|
return this->m_bufferData;
|
|
}
|
|
|
|
}
|
|
|