summaryrefslogtreecommitdiffstats
path: root/include/ScopedBytes.h
Commit message (Collapse)AuthorAgeFilesLines
* Fix ByteBuffer.put(ByteBuffer).Elliott Hughes2011-04-251-0/+80
To do this tastefully required some cunning in the native code. The new ScopedBytesRO/ScopedBytesRW classes let us paper over the differences between byte[] and DirectByteBuffer, which in turn lets us paper over the differences between the various kinds of ByteBuffer. I've also rewritten Posix.read/Posix.readDirectBuffer and Posix.write/Posix.writeDirectBuffer to use the same idea. I haven't rewritten readv and writev, but can do and probably should. Bug: http://code.google.com/p/android/issues/detail?id=16184 Change-Id: Ia30d2f2fe1b1716a8f068187df2218b407a55aae