Skip to main content

from_offset_len

Function from_offset_len 

Source
pub const fn from_offset_len(offset: u64, len: u64) -> Option<Range<u64>>
Expand description

Constructs a half-open Range<u64> from (offset, len).

Returns None if offset + len overflows u64.