void CppiaStackVar::fromStream(CppiaStream &stream) { nameId = stream.getInt(); id = stream.getInt(); capture = stream.getBool(); typeId = stream.getInt(); }
void CppiaVar::load(CppiaStream &stream) { readAccess = getAccess(stream); writeAccess = getAccess(stream); isVirtual = stream.getBool(); nameId = stream.getInt(); typeId = stream.getInt(); if (stream.getInt()) init = createCppiaExpr(stream); }