@@ -0,0 +1,1718 @@
+package autostack;%0A%0Aimport java.nio.FloatBuffer;%0Aimport java.nio.IntBuffer;%0Aimport java.nio.LongBuffer;%0A%0Aimport org.lwjgl.PointerBuffer;%0A%0Apublic class Stack %7B%0A%0A    public static IntBuffer stackMallocInt(int size) %7B%0A        /* Will be transformed anyway */%0A        throw new AssertionError(%22Please start the JVM with -javaagent:autostack.jar%22);%0A    %7D%0A%0A    public static PointerBuffer stackMallocPointer(int size) %7B%0A        /* Will be transformed anyway */%0A        throw new AssertionError(%22Please start the JVM with -javaagent:autostack.jar%22);%0A    %7D%0A%0A    public static LongBuffer stackMallocLong(int size) %7B%0A        /* Will be transformed anyway */%0A        throw new AssertionError(%22Please start the JVM with -javaagent:autostack.jar%22);%0A    %7D%0A%0A    public static FloatBuffer stackMallocFloat(int size) %7B%0A        /* Will be transformed anyway */%0A        throw new AssertionError(%22Please start the JVM with -javaagent:autostack.jar%22);%0A    %7D%0A%0A    public static IntBuffer stackCallocInt(int size) %7B%0A        /* Will be transformed anyway */%0A        throw new AssertionError(%22Please start the JVM with -javaagent:autostack.jar%22);%0A    %7D%0A%0A    public static PointerBuffer stackCallocPointer(int size) %7B%0A        /* Will be transformed anyway */%0A        throw new AssertionError(%22Please start the JVM with -javaagent:autostack.jar%22);%0A    %7D%0A%0A    public static LongBuffer stackCallocLong(int size) %7B%0A        /* Will be transformed anyway */%0A        throw new AssertionError(%22Please start the JVM with -javaagent:autostack.jar%22);%0A    %7D%0A%0A    public static FloatBuffer stackCallocFloat(int size) %7B%0A        /* Will be transformed anyway */%0A        throw new AssertionError(%22Please start the JVM with -javaagent:autostack.jar%22);%0A    %7D%0A%0A%7D%0A

Add simple user API to stack-allocate NIO buffers