vasi / positioned-io

Read and write from offsets in Rust.
MIT License
74 stars 18 forks source link

read_exact_at and write_all_at methods #23

Open nazar-pc opened 1 year ago

nazar-pc commented 1 year ago

Would be nice to introduce such convenience methods so users don't have to deal with partial reads and writes.

There are methods for this in standard library on unix-like platforms: https://doc.rust-lang.org/std/os/unix/fs/trait.FileExt.html#method.read_exact_at