io_ext

Crates.ioio_ext
lib.rsio_ext
version0.2.0
sourcesrc
created_at2021-11-05 20:44:01.966759
updated_at2021-11-13 10:14:38.079411
descriptionRead & Write extensions to deal with primitive types
homepage
repositoryhttps://github.com/sy1ntexx/io_ext
max_upload_size
id477496
size9,146
sy1ntexx (sy1ntexx)

documentation

README

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);
}
Commit count: 0

cargo fmt