Development Documentation (main branch) - For stable release docs, see docs.rs/eidetica

encode_state_vector_from_update_v1

Function encode_state_vector_from_update_v1 

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.