SduTxState Struct Reference

Simu5G: SduTxState Struct Reference
Simu5G
SduTxState Struct Reference

#include <RlcSduSlidingWindowTransmissionBuffer.h>

Public Member Functions

uint32_t getBytesTransmitted () const
 Calculates how many bytes of this specific SDU have already been transmitted.
uint32_t getNextByteToTx () const
 Finds the next available byte range that has not been transmitted.
void markTransmitted (uint32_t start, uint32_t end)
 Marks a range as transmitted.

Detailed Description

Manages the transmission state of a single SDU.

Member Function Documentation

◆ getBytesTransmitted()

uint32_t getBytesTransmitted ( ) const
inline

Calculates how many bytes of this specific SDU have already been transmitted.

◆ getNextByteToTx()

uint32_t getNextByteToTx ( ) const
inline

Finds the next available byte range that has not been transmitted.

Parameters
grantSizeMaximum bytes allowed by MAC.
outStartOutput: starting byte index.
outEndOutput: ending byte index.
Returns
true if a segment (even partial) was found.

◆ markTransmitted()

void markTransmitted ( uint32_t start,
uint32_t end )
inline

Marks a range as transmitted.