Skip to main content

crdt_merge_wire

Function crdt_merge_wire 

Source
pub fn crdt_merge_wire(local: RuntimeValue, bytes: &[u8]) -> RuntimeValue
Expand description

Merge a wire-encoded CRDT value (from crdt_to_wire) into local, field by field through crdt_merge_field — counters add, sets union, registers take the latest. A struct merges each named field; a bare value the unnamed field. Malformed bytes leave local unchanged.