public class BufferAllocator
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
SIZEOF_BOOLEAN
Size of a boolean in bytes.
|
static int |
SIZEOF_BYTE
Size of a byte in bytes.
|
static int |
SIZEOF_CHAR
Size of a char in bytes
|
static int |
SIZEOF_DOUBLE
Size of a double in bytes
|
static int |
SIZEOF_FLOAT
Size of a float in bytes
|
static int |
SIZEOF_INT
Size of an int in bytes
|
static int |
SIZEOF_LONG
Size of a long in bytes
|
static int |
SIZEOF_SHORT
Size of a short in bytes
|
| Constructor and Description |
|---|
BufferAllocator() |
| Modifier and Type | Method and Description |
|---|---|
static java.nio.ByteBuffer |
newByteBuffer(int numElements)
Allocate a direct
ByteBuffer with order ByteOrder.nativeOrder() |
static java.nio.CharBuffer |
newCharBuffer(int numElements)
Allocate a direct
CharBuffer with order ByteOrder.nativeOrder() |
static java.nio.DoubleBuffer |
newDoubleBuffer(int numElements)
Allocate a direct
DoubleBuffer with order ByteOrder.nativeOrder() |
static java.nio.FloatBuffer |
newFloatBuffer(int numElements)
Allocate a direct
FloatBuffer with order ByteOrder.nativeOrder() |
static java.nio.IntBuffer |
newIntBuffer(int numElements)
Allocate a direct
IntBuffer with order ByteOrder.nativeOrder() |
static java.nio.LongBuffer |
newLongBuffer(int numElements)
Allocate a direct
LongBuffer with order ByteOrder.nativeOrder() |
static java.nio.ShortBuffer |
newShortBuffer(int numElements)
Allocate a direct
ShortBuffer with order ByteOrder.nativeOrder() |
static java.lang.String |
toString(java.nio.ByteBuffer buffer,
int offset,
int length) |
public static final int SIZEOF_BOOLEAN
public static final int SIZEOF_BYTE
public static final int SIZEOF_CHAR
public static final int SIZEOF_SHORT
public static final int SIZEOF_INT
public static final int SIZEOF_LONG
public static final int SIZEOF_FLOAT
public static final int SIZEOF_DOUBLE
public static final java.nio.ByteBuffer newByteBuffer(int numElements)
ByteBuffer with order ByteOrder.nativeOrder()public static final java.nio.CharBuffer newCharBuffer(int numElements)
CharBuffer with order ByteOrder.nativeOrder()public static final java.nio.ShortBuffer newShortBuffer(int numElements)
ShortBuffer with order ByteOrder.nativeOrder()public static final java.nio.IntBuffer newIntBuffer(int numElements)
IntBuffer with order ByteOrder.nativeOrder()public static final java.nio.LongBuffer newLongBuffer(int numElements)
LongBuffer with order ByteOrder.nativeOrder()public static final java.nio.FloatBuffer newFloatBuffer(int numElements)
FloatBuffer with order ByteOrder.nativeOrder()public static final java.nio.DoubleBuffer newDoubleBuffer(int numElements)
DoubleBuffer with order ByteOrder.nativeOrder()public static final java.lang.String toString(java.nio.ByteBuffer buffer,
int offset,
int length)
buffer - a ByteBuffer containing String charactersoffset - offset index from bufferlength - number of characters in the StringString value of the specified bufferBonzai Engine 1.4.1-20200831 - A Java OpenGL engine and tools for Windows/Mac/Linux/Android
Copyright © 2007-2019 Jérôme Jouvie bonzaiengine.com contact@bonzaiengine.com