Skip to main content

seek_in_current_chunk

Function seek_in_current_chunk 

Source
fn seek_in_current_chunk(
    cur_blob_pos: u64,
    new_blob_pos: u64,
    current_chunk: &mut Cursor<impl AsRef<[u8]>>,
) -> Result<bool>
Expand description

Seeks the cursor to the new blob position if contained in the chunk.

Returns true if the new position is contained in the current chunk. It is permissible to seek to the end of the chunk, (with no more bytes remaining)