summaryrefslogtreecommitdiffstats
path: root/src/java/com/jogamp/common/nio/PointerBufferSE.java
Commit message (Collapse)AuthorAgeFilesLines
* NativeBuffer/PointerBuffer API/Impl Change (remove explicit backup array, ↵Sven Gothel2011-04-271-84/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | alloc referenced data map if used only) This patch doesn't impact GlueGen's code generation, but enhance and fix PointerBuffer usage only. remove explicit backup array As suggested by Michael Bien with a proposed patch, PointerBuffer's backup array is not only redundant in case it's not used, but also erroneous - due to possible sliced buffers. Removes the explicit backup array implementation leaving it up to the user, ie how PointerBuffer is created (alloc/allocDirect) and use the underlying nio's buffer backup array, if available. This also fixes the (never tested) case of indirect w/ backup array usage on 32bit platform size. In this case the array shall be of type int[], holding 32bit pointer - on 64bit long[]. Previous to this patch, it was always long[]. Added more thorough tests of PointerBuffer, notably indirect w/ backup array and native deep copy and filling of a pointer array. alloc referenced data map if used only As suggested by Michael Bien with a proposed patch, the allocation of the dataMap hash map is redundant in case it's not used. The hash map will be initialized lazy, if needed only.
* Fix: Buffers back to non final ; Added missing JogAmp (c)Sven Gothel2011-02-131-0/+1
|
* - removed CDC impl for com.jogamp.common.nioMichael Bien2011-02-091-1/+1
| | | | - generified class hierarchy (casts no longer needed in client code) - @Override where needed and other minor changes
* Fix 32bit masking / testsSven Gothel2010-04-011-1/+1
|
* Merged with latest of mbienSven Gothel2010-03-311-12/+2
|
* introduced com.jogamp.common.{nio,os} packages and moved some classes.Michael Bien2010-03-311-0/+93