public final class Allocation extends Object
The allocation's length is obtained by calling Allocator.getIndividualAllocationLength()
on the Allocator
from which it was obtained.
Modifier and Type | Field and Description |
---|---|
byte[] |
data
The array containing the allocated space.
|
Constructor and Description |
---|
Allocation(byte[] data,
int offset) |
Modifier and Type | Method and Description |
---|---|
int |
translateOffset(int offset)
Translates a zero-based offset into the allocation to the corresponding
data offset. |
public final byte[] data
translateOffset(int)
method must be used when indexing into it.