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

encode_state_vector_from_update_v2

Function encode_state_vector_from_update_v2 

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.