public class BufferUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static java.lang.Class |
byteOrderClass |
private static boolean |
isCDCFP |
private static java.lang.Object |
nativeOrderObject |
private static java.lang.reflect.Method |
orderMethod |
static int |
SIZEOF_BYTE |
static int |
SIZEOF_DOUBLE |
static int |
SIZEOF_FLOAT |
static int |
SIZEOF_INT |
static int |
SIZEOF_SHORT |
Modifier | Constructor and Description |
---|---|
private |
BufferUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
nativeOrder(java.nio.ByteBuffer buf) |
static java.nio.ByteBuffer |
newByteBuffer(int numElements)
Allocates a new direct ByteBuffer with the specified number of
elements.
|
static java.nio.DoubleBuffer |
newDoubleBuffer(int numElements)
Allocates a new direct DoubleBuffer with the specified number of
elements.
|
static java.nio.FloatBuffer |
newFloatBuffer(int numElements)
Allocates a new direct FloatBuffer with the specified number of
elements.
|
static java.nio.IntBuffer |
newIntBuffer(int numElements)
Allocates a new direct IntBuffer with the specified number of
elements.
|
static java.nio.ShortBuffer |
newShortBuffer(int numElements)
Allocates a new direct ShortBuffer with the specified number of
elements.
|
public static final int SIZEOF_BYTE
public static final int SIZEOF_SHORT
public static final int SIZEOF_INT
public static final int SIZEOF_FLOAT
public static final int SIZEOF_DOUBLE
private static boolean isCDCFP
private static java.lang.Class byteOrderClass
private static java.lang.Object nativeOrderObject
private static java.lang.reflect.Method orderMethod
public static void nativeOrder(java.nio.ByteBuffer buf)
public static java.nio.ByteBuffer newByteBuffer(int numElements)
public static java.nio.DoubleBuffer newDoubleBuffer(int numElements)
public static java.nio.FloatBuffer newFloatBuffer(int numElements)
public static java.nio.IntBuffer newIntBuffer(int numElements)
public static java.nio.ShortBuffer newShortBuffer(int numElements)