Fix working with `ByteBuffer` in `readChannel`.

Add missing `flip()` and the corresponding documentation.