aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Gibson <[email protected]>2013-08-26 21:24:01 -0700
committerMatthew Gibson <[email protected]>2013-08-26 21:24:01 -0700
commit1ef779e34531bbc70937570922e38d8f3cb15d00 (patch)
treef4f53f1c767a1e2cfac70593973363c8ad22ee21
parentc7193c39b9cbb69ce089adabe8847537c83371a1 (diff)
Buffers.java - spelling
-rw-r--r--src/java/com/jogamp/common/nio/Buffers.java24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/java/com/jogamp/common/nio/Buffers.java b/src/java/com/jogamp/common/nio/Buffers.java
index 382084a..851aa69 100644
--- a/src/java/com/jogamp/common/nio/Buffers.java
+++ b/src/java/com/jogamp/common/nio/Buffers.java
@@ -94,8 +94,8 @@ public class Buffers {
return newDirectByteBuffer(numElements * SIZEOF_DOUBLE).asDoubleBuffer();
}
- public static DoubleBuffer newDirectDoubleBuffer(double[] values, int offset, int lenght) {
- return (DoubleBuffer)newDirectDoubleBuffer(lenght).put(values, offset, lenght).rewind();
+ public static DoubleBuffer newDirectDoubleBuffer(double[] values, int offset, int length) {
+ return (DoubleBuffer)newDirectDoubleBuffer(length).put(values, offset, length).rewind();
}
public static DoubleBuffer newDirectDoubleBuffer(double[] values, int offset) {
@@ -115,8 +115,8 @@ public class Buffers {
return newDirectByteBuffer(numElements * SIZEOF_FLOAT).asFloatBuffer();
}
- public static FloatBuffer newDirectFloatBuffer(float[] values, int offset, int lenght) {
- return (FloatBuffer)newDirectFloatBuffer(lenght).put(values, offset, lenght).rewind();
+ public static FloatBuffer newDirectFloatBuffer(float[] values, int offset, int length) {
+ return (FloatBuffer)newDirectFloatBuffer(length).put(values, offset, length).rewind();
}
public static FloatBuffer newDirectFloatBuffer(float[] values, int offset) {
@@ -136,8 +136,8 @@ public class Buffers {
return newDirectByteBuffer(numElements * SIZEOF_INT).asIntBuffer();
}
- public static IntBuffer newDirectIntBuffer(int[] values, int offset, int lenght) {
- return (IntBuffer)newDirectIntBuffer(lenght).put(values, offset, lenght).rewind();
+ public static IntBuffer newDirectIntBuffer(int[] values, int offset, int length) {
+ return (IntBuffer)newDirectIntBuffer(length).put(values, offset, length).rewind();
}
public static IntBuffer newDirectIntBuffer(int[] values, int offset) {
@@ -157,8 +157,8 @@ public class Buffers {
return newDirectByteBuffer(numElements * SIZEOF_LONG).asLongBuffer();
}
- public static LongBuffer newDirectLongBuffer(long[] values, int offset, int lenght) {
- return (LongBuffer)newDirectLongBuffer(lenght).put(values, offset, lenght).rewind();
+ public static LongBuffer newDirectLongBuffer(long[] values, int offset, int length) {
+ return (LongBuffer)newDirectLongBuffer(length).put(values, offset, length).rewind();
}
public static LongBuffer newDirectLongBuffer(long[] values, int offset) {
@@ -178,8 +178,8 @@ public class Buffers {
return newDirectByteBuffer(numElements * SIZEOF_SHORT).asShortBuffer();
}
- public static ShortBuffer newDirectShortBuffer(short[] values, int offset, int lenght) {
- return (ShortBuffer)newDirectShortBuffer(lenght).put(values, offset, lenght).rewind();
+ public static ShortBuffer newDirectShortBuffer(short[] values, int offset, int length) {
+ return (ShortBuffer)newDirectShortBuffer(length).put(values, offset, length).rewind();
}
public static ShortBuffer newDirectShortBuffer(short[] values, int offset) {
@@ -199,8 +199,8 @@ public class Buffers {
return newDirectByteBuffer(numElements * SIZEOF_SHORT).asCharBuffer();
}
- public static CharBuffer newDirectCharBuffer(char[] values, int offset, int lenght) {
- return (CharBuffer)newDirectCharBuffer(lenght).put(values, offset, lenght).rewind();
+ public static CharBuffer newDirectCharBuffer(char[] values, int offset, int length) {
+ return (CharBuffer)newDirectCharBuffer(length).put(values, offset, length).rewind();
}
public static CharBuffer newDirectCharBuffer(char[] values, int offset) {