class compiler::FUtil

sys::Obj
  compiler::FUtil : compiler::FConst

Source

FUtil provides fcode encoding and decoding utilities.

readAttrs

static FAttr[] readAttrs(InStream in)

Source

readBuf

static Buf? readBuf(InStream in)

Source

writeAttrs

static Void writeAttrs(OutStream out, FAttr[]? fattrs)

Source

writeBuf

static Void writeBuf(OutStream? out, Buf? buf)

Source

writeDoc

static Void writeDoc(OutStream out, Str key, Str? doc)

Source

Write a fandoc item to the specified output stream. The fandoc file format is an extremely simple plan text format with left justified type/slot qnames, followed by the fandoc content indented two spaces.