⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

compute_delta

Function compute_delta 

Source
pub fn compute_delta(old: &[u8], new: &[u8]) -> BinaryDelta
Expand description

Compute a binary delta between old and new data.

Uses a fixed 256-byte block matching algorithm:

  1. Hash all blocks in old with FNV-1a
  2. Slide through new, checking for matching blocks
  3. Matching regions become Copy ops, non-matching become Insert ops