From: Carsten W. <ca...@us...> - 2007-05-11 21:00:35
|
Update of /cvsroot/jake2/jake2/lib/lwjgl/patch/org/lwjgl In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv15265/lib/lwjgl/patch/org/lwjgl Modified Files: BufferChecks.java Log Message: update to lwjgl 1.1 Index: BufferChecks.java =================================================================== RCS file: /cvsroot/jake2/jake2/lib/lwjgl/patch/org/lwjgl/BufferChecks.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** BufferChecks.java 17 Mar 2007 16:02:17 -0000 1.2 --- BufferChecks.java 11 May 2007 21:00:27 -0000 1.3 *************** *** 44,47 **** --- 44,49 ---- * 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. * </p> * @author cix_foo <ci...@us...> *************** *** 76,105 **** /** - * 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) { } --- 78,84 ---- *************** *** 157,187 **** 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) { - } } --- 136,138 ---- |