io_ext 0.2.0

Read & Write extensions to deal with primitive types
Documentation
  • Coverage
  • 2.36%
    3 out of 127 items documented2 out of 2 items with examples
  • Size
  • Source code size: 9.04 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.27 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • sy1ntexx

io_ext

Extensions for Read & Write traits from standard library to make work with primitive types easier.

Usage

fn main() {
    use io_ext::ReadExt;

    let data = b"\x00\x02\x03\x00";
    let mut slice = &data[..];
    assert_eq!(slice.read_u16_be(), 2);
    assert_eq!(slice.read_u16_le(), 3);
}