Skip to main content

deserialize_batch

Function deserialize_batch 

Source
pub unsafe fn deserialize_batch<T>(
    batches: &[impl AsRef<[u8]>],
) -> Vec<&T::Archived>
where T: Archive,
Expand description

Deserialize multiple values from RKYV format (batch)

ยงSafety

Every byte slice must contain a valid archived representation of T produced by a trusted RKYV serializer. Returned references are tied to the corresponding input slices, so callers must keep every slice alive and immutable while the returned archived values are used.