| Modifier and Type | Class and Description |
|---|---|
static class |
Allocation.AllocationFactory
Factory implementation that can create Allocation
objects. |
Storable.Utils| Modifier and Type | Field and Description |
|---|---|
static Factory<Allocation> |
FACTORY
Factory to create
Allocations from byte[]s. |
| Constructor and Description |
|---|
Allocation(long id,
int position,
int size)
Creates a new allocation table entry.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBuffer()
Writes the contents of this
Storable to a byte array. |
long |
getId()
The ID of the object.
|
int |
getPosition()
Returns the block position of the data.
|
int |
getSize()
Returns the size of the data.
|
String |
toString() |
public static final Factory<Allocation> FACTORY
Allocations from byte[]s.public Allocation(long id,
int position,
int size)
id - The ID of the Storableposition - The block position of the datasize - The size of the data (in bytes)public long getId()
public int getPosition()
public int getSize()
public byte[] getBuffer()
Storable to a byte array.Copyright © 2026. All rights reserved.