From a07892f07f15c96ca248fc12133748be7058241f Mon Sep 17 00:00:00 2001 From: Michael Bien Date: Tue, 26 Apr 2011 22:20:46 +0200 Subject: refactoring in common.nio public api - removed Int64Buffer - removed Int64Buffer since it is no longer needed for LongBuffer emulation Signed-off-by: Sven Gothel --- .../gluegen/test/junit/generation/BaseClass.java | 52 +++++++++++----------- 1 file changed, 26 insertions(+), 26 deletions(-) (limited to 'src/junit/com/jogamp') diff --git a/src/junit/com/jogamp/gluegen/test/junit/generation/BaseClass.java b/src/junit/com/jogamp/gluegen/test/junit/generation/BaseClass.java index 7837bc4..30ef6fd 100644 --- a/src/junit/com/jogamp/gluegen/test/junit/generation/BaseClass.java +++ b/src/junit/com/jogamp/gluegen/test/junit/generation/BaseClass.java @@ -30,10 +30,10 @@ package com.jogamp.gluegen.test.junit.generation; import com.jogamp.common.nio.Buffers; import com.jogamp.common.nio.PointerBuffer; -import com.jogamp.common.nio.Int64Buffer; import com.jogamp.common.os.Platform; import java.nio.ByteBuffer; import java.nio.IntBuffer; +import java.nio.LongBuffer; import org.junit.Assert; @@ -73,7 +73,7 @@ public class BaseClass { long result; long context = 0; ByteBuffer bb=null; - Int64Buffer lb=null; + LongBuffer lb=null; PointerBuffer pb=null; IntBuffer ib=null; long[] larray = null; @@ -148,11 +148,11 @@ public class BaseClass { long result; long context = 1; - Int64Buffer lb = Int64Buffer.allocateDirect(1); + LongBuffer lb = Buffers.newDirectLongBuffer(1); lb.put(0, 10); ByteBuffer bb2 = Buffers.newDirectByteBuffer(Buffers.SIZEOF_LONG); - Int64Buffer bb2L = Int64Buffer.wrap(bb2); + LongBuffer bb2L = bb2.asLongBuffer(); bb2L.put(0, 100); IntBuffer ib1 = Buffers.newDirectByteBuffer(Buffers.SIZEOF_INT * Bindingtest1.ARRAY_SIZE).asIntBuffer(); @@ -160,11 +160,11 @@ public class BaseClass { ib1.put(i, 1000); } - Int64Buffer lb1 = Int64Buffer.allocateDirect(Bindingtest1.ARRAY_SIZE); + LongBuffer lb1 = Buffers.newDirectLongBuffer(Bindingtest1.ARRAY_SIZE); for(i=0; i