diff options
author | Sven Gothel <[email protected]> | 2010-03-31 22:36:49 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2010-03-31 22:36:49 +0200 |
commit | 73829c38665c57052bf703ae58a2bd1dc7dc4625 (patch) | |
tree | 88a68954170fcaefc5b1417702a1df9d9e8bd589 /src/java/com/jogamp/gluegen/runtime/PointerBufferSE.java | |
parent | 84e5ba7a4821469f43c0f4bbeaa8e383b203d050 (diff) |
Buffer heritage added. Migrated old runtime tests.
Diffstat (limited to 'src/java/com/jogamp/gluegen/runtime/PointerBufferSE.java')
-rwxr-xr-x | src/java/com/jogamp/gluegen/runtime/PointerBufferSE.java | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/java/com/jogamp/gluegen/runtime/PointerBufferSE.java b/src/java/com/jogamp/gluegen/runtime/PointerBufferSE.java index 6f131a9..9943ec1 100755 --- a/src/java/com/jogamp/gluegen/runtime/PointerBufferSE.java +++ b/src/java/com/jogamp/gluegen/runtime/PointerBufferSE.java @@ -53,14 +53,9 @@ final class PointerBufferSE extends PointerBuffer { } else { 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(); } @@ -71,7 +66,7 @@ final class PointerBufferSE extends PointerBuffer { } } - public PointerBuffer put(int idx, long v) { + public final AbstractLongBuffer put(int idx, long v) { if (0 > idx || idx >= capacity) { throw new IndexOutOfBoundsException(); } @@ -84,9 +79,4 @@ final class PointerBufferSE extends PointerBuffer { return this; } - public PointerBuffer put(long v) { - put(position, v); - position++; - return this; - } } |