From 2401906338e6b2183342e3e92b06721a43a9ba8f Mon Sep 17 00:00:00 2001 From: Carsten Weisse Date: Fri, 11 May 2007 21:00:27 +0000 Subject: update to lwjgl 1.1 --- lib/lwjgl/patch/org/lwjgl/BufferChecks.java | 57 ++--------------------------- 1 file changed, 4 insertions(+), 53 deletions(-) diff --git a/lib/lwjgl/patch/org/lwjgl/BufferChecks.java b/lib/lwjgl/patch/org/lwjgl/BufferChecks.java index 28d90df..58f39f4 100644 --- a/lib/lwjgl/patch/org/lwjgl/BufferChecks.java +++ b/lib/lwjgl/patch/org/lwjgl/BufferChecks.java @@ -43,11 +43,13 @@ import java.nio.LongBuffer; *

A class to check buffer boundaries in general. If there is unsufficient space * in the buffer when the call is made then a buffer overflow would otherwise * occur and cause unexpected behaviour, a crash, or worse, a security risk. + * + * Internal class, don't use. *

* @author cix_foo * @author elias_naur - * @version $Revision: 1.2 $ - * $Id: BufferChecks.java,v 1.2 2007-03-17 16:02:17 cawe Exp $ + * @version $Revision: 1.3 $ + * $Id: BufferChecks.java,v 1.3 2007-05-11 21:00:27 cawe Exp $ */ public class BufferChecks { /** Static methods only! */ @@ -75,32 +77,9 @@ public class BufferChecks { } /** - * Helper methods to ensure a buffer is direct or null. - */ - public static void checkDirectOrNull(ByteBuffer buf) { - } - - public static void checkDirectOrNull(ShortBuffer buf) { - } - - public static void checkDirectOrNull(IntBuffer buf) { - } - - public static void checkDirectOrNull(LongBuffer buf) { - } - public static void checkDirectOrNull(FloatBuffer buf) { - } - - public static void checkDirectOrNull(DoubleBuffer buf) { - } - - /** * Helper methods to ensure a buffer is direct (and, implicitly, non-null). */ - public static void checkDirectBuffer(Buffer buf) { - } - public static void checkDirect(ByteBuffer buf) { } @@ -156,32 +135,4 @@ public class BufferChecks { public static void checkBuffer(DoubleBuffer buf, int size) { } - - /** - * Helper methods to ensure a buffer is big enough to receive data from a - * glGet* operation. To avoid unnecessarily complex buffer size checking - * we've just set the bar artificially high and insist that any receiving - * buffer has at least 4 remaining(). - * - * @param buf - * The buffer to check - * @throws IllegalArgumentException - */ - public static void checkBuffer(ByteBuffer buf) { - } - - public static void checkBuffer(ShortBuffer buf) { - } - - public static void checkBuffer(IntBuffer buf) { - } - - public static void checkBuffer(LongBuffer buf) { - } - - public static void checkBuffer(FloatBuffer buf) { - } - - public static void checkBuffer(DoubleBuffer buf) { - } } -- cgit v1.2.3