Skip to main content

current_offset

Function current_offset 

Source
pub(crate) fn current_offset(
    original_offsets: &[usize],
    current_offsets: &[usize],
    end_offset: usize,
    original: usize,
) -> usize
Expand description

Translates a code boundary from original segment offsets to the segment offsets after resizing.

A boundary is either the start of a segment or the end of the code (end_offset after resizing).