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