diff options
author | Michael Bien <[email protected]> | 2011-02-09 22:19:22 +0100 |
---|---|---|
committer | Michael Bien <[email protected]> | 2011-02-09 22:19:22 +0100 |
commit | e581ea0e1f65101a7d4baf99d18fa43e1aa20b01 (patch) | |
tree | d41b99d3ea1dd68e7054e63778aee5208980409d /src/java/com/jogamp/common/nio/NativeBuffer.java | |
parent | e20879b9f124ecca8bc7467013e118d1b7f5782b (diff) |
- removed CDC impl for com.jogamp.common.nio
- generified class hierarchy (casts no longer needed in client code)
- @Override where needed and other minor changes
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); -*/ } |