byte_to_chunk_index

Function byte_to_chunk_index 

Source
pub const fn byte_to_chunk_index(byte_offset: u64, chunk_size: u64) -> u64
Expand description

Calculate which chunk contains a given byte offset. Returns the chunk index that contains the specified byte.