Skip to main content

root_as_threading_snapshot_unchecked

Function root_as_threading_snapshot_unchecked 

Source
pub unsafe fn root_as_threading_snapshot_unchecked(
    buf: &[u8],
) -> ThreadingSnapshot<'_>
Expand description

Assumes, without verification, that a buffer of bytes contains a ThreadingSnapshot and returns it.

ยงSafety

Callers must trust the given bytes do indeed contain a valid ThreadingSnapshot.