Skip to main content

getRangeSizeForNonZeroBeginningInterval

Git Source

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

NameTypeDescription
startuint256The start of the interval of the range's coverage (inclusive).
enduint256The end of the interval of the range's coverage (exclusive).

Returns

NameTypeDescription
<none>uint256size The size of the compact range needed to express the interval [start, end).