summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Merged JOGL's general purpose static methods of StreamUtil and FileUtil into ↵Sven Gothel2011-06-071-6/+95
| | | | IOUtil
* PointerBuffer: Add duplicate() method (as req by JOCL)Sven Gothel2011-05-011-0/+19
|
* NativeBuffer/PointerBuffer API/Impl Change (remove explicit backup array, ↵Sven Gothel2011-04-2711-349/+456
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* refactoring in common.nio public api - removed Int64BufferMichael Bien2011-04-267-210/+46
| | | | | | - removed Int64Buffer since it is no longer needed for LongBuffer emulation Signed-off-by: Sven Gothel <[email protected]>
* RecursiveLock: Expose waiting thread queue sizeSven Gothel2011-04-261-0/+6
|
* Add IOUtil - generic URL to File and stream to stream copySven Gothel2011-04-011-0/+84
|
* VersionNumber: Add cstr with version number string and delimeterSven Gothel2011-03-211-0/+29
|
* Primitive HashMap: Add deep clone(); Fix containsValue() in case of Object ↵Sven Gothel2011-03-193-11/+440
| | | | values (using equals(Object)); Adding junit tests for clone(), capacity and IntObjectHashMap
* ReflectionUtil: split up createInstance() / use var-args where possible w/o ↵Sven Gothel2011-03-191-7/+16
| | | | change
* DoubleCheckLocking: Added 'ok' comment - volatile varSven Gothel2011-02-263-3/+3
|
* RecursiveLock: static field -> final; NativeLibrary: cleanupSven Gothel2011-02-262-7/+6
|
* fix TestRecursiveLock01's LockedObjectAction1 syncSven Gothel2011-02-261-8/+5
|
* Merge remote-tracking branch 'remotes/mbien/master'Sven Gothel2011-02-267-29/+30
|\
| * small cleanup in uitl packageMichael Bien2011-02-267-29/+30
| | | | | | | | | | | | - StringBuffer -> StringBuilder - ReflectionUtil.getBaseName -> class.getSimpleName() - cleanup imports, generics and @Override for all touched classes
* | cleanup importsSven Gothel2011-02-262-7/+2
|/
* Fix commentSven Gothel2011-02-221-2/+2
|
* - Buffers.slice() should maintain byteorder when sliceing ByteBuffersMichael Bien2011-02-221-31/+9
| | | - simplified isDirect() and getArray()
* - ensure slice uses the buffers original byteorder.Michael Bien2011-02-222-2/+4
| | | - create new buffers only if size > capacity not if >= capacity
* Merge remote branch 'mbien/master'Sven Gothel2011-02-142-0/+584
|\
| * added CachedBufferFactory + test.Michael Bien2011-02-132-0/+584
| | | | | | factory supports dynamic and static allocation schemes and has a synchronized and a unsynchronized implementation.
* | Fix: Buffers cstr back to protectedSven Gothel2011-02-131-1/+1
| |
* | Fix: Buffers back to non final ; Added missing JogAmp (c)Sven Gothel2011-02-134-1/+5
| |
* | Merge remote branch 'mbien/master'Sven Gothel2011-02-134-53/+86
|\|
| * improved BuffersTest.slice().Michael Bien2011-02-131-1/+32
| |
| * moved struct and buffer test to its nio friends, cleaned up importsMichael Bien2011-02-132-15/+8
| |
| * - generified com.jogamp.common.nio.Buffers.Michael Bien2011-02-131-37/+46
| | | | | | | | - class is now final (change it back on demand) - added concurrency warning to slice() method doc
* | Fix: Remove unused argument ClassLoaderSven Gothel2011-02-131-3/+2
|/
* Merge branch 'master' of github.com:mbien/gluegenSven Gothel2011-02-1011-372/+83
|\
| * - removed CDC impl for com.jogamp.common.nioMichael Bien2011-02-0911-372/+83
| | | | | | | | - generified class hierarchy (casts no longer needed in client code) - @Override where needed and other minor changes
* | html fixesSven Gothel2011-02-092-16/+11
|/
* Move implementation private files from com.jogamp.<module>.impl. to ↵Sven Gothel2011-02-096-6/+6
| | | | | | | | | | | | jogamp.<module> - com.jogamp.common.impl -> jogamp.common This sorts implementation details from the top level, ie skipping the public 'com', allowing a better seperation of public classes and implementation details and also reduces strings. This approach of public/private seperation is also used in the OpenJDK.
* Fix: VersionNumber compare shall throw ClassCastException if argument is of ↵Sven Gothel2011-01-311-2/+4
| | | | different kind
* Fix: Avoid NPE in case no manifest is available (running w/o JAR)Sven Gothel2011-01-311-3/+3
|
* ReflectionUtil: Add getBaseName(Class)Sven Gothel2010-12-191-0/+5
|
* debug: mention thread nameSven Gothel2010-12-171-1/+2
|
* Fix doc for type 'long' - added WARNING (ambiguous size Windows/Unix)Sven Gothel2010-12-161-19/+24
|
* Fix refactor bug: os -> os_lc in strings, reverted.Sven Gothel2010-12-151-7/+7
|
* Debug: out -> err streamSven Gothel2010-12-133-21/+21
|
* clean: importSven Gothel2010-12-131-1/+0
|
* Add generic VersionNumber util classSven Gothel2010-11-281-0/+92
|
* Refined VersionInfo (seperator/new-line)Sven Gothel2010-11-252-12/+10
|
* HashMapTest: Back to 50% tolerance, removed 'put' errorSven Gothel2010-11-252-8/+8
|
* Disabled Struct* Tests (not working on Windows .. platform; Moved ↵Sven Gothel2010-11-256-29/+306
| | | | BuffersTest and PCPP to the proper src/junit folder. All junit tests are now handled by build-junit.xml
* Fix HashMapTests. The benchmark tests used the value as a key, hence finding ↵Sven Gothel2010-11-252-18/+32
| | | | the non existing hashed value lead to O(n)
* GlueGen: Close in/out streams to allow deleteOnExit() to succeed on WindowsSven Gothel2010-11-251-0/+3
|
* Make Primitive HashMap Benchmark test tolerant ~ 50%v2.0-rc1Sven Gothel2010-11-232-6/+10
|
* Buffers float/double conversion: Add arg for given destination buffer; Add ↵Sven Gothel2010-11-192-7/+239
| | | | back conversion; Add unit test for arrays
* print platform info (GlueGenVersion).Michael Bien2010-11-182-0/+9
|
* Version info debugging works now even without native libs.Michael Bien2010-11-184-71/+96
| | | | | | - Platform is now useable without gluegen-rt libs in library path. - JogampVersion: fixed equals, added Impl url to manifest. - VersionUtil: getManifest should be now more relieable and passed all manual tests, e.g java jar lib.jar without specified classpath.
* Add general purpose WriteCloneable interfaceSven Gothel2010-11-171-0/+42
|