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
pub fn try_cast<T: MinimallyAligned>(
buffer: &[u8],
offset: u32,
) -> Result<&T, CastError>
Try to cast a buffer to a reference