Function rkyv::archived_unsized_value [−][src]
pub unsafe fn archived_unsized_value<T: ArchiveUnsized + ?Sized>(
bytes: &[u8],
pos: usize
) -> &T::Archived
Casts a RelPtr
to the given unsized type from the given byte array at
the given position and returns the value it points to.
This helps avoid situations where lifetimes get inappropriately assigned and allow buffer mutation after getting archived value references.
Safety
This is only safe to call if the reference is archived at the given position in the byte array.