class SerialNumber

Defined at line 46 of file ../../third_party/openthread/src/core/common/serial_number.hpp

Public Methods

template <typename UintType>
bool IsLess (UintType aFirst, UintType aSecond)

Indicates whether or not a first serial number is strictly less than a second serial number.

The comparison takes into account the wrapping of serial number values (similar to RFC-1982). It is semantically

equivalent to `aFirst

<

aSecond`.

Parameters

aFirst [in] The first serial number.
aSecond [in] The second serial number.

Template Parameters

UintType The unsigned integer type.

Defined at line 63 of file ../../third_party/openthread/src/core/common/serial_number.hpp

template <typename UintType>
bool IsGreater (UintType aFirst, UintType aSecond)

Indicates whether or not a first serial number is strictly greater than a second serial

number.

The comparison takes into account the wrapping of serial number values (similar to RFC-1982). It is semantically

equivalent to `aFirst > aSecond`.

Parameters

aFirst [in] The first serial number.
aSecond [in] The second serial number.

Template Parameters

UintType The unsigned integer type.

Defined at line 88 of file ../../third_party/openthread/src/core/common/serial_number.hpp