Skip to main content

deserialize

Function deserialize 

Source
pub unsafe fn deserialize<T>(bytes: &[u8]) -> &T::Archived
where T: Archive,
Expand description

Deserialize a single value from RKYV format

ยงSafety

The byte slice must contain a valid archived representation of T produced by a trusted RKYV serializer. The returned reference is tied to bytes, so callers must keep the byte slice alive and immutable for the full lifetime of the archived value.