| Crates.io | rw-exact-ext |
| lib.rs | rw-exact-ext |
| version | 0.1.10 |
| created_at | 2023-10-19 16:28:32.522463+00 |
| updated_at | 2024-08-29 17:02:17.089309+00 |
| description | Extension of std::io to read and write data types with exact amounts of bytes. |
| homepage | |
| repository | https://github.com/conqp/rw-exact-ext |
| max_upload_size | |
| id | 1007965 |
| size | 13,047 |
Extension of std::io to read and write data types with exact amounts of bytes.
This library provides two traits, rw_exact_ext::ReadExactExt and rw_exact_ext::WriteAllExt.
ReadExactExtThis 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.
WriteAllExtThis 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.