ec_retry_state_next

March 26, 2020 Contributors

Name

ec_retry_state_next — Return next offset associated with a retry state distribution, bounded to ceiling

Synopsis

#include "message/ec_retry_state.h"

| unsigned int **ec_retry_state_next** ( | state, |   |
|   | ceiling); |   |

ec_retry_state_t * <var class="pdparam">state</var>;
unsigned int <var class="pdparam">ceiling</var>;

Description

Note

This reference page was automatically generated from functions found in the header files in the development branch. The function described here may not exist in generally available versions of Momentum, and may change in behavior when it is generally available. Consult your vendor for definitive advice on the use of this function.

Return next offset associated with a retry state distribution, bounded to ceiling.

Parameters

state

the retry state to retrieve the offset from

ceiling

the value which the offset is less than

Return Values

Returns an unsigned integer between 0 and up to ceiling – 1.