summaryrefslogtreecommitdiffstats
path: root/src/java/com/jogamp/gluegen/runtime/Int64BufferSE.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2010-03-31 22:36:49 +0200
committerSven Gothel <[email protected]>2010-03-31 22:36:49 +0200
commit73829c38665c57052bf703ae58a2bd1dc7dc4625 (patch)
tree88a68954170fcaefc5b1417702a1df9d9e8bd589 /src/java/com/jogamp/gluegen/runtime/Int64BufferSE.java
parent84e5ba7a4821469f43c0f4bbeaa8e383b203d050 (diff)
Buffer heritage added. Migrated old runtime tests.
Diffstat (limited to 'src/java/com/jogamp/gluegen/runtime/Int64BufferSE.java')
-rwxr-xr-xsrc/java/com/jogamp/gluegen/runtime/Int64BufferSE.java15
1 files changed, 2 insertions, 13 deletions
diff --git a/src/java/com/jogamp/gluegen/runtime/Int64BufferSE.java b/src/java/com/jogamp/gluegen/runtime/Int64BufferSE.java
index 166d0c6..a874133 100755
--- a/src/java/com/jogamp/gluegen/runtime/Int64BufferSE.java
+++ b/src/java/com/jogamp/gluegen/runtime/Int64BufferSE.java
@@ -49,21 +49,16 @@ final class Int64BufferSE extends Int64Buffer {
super(bb);
this.pb = bb.asLongBuffer();
-
- capacity = bb.capacity() / elementSize();
-
- position = 0;
- backup = new long[capacity];
}
- public long get(int idx) {
+ public final long get(int idx) {
if (0 > idx || idx >= capacity) {
throw new IndexOutOfBoundsException();
}
return pb.get(idx);
}
- public Int64Buffer put(int idx, long v) {
+ public final AbstractLongBuffer put(int idx, long v) {
if (0 > idx || idx >= capacity) {
throw new IndexOutOfBoundsException();
}
@@ -71,10 +66,4 @@ final class Int64BufferSE extends Int64Buffer {
pb.put(idx, v);
return this;
}
-
- public Int64Buffer put(long v) {
- put(position, v);
- position++;
- return this;
- }
}