diff options
Diffstat (limited to 'src/java/com/jogamp/common/nio/NativeBuffer.java')
-rw-r--r-- | src/java/com/jogamp/common/nio/NativeBuffer.java | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/java/com/jogamp/common/nio/NativeBuffer.java b/src/java/com/jogamp/common/nio/NativeBuffer.java index eeec3e3..ad6bb39 100644 --- a/src/java/com/jogamp/common/nio/NativeBuffer.java +++ b/src/java/com/jogamp/common/nio/NativeBuffer.java @@ -39,7 +39,7 @@ import java.nio.ByteBuffer; * @author Michael Bien * @author Sven Gothel */ -public interface NativeBuffer/*<B extends NativeBuffer>*/ { +public interface NativeBuffer<B extends NativeBuffer> { public int limit(); @@ -47,14 +47,12 @@ public interface NativeBuffer/*<B extends NativeBuffer>*/ { public int position(); - public NativeBuffer position(int newPos); + public B position(int newPos); public int remaining(); public boolean hasRemaining(); - public NativeBuffer rewind(); - public boolean hasArray(); public int arrayOffset(); @@ -63,7 +61,6 @@ public interface NativeBuffer/*<B extends NativeBuffer>*/ { public boolean isDirect(); -/* public long[] array(); public B rewind(); @@ -77,6 +74,5 @@ public interface NativeBuffer/*<B extends NativeBuffer>*/ { public long get(); public long get(int idx); -*/ } |