Fix the read() and write() path: zero for small reads and support big endian.
1 file changed