Skip to main content

encode_full_snapshot

Function encode_full_snapshot 

Source
pub fn encode_full_snapshot(
    schema: &Schema,
    tick: SnapshotTick,
    entities: &[EntitySnapshot],
    limits: &CodecLimits,
    out: &mut [u8],
) -> CodecResult<usize>
Expand description

Encodes a full snapshot into the provided output buffer.

Entities must be in deterministic order (ascending EntityId recommended).