MCPcopy Create free account
hub / github.com/catboost/catboost / LoadBinarySchema

Method LoadBinarySchema

contrib/libs/flatbuffers/src/flatc.cpp:53–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53void FlatCompiler::LoadBinarySchema(flatbuffers::Parser &parser,
54 const std::string &filename,
55 const std::string &contents) {
56 if (!parser.Deserialize(reinterpret_cast<const uint8_t *>(contents.c_str()),
57 contents.size())) {
58 Error("failed to load binary schema: " + filename, false, false);
59 }
60}
61
62void FlatCompiler::Warn(const std::string &warn, bool show_exe_name) const {
63 params_.warn_fn(this, warn, show_exe_name);

Callers

nothing calls this directly

Calls 4

ErrorFunction · 0.70
DeserializeMethod · 0.45
c_strMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected