Function assembly_core::buffer::try_cast

source ·
pub fn try_cast<T: MinimallyAligned>(
    buffer: &[u8],
    offset: u32
) -> Result<&T, CastError>
Expand description

Try to cast a buffer to a reference