Function rkyv::validation::check_archived_root[][src]

pub fn check_archived_root<T: Archive>(
    buf: &[u8]
) -> Result<&T::Archived, CheckTypeError<T::Archived, DefaultArchiveValidator>> where
    T::Archived: CheckBytes<DefaultArchiveValidator>, 

Checks the given archive at the given position for an archived version of the given type.

This is a safe alternative to archived_value for types that implement CheckBytes.

See check_archived_value for more details.