A small and easy crate to mutate or read u8 slices
Reads or writes on any number use the byte order "big-endian"
```rust use simple_bytes::{ Bytes, BytesRead };
let bytes: Vec
asserteq!( 0, slice.readu8() ); asserteq!( 1, slice.readu8() ); asserteq!( 515, slice.readu16() ); ```
```rust use simple_bytes::{ BytesMut, BytesWrite };
let mut bytes = [0u8; 10]; let mut slice = BytesMut::from( bytes.as_mut() );
slice.writeu8( 1 ); slice.writef32( 1.234 ); slice.write( &[1u8, 2u8] ); asserteq!( 3, slice.remaininglen() ); ```
Everything above also works on BytesOwned
Every read, write or seek method may panic if there are not enough bytes remaining except if documented otherwise