27 "NUM_BUFFERALLOCATE_INPUT_PORTS must fit in the positive range of FwIndexType");
29 m_allocated[i] =
false;
39 void StaticMemoryComponentImpl ::bufferDeallocate_handler(
const FwIndexType portNum,
Fw::Buffer& fwBuffer) {
41 FW_ASSERT(m_allocated[portNum], static_cast<FwAssertArgType>(portNum));
45 (fwBuffer.
getData() + fwBuffer.
getSize()) <= (m_static_memory[portNum] +
sizeof(m_static_memory[0])),
46 static_cast<FwAssertArgType>(fwBuffer.
getSize()),
47 static_cast<FwAssertArgType>(
sizeof(m_static_memory[0])));
48 m_allocated[portNum] =
false;
53 FW_ASSERT(size <=
sizeof(m_static_memory[portNum]));
54 FW_ASSERT(not m_allocated[portNum], static_cast<FwAssertArgType>(portNum));
55 m_allocated[portNum] =
true;
56 Fw::Buffer buffer(m_static_memory[portNum],
sizeof(m_static_memory[0]));
~StaticMemoryComponentImpl()
PlatformIndexType FwIndexType
#define FW_NUM_ARRAY_ELEMENTS(a)
number of elements in an array
RateGroupDivider component implementation.
Auto-generated base for StaticMemory component.
StaticMemoryComponentImpl(const char *const compName)
U32 SizeType
The size type for a buffer.