logo

class

compiler::FTable

sys::Obj
  compiler::FTable

FTable is a 16-bit indexed lookup table for pod constants.

Slots

add

Int add(Obj val)

Perform a reverse lookup to map a value to it's index (only available at compile time). If the value isn't in the table yet, then add it.

get

Obj get(Int index)

Get the object identified by the specified 16-bit index.

isEmpty

Bool isEmpty()

Return if this table is empty

make

new make(FPod pod, |OutStream, Obj| writter, |InStream -> Obj| reader)

makeDurations

static FTable makeDurations(FPod pod)

makeFieldRefs

static FTable makeFieldRefs(FPod pod)

makeFloats

static FTable makeFloats(FPod pod)

makeInts

static FTable makeInts(FPod pod)

makeMethodRefs

static FTable makeMethodRefs(FPod pod)

makeStrs

static FTable makeStrs(FPod pod)

makeTypeRefs

static FTable makeTypeRefs(FPod pod)

pod

FPod pod

read

FTable read(InStream in)

Serialize.

reader

|InStream -> Obj| reader

reverse

Obj:Int reverse

table

Obj[] table

write

Void write(OutStream out)

Deserialize.

writter

|OutStream, Obj| writter