Skip to main content

split_runs_at

Function split_runs_at 

Source
pub fn split_runs_at(
    runs: &[FormatRun],
    byte_offset: u32,
) -> (Vec<FormatRun>, Vec<FormatRun>)
Expand description

Split a block’s format runs at byte_offset. The returned right-hand vector has its run offsets re-based so they start at byte 0 of the new (right) block. Straddling runs are split with their format cloned to both halves.