Function yrs::merge_updates_v2
source · pub fn merge_updates_v2(updates: &[&[u8]]) -> Result<Vec<u8>, Error>
Expand description
Merges a sequence of updates (encoded using lib0 v2 encoding) together, producing another
update (also lib0 v2 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.