| Modifier and Type | Field and Description |
|---|---|
| private static final int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static ByteBuffer | Returns: a ByteBufferThe size, in bytes size)Construct a direct, native-ordered and cache-line-aligned bytebuffer with the specified size. |
| public static CharBuffer | Returns: an CharBufferThe size, in chars size)Construct a direct, native-ordered and cache-line-aligned charbuffer with the specified number of elements. |
| public static DoubleBuffer | Returns: a FloatBufferThe size, in floats size)Construct a direct, native-ordered and cache-line-aligned doublebuffer with the specified number of elements. |
| public static FloatBuffer | Returns: a FloatBufferThe size, in floats size)Construct a direct, native-ordered and cache-line-aligned floatbuffer with the specified number of elements. |
| public static IntBuffer | Returns: an IntBufferThe size, in ints size)Construct a direct, native-ordered and cache-line-aligned intbuffer with the specified number of elements. |
| public static LongBuffer | Returns: an LongBufferThe size, in longs size)Construct a direct, native-ordered and cache-line-aligned longbuffer with the specified number of elements. |
| public static PointerBuffer | Returns: a PointerBufferThe size, in memory addresses size)Construct a cache-line-aligned PointerBuffer with the specified number of elements. |
| public static ShortBuffer | Returns: a ShortBufferThe size, in shorts size)Construct a direct, native-ordered and cache-line-aligned shortbuffer with the specified number of elements. |
| public static int |
| CACHE_LINE_SIZE | back to summary |
|---|---|
| private static final int CACHE_LINE_SIZE | |
| CacheUtil | back to summary |
|---|---|
| private CacheUtil() | |
| createByteBuffer | back to summary |
|---|---|
| public static ByteBuffer createByteBuffer(int size) Construct a direct, native-ordered and cache-line-aligned bytebuffer with the specified size.
| |
| createCharBuffer | back to summary |
|---|---|
| public static CharBuffer createCharBuffer(int size) Construct a direct, native-ordered and cache-line-aligned charbuffer with the specified number of elements.
| |
| createDoubleBuffer | back to summary |
|---|---|
| public static DoubleBuffer createDoubleBuffer(int size) Construct a direct, native-ordered and cache-line-aligned doublebuffer with the specified number of elements.
| |
| createFloatBuffer | back to summary |
|---|---|
| public static FloatBuffer createFloatBuffer(int size) Construct a direct, native-ordered and cache-line-aligned floatbuffer with the specified number of elements.
| |
| createIntBuffer | back to summary |
|---|---|
| public static IntBuffer createIntBuffer(int size) Construct a direct, native-ordered and cache-line-aligned intbuffer with the specified number of elements.
| |
| createLongBuffer | back to summary |
|---|---|
| public static LongBuffer createLongBuffer(int size) Construct a direct, native-ordered and cache-line-aligned longbuffer with the specified number of elements.
| |
| createPointerBuffer | back to summary |
|---|---|
| public static PointerBuffer createPointerBuffer(int size) Construct a cache-line-aligned PointerBuffer with the specified number of elements.
| |
| createShortBuffer | back to summary |
|---|---|
| public static ShortBuffer createShortBuffer(int size) Construct a direct, native-ordered and cache-line-aligned shortbuffer with the specified number of elements.
| |
| getCacheLineSize | back to summary |
|---|---|
| public static int getCacheLineSize() Returns the CPU cache line size, in number of bytes.
| |