Tr : System.arraycopy(...) equivalents for ByteBuffer/FileChannel
Jeff Hain
jeffhain at rocketmail.com
Wed Oct 10 14:27:55 PDT 2012
>For example, if wanting to copy bytes from a concurrently-read
>DirectByteBuffer (can't touch its position), to another ByteBuffer,
>one can only do a byte-loop (unless using disk as temp).
Just thought about using ByteBuffer.duplicate()
to avoid trouble with concurrent usage of position(),
but the general point still remains if FileChannel is involved,
and to avoid the boilerplate I'm doing.
-Jeff
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/nio-dev/attachments/20121010/c68d3b85/attachment.html
More information about the nio-dev
mailing list