1 2 3 4 5 6 7
/// Convert slice to uint. #[macro_export] macro_rules! from_bytes { ($type:ty, $slice:expr) => { <$type>::from_le_bytes($slice.try_into().unwrap()) }; }
1 2 3 4 5 6 7
/// Convert slice to uint. #[macro_export] macro_rules! from_bytes { ($type:ty, $slice:expr) => { <$type>::from_le_bytes($slice.try_into().unwrap()) }; }