A small and easy crate to mutate or read u8 slices
Reads or writes on any number use the byte order "big-endian"
Read a slice
use ;
let bytes: = .collect;
let mut slice: Bytes = bytes.as_slice.into;
assert_eq!;
assert_eq!;
assert_eq!;
Write to a slice
use ;
let mut bytes = ;
let mut slice = from;
slice.write_u8;
slice.write_f32;
slice.write;
assert_eq!;
BytesOwned
Everything above also works on BytesOwned
Panics
Every read, write or seek method may panic if there are not enough bytes remaining except if documented otherwise