public class BufferUtil extends Object
Modifier and Type | Field and Description |
---|---|
static int |
SIZEOF_BYTE |
static int |
SIZEOF_DOUBLE |
static int |
SIZEOF_FLOAT |
static int |
SIZEOF_INT |
static int |
SIZEOF_SHORT |
Modifier and Type | Method and Description |
---|---|
static void |
nativeOrder(ByteBuffer buf) |
static ByteBuffer |
newByteBuffer(int numElements)
Allocates a new direct ByteBuffer with the specified number of
elements.
|
static DoubleBuffer |
newDoubleBuffer(int numElements)
Allocates a new direct DoubleBuffer with the specified number of
elements.
|
static FloatBuffer |
newFloatBuffer(int numElements)
Allocates a new direct FloatBuffer with the specified number of
elements.
|
static IntBuffer |
newIntBuffer(int numElements)
Allocates a new direct IntBuffer with the specified number of
elements.
|
static 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
public static void nativeOrder(ByteBuffer buf)
public static ByteBuffer newByteBuffer(int numElements)
public static DoubleBuffer newDoubleBuffer(int numElements)
public static FloatBuffer newFloatBuffer(int numElements)
public static IntBuffer newIntBuffer(int numElements)
public static ShortBuffer newShortBuffer(int numElements)
Copyright © 2020. All rights reserved.