24 m_allocation_failure_response(
BufferRepeater::NUM_BUFFER_REPEATER_FAILURE_OPTIONS) {}
33 this->m_allocation_failure_response = allocation_failure_response;
36 bool BufferRepeater ::check_allocation(
FwIndexType index,
40 bool is_valid = (new_allocation.
getData() !=
nullptr) && (new_allocation.
getSize() >= incoming_buffer.
getSize());
44 switch (this->m_allocation_failure_response) {
73 if (this->check_allocation(i, new_allocation, buffer)) {
PlatformIntType NATIVE_INT_TYPE
PlatformIndexType FwIndexType
C++-compatible configuration header for fprime configuration.
void init()
Object initializer.
Auto-generated base for BufferRepeater component.
void log_WARNING_HI_AllocationSoftFailure(I32 port, U32 size)
@ NUM_PORTOUT_OUTPUT_PORTS
Fw::Buffer allocate_out(NATIVE_INT_TYPE portNum, U32 size)
Invoke output port allocate.
void log_FATAL_AllocationHardFailure(I32 port, U32 size)
bool isConnected_portOut_OutputPort(NATIVE_INT_TYPE portNum)
void portOut_out(NATIVE_INT_TYPE portNum, Fw::Buffer &fwBuffer)
Invoke output port portOut.
void deallocate_out(NATIVE_INT_TYPE portNum, Fw::Buffer &fwBuffer)
Invoke output port deallocate.
BufferRepeaterFailureOption
@ NO_RESPONSE_ON_OUT_OF_MEMORY
@ WARNING_ON_OUT_OF_MEMORY
@ NUM_BUFFER_REPEATER_FAILURE_OPTIONS
void configure(BufferRepeaterFailureOption allocation_failure_response)
BufferRepeater(const char *const compName)