pub fn deserialize_limited_partial<T: Decodable>(
data: &[u8],
max_len: usize,
) -> Result<(T, usize), Error>Expand description
Deserialize a variable-length object from a vector, enforce a maximum size limit, but do not error if the entire vector is not consumed.
Expects objects with VarInt length encoding.