Package | Description |
---|---|
com.alexkasko.unsafe.bytearray |
Byte array operations using sun.misc.Unsafe
|
com.alexkasko.unsafe.offheap |
Off-heap memory operations using sun.misc.Unsafe
|
com.alexkasko.unsafe.offheapstruct |
Long sized off-heap collections of "structs" (memory areas with equal sizes)
with sorting and searching support
|
Modifier and Type | Class and Description |
---|---|
(package private) class |
BitShiftLittleEndianByteArrayTool
Implementation of
ByteArrayTool using bits shifting and standard
byte array operations. |
(package private) class |
UnsafeByteArrayTool
Implementation of
ByteArrayTool using sun.misc.Unsafe . |
Modifier and Type | Method and Description |
---|---|
static ByteArrayTool |
ByteArrayTool.bitshift()
Instantiates bitshift tool
|
static ByteArrayTool |
ByteArrayTool.get()
Instantiates unsafe tool, if proper
sun.misc.Unsafe implementation is available. |
static ByteArrayTool |
ByteArrayTool.unsafe()
Instantiates unsafe tool
|
Modifier and Type | Field and Description |
---|---|
private ByteArrayTool |
OnHeapMemory.bt |
Modifier and Type | Method and Description |
---|---|
static OffHeapMemory |
OffHeapMemory.allocateMemoryOnHeap(ByteArrayTool bt,
long bytes)
Allocates memory using byte array
|
Constructor and Description |
---|
OnHeapMemory(ByteArrayTool bt,
long bytes) |
Modifier and Type | Field and Description |
---|---|
private ByteArrayTool |
OffHeapStructArrayList.bt |
private ByteArrayTool |
OffHeapStructComparator.OffHeapStructByteArrayAccessor.bt |
Constructor and Description |
---|
OffHeapStructArray(ByteArrayTool bt,
int size,
int structLength)
Constructor, uses
OnHeapMemory underneath
effectively making this instance an OnHeap collection |
OffHeapStructArrayList(ByteArrayTool bt,
int capacity,
int structLength)
Constructor, uses
OnHeapMemory underneath
effectively making this instance an OnHeap collection |
OffHeapStructComparator.OffHeapStructByteArrayAccessor(ByteArrayTool bt)
Constructor
|
OffHeapStructComparator.OffHeapStructByteArrayAccessor(ByteArrayTool bt,
byte[] struct)
Constructor
|
Copyright © 2014. All Rights Reserved.