The encoding consists of the integer value divided by the multiplier, minus the ceil of minimum divided by the multiplier, encoded as a Base-128 64-bit Little Endian variable-length unsigned integer.
More...
Public Attributes | |
| std::int64_t | minimum |
| The inclusive minimum value. | |
| std::uint64_t | multiplier |
| The multiplier value. | |
The encoding consists of the integer value divided by the multiplier, minus the ceil of minimum divided by the multiplier, encoded as a Base-128 64-bit Little Endian variable-length unsigned integer.
| Option | Type | Description |
|---|---|---|
minimum | int | The inclusive minimum value |
multiplier | uint | The multiplier value |
| Condition | Description |
|---|---|
value >= minimum | The input value must be greater than or equal to the minimum |
value % multiplier == 0 | The input value must be divisible by the multiplier |
Given the input value 1000, where the minimum is -2 and the multiplier is 4, the encoding results in the Base-128 64-bit Little Endian variable-length unsigned integer 250: