pub const unsafe fn deserialize_const_raw<const N: usize, T: SerializeConst>(
from: &[u8],
) -> Option<(&[u8], T)>Expand description
Deserialize a buffer into a type. This will return None if the buffer doesn’t have enough data to fill the type.
§Safety
N must be std::mem::size_of::<T>()