root_as_request_unchecked

Function root_as_request_unchecked 

Source
pub unsafe fn root_as_request_unchecked(buf: &[u8]) -> Request<'_>
Expand description

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

ยงSafety

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