public final class FunctionTable extends Object implements RuntimeTable<CodeArray>
Modifier and Type | Field and Description |
---|---|
private CodeArray[] |
data
The backing data used during boot image writing.
|
Modifier | Constructor and Description |
---|---|
private |
FunctionTable(int size)
Private constructor.
|
Modifier and Type | Method and Description |
---|---|
static FunctionTable |
allocate(int size)
Create a new ITable of the specified size.
|
CodeArray |
get(int index)
Get an ITable entry.
|
CodeArray[] |
getBacking()
Only called at boot image write time.
|
int |
length()
Return the length of the ITable
|
void |
set(int index,
CodeArray value)
Set an ITable entry.
|
private FunctionTable(int size)
size
- size of the function tablepublic static FunctionTable allocate(int size)
size
- The size of the ITablepublic CodeArray[] getBacking()
RuntimeTable
getBacking
in interface RuntimeTable<CodeArray>
public CodeArray get(int index)
get
in interface RuntimeTable<CodeArray>
index
- The index of the entry to getpublic void set(int index, CodeArray value)
set
in interface RuntimeTable<CodeArray>
index
- The index of the entry to setvalue
- The value to set the entry to.public int length()
length
in interface RuntimeTable<CodeArray>