Skip to main content

pd_range_diff

Function pd_range_diff 

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

Diff a contiguous commit sub-range from the page’s embedded snapshots. snapshots is a RangeSnapshots JSON; params is {"from": <boundary index>, "to": <boundary index>, "context": N} with from < to (commit k alone is from = k - 1, to = k). Ok carries the FileDiff array — the same shape the build-time parser emits.