Skip to main content

encode_delta_snapshot

Function encode_delta_snapshot 

Source
pub fn encode_delta_snapshot(
    schema: &Schema,
    tick: SnapshotTick,
    baseline_tick: SnapshotTick,
    baseline: &Snapshot,
    current: &Snapshot,
    limits: &CodecLimits,
    out: &mut [u8],
) -> CodecResult<usize>
Expand description

Encodes a delta snapshot into the provided output buffer.

This is the scan-based path and is kept as a convenience/fallback. For production engines with dirty/change lists, prefer encode_delta_from_changes. Baseline and current snapshots must have entities sorted by EntityId.