Skip to main content

pd_context_slice

Function pd_context_slice 

Source
#[unsafe(no_mangle)]
pub extern "C" fn pd_context_slice( snap_ptr: *const u8, snap_len: u32, params_ptr: *const u8, params_len: u32, ) -> u64
Expand description

Unchanged lines shared by a file’s two endpoint snapshots — the page’s expand-context data. snapshots is a RangeSnapshots JSON; params is {"old_path": "...", "new_path": "...", "old_start": N, "new_start": N, "count": N} (1-based starts; paths differ for renames). Ok carries a Line array of Ctx entries, clamped at either file’s end; a region that is not identical at both endpoints is rejected.