APIdia Launch Partner
Top Fields Constructors Methods
com.sun.prism.es2

pack-priv Class BufferFactory

extends Object
Class Inheritance
Imports
java.nio.*

Field Summary

Modifier and TypeField and Description
private static final boolean
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv static Object
getArray(Object buf)

Helper routine to return the array backing store reference from a Buffer object.

pack-priv static int
getDirectBufferByteOffset(Object buf)

Helper routine to get the Buffer byte offset by taking into account the Buffer position and the underlying type.

pack-priv static int
getIndirectBufferByteOffset(Object buf)

Helper routine to get the full byte offset from the beginning of the array that is the storage for the indirect Buffer object.

pack-priv static boolean
isDirect(Object buf)

Helper routine to tell whether a buffer is direct or not.

pack-priv static boolean
pack-priv static ByteBuffer
nativeOrder(ByteBuffer buf)

Helper routine to set a ByteBuffer to the native byte order, if that operation is supported by the underlying NIO implementation.

pack-priv static ByteBuffer
newDirectByteBuffer(int size)

Helper routine to create a direct ByteBuffer with native order

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

isLittleEndianback to summary
private static final boolean isLittleEndian
SIZEOF_BYTEback to summary
pack-priv static final int SIZEOF_BYTE
SIZEOF_CHARback to summary
pack-priv static final int SIZEOF_CHAR
SIZEOF_DOUBLEback to summary
pack-priv static final int SIZEOF_DOUBLE
SIZEOF_FLOATback to summary
pack-priv static final int SIZEOF_FLOAT
SIZEOF_INTback to summary
pack-priv static final int SIZEOF_INT
SIZEOF_LONGback to summary
pack-priv static final int SIZEOF_LONG
SIZEOF_SHORTback to summary
pack-priv static final int SIZEOF_SHORT

Constructor Detail

BufferFactoryback to summary
pack-priv BufferFactory()

Method Detail

getArrayback to summary
pack-priv static Object getArray(Object buf)

Helper routine to return the array backing store reference from a Buffer object.

getDirectBufferByteOffsetback to summary
pack-priv static int getDirectBufferByteOffset(Object buf)

Helper routine to get the Buffer byte offset by taking into account the Buffer position and the underlying type. This is the total offset for Direct Buffers.

getIndirectBufferByteOffsetback to summary
pack-priv static int getIndirectBufferByteOffset(Object buf)

Helper routine to get the full byte offset from the beginning of the array that is the storage for the indirect Buffer object. The array offset also includes the position offset within the buffer, in addition to any array offset.

isDirectback to summary
pack-priv static boolean isDirect(Object buf)

Helper routine to tell whether a buffer is direct or not. Null pointers are considered direct. isDirect() should really be in Buffer and not replicated in all subclasses.

isLittleEndianback to summary
pack-priv static boolean isLittleEndian()
nativeOrderback to summary
pack-priv static ByteBuffer nativeOrder(ByteBuffer buf)

Helper routine to set a ByteBuffer to the native byte order, if that operation is supported by the underlying NIO implementation.

newDirectByteBufferback to summary
pack-priv static ByteBuffer newDirectByteBuffer(int size)

Helper routine to create a direct ByteBuffer with native order