Moves write to write_all and read to read_exact to make clippy happy.
write
write_all
read
read_exact