pub const unsafe fn deserialize_const_raw<const N: usize, T: SerializeConst>(
from: ConstReadBuffer<'_>,
) -> Option<(ConstReadBuffer<'_>, 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>()