pub fn encode_delta(
commands: &[PlacedCommand],
inplace: bool,
version_size: usize,
src_crc: &[u8; 8],
dst_crc: &[u8; 8],
) -> Result<Vec<u8>, DeltaError>Expand description
Encode placed commands to the DLT\x03 binary delta format.
DLT\x03 header: magic(4) + flags(1) + version_size(u32 BE) + crcs(16) = 25 bytes. Commands: END(0), COPY(1, u32×3), ADD(2, u32×2 + data). All offsets must fit in u32; returns Err if any exceed 4 GiB.