Function yrs::encode_state_vector_from_update_v2
source · pub fn encode_state_vector_from_update_v2(
update: &[u8]
) -> Result<Vec<u8>, Error>
Expand description
Decodes a input update
(encoded using lib0 v2 encoding) and returns an encoded StateVector
of that update.
Returns an error whenever any of the input update couldn’t be decoded.