pub fn serialize_delta(delta: &BinaryDelta) -> Vec<u8>Expand description
Serialize a BinaryDelta to bytes for storage/transmission.
Format:
source_hash: [u8; 32]
target_hash: [u8; 32]
op_count: u32 (little-endian)
for each op:
tag: u8 (0 = Copy, 1 = Insert)
Copy: offset: u32 LE, len: u32 LE
Insert: len: u32 LE, data: [u8; len]