SduReassemblyState Struct Reference

Simu5G: SduReassemblyState Struct Reference
Simu5G
SduReassemblyState Struct Reference

#include <RlcSduSlidingWindowReceptionBuffer.h>

Public Member Functions

std::pair< bool, bool > addSegment (uint32_t start, uint32_t end)
 Adds a new byte interval and merges overlapping or adjacent intervals.
bool hasMissingByteSegmentBeforeLast () const
 Checks if there is a missing byte segment before the last byte of all received segments. This corresponds to the check needed for t-Reassembly stopping/starting logic.

Detailed Description

Manages the reassembly state of a single SDU.

Member Function Documentation

◆ addSegment()

std::pair< bool, bool > addSegment ( uint32_t start,
uint32_t end )
inline

Adds a new byte interval and merges overlapping or adjacent intervals.

Returns
A pair: <bool newlyBytesAdded, bool isNowComplete>

◆ hasMissingByteSegmentBeforeLast()

bool hasMissingByteSegmentBeforeLast ( ) const
inline

Checks if there is a missing byte segment before the last byte of all received segments. This corresponds to the check needed for t-Reassembly stopping/starting logic.