Fan

 

class

compiler::FTable

sys::Obj
  compiler::FTable

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

Slots

addSource

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.

getSource

Obj get(Int index)

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

isEmptySource

Bool isEmpty()

Return if this table is empty

makeSource

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

makeDecimalsSource

static FTable makeDecimals(FPod pod)

makeDurationsSource

static FTable makeDurations(FPod pod)

makeFieldRefsSource

static FTable makeFieldRefs(FPod pod)

makeFloatsSource

static FTable makeFloats(FPod pod)

makeIntsSource

static FTable makeInts(FPod pod)

makeMethodRefsSource

static FTable makeMethodRefs(FPod pod)

makeStrsSource

static FTable makeStrs(FPod pod)

makeSymbolRefsSource

static FTable makeSymbolRefs(FPod pod)

makeTypeRefsSource

static FTable makeTypeRefs(FPod pod)

podSource

FPod pod

readSource

FTable read(InStream? in)

Serialize.

readerSource

|InStream -> Obj| reader

reverseSource

Obj:Int reverse

tableSource

Obj[] table

writeSource

Void write(OutStream out)

Deserialize.

writerSource

|OutStream, Obj| writer