Function yrs::merge_updates_v1

source ·
pub fn merge_updates_v1(updates: &[&[u8]]) -> Result<Vec<u8>, Error>
Expand description

Merges a sequence of updates (encoded using lib0 v1 encoding) together, producing another update (also lib0 v1 encoded) in the result. Returned binary is a combination of all input updates, compressed.

Returns an error whenever any of the input updates couldn’t be decoded.