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

```rust use simple_bytes::{ Bytes, BytesRead };

let bytes: Vec = (0..255).collect(); let mut slice: Bytes = bytes.as_slice().into();

asserteq!( 0, slice.readu8() ); asserteq!( 1, slice.readu8() ); asserteq!( 515, slice.readu16() ); ```

Write to a slice

```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() ); ```

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