24 m_allocation_failure_response(
BufferRepeater::NUM_BUFFER_REPEATER_FAILURE_OPTIONS) {}
29 this->m_allocation_failure_response = allocation_failure_response;
32 bool BufferRepeater ::check_allocation(
FwIndexType index,
36 bool is_valid = (new_allocation.
getData() !=
nullptr) && (new_allocation.
getSize() >= incoming_buffer.
getSize());
40 switch (this->m_allocation_failure_response) {
69 if (this->check_allocation(i, new_allocation, buffer)) {
PlatformIntType NATIVE_INT_TYPE
PlatformIndexType FwIndexType
C++-compatible configuration header for fprime configuration.
Auto-generated base for BufferRepeater component.
void log_WARNING_HI_AllocationSoftFailure(I32 port, U32 size)
Fw::Buffer allocate_out(FwIndexType portNum, U32 size)
Invoke output port allocate.
bool isConnected_portOut_OutputPort(FwIndexType portNum)
void log_FATAL_AllocationHardFailure(I32 port, U32 size)
@ NUM_PORTOUT_OUTPUT_PORTS
void deallocate_out(FwIndexType portNum, Fw::Buffer &fwBuffer)
Invoke output port deallocate.
void portOut_out(FwIndexType portNum, Fw::Buffer &fwBuffer)
Invoke output port portOut.
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)