Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Java
Native memory backed BufferedImage with NIO
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Gordon Beaton, post: 587828"] Since ByteBuffer (which allocateDirect() refers to) is abstract, I guess the existence of a backing array depends on the particular subclass implementation. The ByteBuffer created by NewDirectByteBuffer() is backed by the array that you provide. If you provide one, it will have one. I think this much is clear. But note too that ByteBuffer.hasArray() returns false if the backing array is read-only. That could be the case if you create a MappedByteBuffer from a read-only file, or if the pointer you pass to NewDirectByteBuffer() refers to read-only memory. [...] Except for the read-only comment above, I'm not really sure. /gordon [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Java
Native memory backed BufferedImage with NIO
Top