MCPcopy Create free account
hub / github.com/aardappel/lobster / LoadMetaDataAndCode

Function LoadMetaDataAndCode

dev/src/compiler.cpp:328–335  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

326}
327
328bool LoadMetaDataAndCode(string &metadata, string &c_codegen) {
329 if (LoadFile(mdname, &metadata) < 0) return false;
330 LoadFile(ccname, &c_codegen);
331 flatbuffers::Verifier verifier((const uint8_t *)metadata.c_str(), metadata.length());
332 auto ok = metadata::VerifyMetadataFileBuffer(verifier);
333 assert(ok);
334 return ok;
335}
336
337void RegisterBuiltin(NativeRegistry &nfr, const char *ns, const char *name,
338 void (* regfun)(NativeRegistry &)) {

Callers 1

main.cppFile · 0.85

Calls 4

VerifyMetadataFileBufferFunction · 0.85
LoadFileFunction · 0.70
c_strMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected