From 84e5ba7a4821469f43c0f4bbeaa8e383b203d050 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Tue, 30 Mar 2010 03:39:16 +0200 Subject: http://www.jogamp.org/bugzilla/show_bug.cgi?id=392 32bit/64bit values and arrays are misrepresented - PointerBuffer: Adding methods PointeRBuffer referenceBuffer(int index, Buffer data) PointeRBuffer referenceBuffer(Buffer data) Buffer getReferencedBuffer(int index) Buffer getReferencedBuffer() Adding a reference of a given direct Buffer to this pointer buffer, and retrieving a previously referenced direct Buffer. This allows a more convenient handling of PointerBuffer with the user API's .. --- .../com/jogamp/gluegen/test/junit/BaseTest1.java | 46 +++++++++++++++++++++- 1 file changed, 44 insertions(+), 2 deletions(-) (limited to 'src/junit') diff --git a/src/junit/com/jogamp/gluegen/test/junit/BaseTest1.java b/src/junit/com/jogamp/gluegen/test/junit/BaseTest1.java index 420dc2b..f144a26 100644 --- a/src/junit/com/jogamp/gluegen/test/junit/BaseTest1.java +++ b/src/junit/com/jogamp/gluegen/test/junit/BaseTest1.java @@ -212,6 +212,7 @@ public class BaseTest1 { result = binding.arrayTestFooNioOnly(context, lb1); Assert.assertTrue("Wrong result: "+result, 1+8000==result); + // Int64Buffer arrayTestFoo2 ( Int64Buffer ) { lb2.rewind(); Int64Buffer lb3 = Int64Buffer.allocateDirect(BindingTest1.ARRAY_SIZE); @@ -236,6 +237,8 @@ public class BaseTest1 { Assert.assertTrue("Wrong result: s:"+lb3.get(j)+" d: "+lbR.get(j), 1+lb3.get(j)==lbR.get(j)); } } + + // Int64Buffer arrayTestFoo2 ( long[], int ) { long[] larray3 = new long[BindingTest1.ARRAY_SIZE]; for(i=0; i