diff options
author | Sven Gothel <[email protected]> | 2013-10-12 09:42:42 -0700 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2013-10-12 09:42:42 -0700 |
commit | bb78caa427f951450fd3e5bf44db355fc053fed0 (patch) | |
tree | 977b7ec7daf815fa119453abab48d101c4bd1d4d /src | |
parent | 068b822a3bf978124428d1642cfefb078c9e4a2b (diff) | |
parent | 1ef779e34531bbc70937570922e38d8f3cb15d00 (diff) |
Merge pull request #16 from forticulous/buffers-spelling
Buffers.java - spelling (lenght -> length) - thx
Diffstat (limited to 'src')
-rw-r--r-- | src/java/com/jogamp/common/nio/Buffers.java | 24 |
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) { |