public class BufferUtilities
extends java.lang.Object
Constructor and Description |
---|
BufferUtilities() |
Modifier and Type | Method and Description |
---|---|
static <T extends java.nio.Buffer> |
freeDirectBuffer(T buff)
Frees memory from buffer
|
static java.nio.ByteBuffer |
newNativeByteBuffer(int size) |
static java.nio.FloatBuffer |
newNativeFloatBuffer(int size) |
public static <T extends java.nio.Buffer> T freeDirectBuffer(T buff)
buff
- buffer for which memory should be freedpublic static java.nio.ByteBuffer newNativeByteBuffer(int size)
public static java.nio.FloatBuffer newNativeFloatBuffer(int size)