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