History log of /libcore/luni/src/main/java/java/nio/IoVec.java
Revision Date Author Comments
e3b6fa2bf357f2712ab2ee9e8487f157595ea0c7 10-Jun-2011 Elliott Hughes <enh@google.com> Expose pread and pwrite.

And fix FileChannel to use them.

Bug: 4183719
Bug: 3107501
Change-Id: I51114a16522b93bf959b5953bec658e6889054c6
f1a10948c7e4caf5a6d9d53b4b3ad99580fc1cea 25-May-2011 Elliott Hughes <enh@google.com> Fix a couple of FileChannel bugs.

FileChannel.read's non-readv(2) overload shares java.io's weird
non-Unix "-1 at EOF" behavior. The readv(2) overloads already had
that, but they had a bug where they'd claim to have copied more
into a buffer than they actually had.

No new tests because these were found by existing Harmony unit tests.

Change-Id: Ia267e5834fd360d71becdd7d1bdd838d03ea6532
6fe7b33322a6a7d1e5cc0061335e120aa15c4e40 17-May-2011 Elliott Hughes <enh@google.com> Fix a comment typo.

Change-Id: I3d401b7e943897847b1abd4029458e4537bd3533
bbac92e691de7d570928ddfba639067978e55b06 29-Mar-2011 Elliott Hughes <enh@google.com> Add readv(2)/writev(2).

The old implementation would cheat if it was given non-direct buffers, copying
them into newly-allocated direct buffers. (The network Channel implementations
are worse: they copy all the data into a single buffer, and then read/write
that. I'll get to them eventually.)

Bug: 3107501
Change-Id: I1655bacb042e7ebcde7e5bc5cf2c71e7ce5e30af