summaryrefslogtreecommitdiffstats
path: root/src/java/com/jogamp/common/nio/Int64Buffer.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-02-10 01:35:58 +0100
committerSven Gothel <[email protected]>2011-02-10 01:35:58 +0100
commit29eb568b642faac9475665d000a865fe684d42a4 (patch)
tree48d0fee6df82ce4f8fe35c3466cb3ed8690251dc /src/java/com/jogamp/common/nio/Int64Buffer.java
parentcbb0bc1ef3d8c0464618c9f773cd1b4725059971 (diff)
parente581ea0e1f65101a7d4baf99d18fa43e1aa20b01 (diff)
Merge branch 'master' of github.com:mbien/gluegen
Diffstat (limited to 'src/java/com/jogamp/common/nio/Int64Buffer.java')
-rw-r--r--src/java/com/jogamp/common/nio/Int64Buffer.java23
1 files changed, 5 insertions, 18 deletions
diff --git a/src/java/com/jogamp/common/nio/Int64Buffer.java b/src/java/com/jogamp/common/nio/Int64Buffer.java
index 32fba03..968e48d 100644
--- a/src/java/com/jogamp/common/nio/Int64Buffer.java
+++ b/src/java/com/jogamp/common/nio/Int64Buffer.java
@@ -28,7 +28,6 @@
package com.jogamp.common.nio;
-import com.jogamp.common.os.*;
import java.nio.ByteBuffer;
/**
@@ -39,35 +38,22 @@ import java.nio.ByteBuffer;
* @author Michael Bien
* @author Sven Gothel
*/
-public abstract class Int64Buffer extends AbstractLongBuffer {
+public abstract class Int64Buffer extends AbstractLongBuffer<Int64Buffer> {
protected Int64Buffer(ByteBuffer bb) {
super(bb, elementSize());
}
public static Int64Buffer allocate(int size) {
- if (Platform.isJavaSE()) {
- return new Int64BufferSE(ByteBuffer.wrap(new byte[elementSize() * size]));
- } else {
- return new Int64BufferME_CDC_FP(ByteBuffer.wrap(new byte[elementSize() * size]));
- }
+ return new Int64BufferSE(ByteBuffer.wrap(new byte[elementSize() * size]));
}
public static Int64Buffer allocateDirect(int size) {
- if (Platform.isJavaSE()) {
- return new Int64BufferSE(Buffers.newDirectByteBuffer(elementSize() * size));
- } else {
- return new Int64BufferME_CDC_FP(Buffers.newDirectByteBuffer(elementSize() * size));
- }
+ return new Int64BufferSE(Buffers.newDirectByteBuffer(elementSize() * size));
}
public static Int64Buffer wrap(ByteBuffer src) {
- Int64Buffer res;
- if (Platform.isJavaSE()) {
- res = new Int64BufferSE(src);
- } else {
- res = new Int64BufferME_CDC_FP(src);
- }
+ Int64Buffer res = new Int64BufferSE(src);
res.updateBackup();
return res;
@@ -77,6 +63,7 @@ public abstract class Int64Buffer extends AbstractLongBuffer {
return Buffers.SIZEOF_LONG;
}
+ @Override
public String toString() {
return "Int64Buffer:"+super.toString();
}