summaryrefslogtreecommitdiffstats
path: root/src/java/com/jogamp/common/nio/Buffers.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2013-01-18 02:21:15 +0100
committerSven Gothel <[email protected]>2013-01-18 02:21:15 +0100
commit41e7c7ca3ae2005b23182d7f28abd0b8ed11e73c (patch)
treea2f527d7caaccb730d995678c5a4cf817a93f8c6 /src/java/com/jogamp/common/nio/Buffers.java
parent1b9f0739ecc25105384b557afa698c42e08d4cc6 (diff)
Buffers: Fix typo
Diffstat (limited to 'src/java/com/jogamp/common/nio/Buffers.java')
-rwxr-xr-xsrc/java/com/jogamp/common/nio/Buffers.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/java/com/jogamp/common/nio/Buffers.java b/src/java/com/jogamp/common/nio/Buffers.java
index 3da1261..695dc47 100755
--- a/src/java/com/jogamp/common/nio/Buffers.java
+++ b/src/java/com/jogamp/common/nio/Buffers.java
@@ -71,8 +71,8 @@ public class Buffers {
return nativeOrder(ByteBuffer.allocateDirect(numElements));
}
- public static ByteBuffer newDirectByteBuffer(byte[] values, int offset, int lenght) {
- return (ByteBuffer)newDirectByteBuffer(lenght).put(values, offset, lenght).rewind();
+ public static ByteBuffer newDirectByteBuffer(byte[] values, int offset, int length) {
+ return (ByteBuffer)newDirectByteBuffer(length).put(values, offset, length).rewind();
}
public static ByteBuffer newDirectByteBuffer(byte[] values, int offset) {