pub fn slice_ranges(number_of_ranges: u32) -> Vec<Range<u32>>
Expand description

Split the total number of slices into ranges by the given number_of_ranges. For example, NUMBER_OF_SLICES is 1024 and given 4 number_of_ranges this method will return ranges (0 to 255), (256 to 511), (512 to 767) and (768 to 1023).