APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.prism.impl

public Class BufferUtil

extends Object
Class Inheritance
Imports
java.lang.reflect.Method, java.nio.ByteBuffer, .DoubleBuffer, .FloatBuffer, .IntBuffer, .ShortBuffer

Utility routines for dealing with direct buffers.

Field Summary

Modifier and TypeField and Description
private static Class<T>
private static boolean
private static Object
private static Method
public static final int
public static final int
public static final int
public static final int
public static final int

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static void
public static ByteBuffer
newByteBuffer(int numElements)

Allocates a new direct ByteBuffer with the specified number of elements.

public static DoubleBuffer
newDoubleBuffer(int numElements)

Allocates a new direct DoubleBuffer with the specified number of elements.

public static FloatBuffer
newFloatBuffer(int numElements)

Allocates a new direct FloatBuffer with the specified number of elements.

public static IntBuffer
newIntBuffer(int numElements)

Allocates a new direct IntBuffer with the specified number of elements.

public static ShortBuffer
newShortBuffer(int numElements)

Allocates a new direct ShortBuffer with the specified number of elements.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

byteOrderClassback to summary
private static Class<T> byteOrderClass
isCDCFPback to summary
private static boolean isCDCFP
nativeOrderObjectback to summary
private static Object nativeOrderObject
orderMethodback to summary
private static Method orderMethod
SIZEOF_BYTEback to summary
public static final int SIZEOF_BYTE
SIZEOF_DOUBLEback to summary
public static final int SIZEOF_DOUBLE
SIZEOF_FLOATback to summary
public static final int SIZEOF_FLOAT
SIZEOF_INTback to summary
public static final int SIZEOF_INT
SIZEOF_SHORTback to summary
public static final int SIZEOF_SHORT

Constructor Detail

BufferUtilback to summary
private BufferUtil()

Method Detail

nativeOrderback to summary
public static void nativeOrder(ByteBuffer buf)
newByteBufferback to summary
public static ByteBuffer newByteBuffer(int numElements)

Allocates a new direct ByteBuffer with the specified number of elements. The returned buffer will have its byte order set to the host platform's native byte order.

newDoubleBufferback to summary
public static DoubleBuffer newDoubleBuffer(int numElements)

Allocates a new direct DoubleBuffer with the specified number of elements. The returned buffer will have its byte order set to the host platform's native byte order.

newFloatBufferback to summary
public static FloatBuffer newFloatBuffer(int numElements)

Allocates a new direct FloatBuffer with the specified number of elements. The returned buffer will have its byte order set to the host platform's native byte order.

newIntBufferback to summary
public static IntBuffer newIntBuffer(int numElements)

Allocates a new direct IntBuffer with the specified number of elements. The returned buffer will have its byte order set to the host platform's native byte order.

newShortBufferback to summary
public static ShortBuffer newShortBuffer(int numElements)

Allocates a new direct ShortBuffer with the specified number of elements. The returned buffer will have its byte order set to the host platform's native byte order.