MCPcopy Create free account
hub / github.com/aardappel/treesheets / LoadByteCode

Function LoadByteCode

lobster/src/compiler.cpp:227–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

225}
226
227bool LoadByteCode(string &bytecode) {
228 if (LoadFile(bcname, &bytecode) < 0) return false;
229 flatbuffers::Verifier verifier((const uchar *)bytecode.c_str(), bytecode.length());
230 auto ok = bytecode::VerifyBytecodeFileBuffer(verifier);
231 assert(ok);
232 return ok;
233}
234
235void RegisterBuiltin(NativeRegistry &nfr, const char *name,
236 void (* regfun)(NativeRegistry &)) {

Callers 1

mainFunction · 0.85

Calls 4

VerifyBytecodeFileBufferFunction · 0.85
lengthMethod · 0.80
LoadFileFunction · 0.70
c_strMethod · 0.45

Tested by

no test coverage detected