MCPcopy Create free account
hub / github.com/bytedance/Fastbot_Android / LoadBinarySchema

Method LoadBinarySchema

native/thirdpart/flatbuffers/flatc.cpp:41–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41void FlatCompiler::LoadBinarySchema(flatbuffers::Parser &parser,
42 const std::string &filename,
43 const std::string &contents) {
44 if (!parser.Deserialize(reinterpret_cast<const uint8_t *>(contents.c_str()),
45 contents.size())) {
46 Error("failed to load binary schema: " + filename, false, false);
47 }
48}
49
50void FlatCompiler::Warn(const std::string &warn, bool show_exe_name) const {
51 params_.warn_fn(this, warn, show_exe_name);

Callers

nothing calls this directly

Calls 4

ErrorFunction · 0.85
DeserializeMethod · 0.45
c_strMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected