rw-exact-ext

Crates.iorw-exact-ext
lib.rsrw-exact-ext
version0.1.7
sourcesrc
created_at2023-10-19 16:28:32.522463
updated_at2023-10-20 11:58:44.493796
descriptionExtension of std::io to read and write data types with exact amounts of bytes.
homepage
repositoryhttps://github.com/conqp/rw-exact-ext
max_upload_size
id1007965
size11,666
Richard Neumann (conqp)

documentation

https://docs.rs/rw-exact-ext/

README

rw-exact-ext

Extension of std::io to read and write data types with exact amounts of bytes.

Usage

This library provides two traits, rw_exact_ext::ReadExactExt and rw_exact_ext::WriteAllExt.

ReadExactExt

This trait provides functions to read byte arrays of a constant size and vectors of a runtime-defined size from a reader that implements std::io::Read.
If the feature num-traits is enabled, it also provides functions to read numbers from such a reader.

WriteAllExt

This trait provides writers that implement std::io::Write with an additional method to write booleans. If the feature num-traits is enabled, it also provides functions to write numbers to such a writer.

Commit count: 18

cargo fmt