eio

Read and write numbers in big-endian and little-endian.

Getting started

Add the following to your Cargo manifest. toml [dependencies] eio = "0.1"

🤸 Usage

```rust use std::io; use eio::*;

fn main() -> io::Result<()> { let mut data = io::Cursor::new([0x37, 0x13, 0x12, 0x34]);

assert_eq!(data.read_le::<u16>()?, 0x1337);
assert_eq!(data.read_be::<u16>()?, 0x1234);

Ok(())

} ```

License

Licensed under either of

at your option.