getRangeSizeForNonZeroBeginningInterval
Returns the expected size of a compact range needed to express a non-zero-starting interval.
function getRangeSizeForNonZeroBeginningInterval(uint256 start, uint256 end) pure returns (uint256);
Parameters
| Name | Type | Description |
|---|---|---|
start | uint256 | The start of the interval of the range's coverage (inclusive). |
end | uint256 | The end of the interval of the range's coverage (exclusive). |
Returns
| Name | Type | Description |
|---|---|---|
<none> | uint256 | size The size of the compact range needed to express the interval [start, end). |