| 39 | } |
| 40 | |
| 41 | void 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 | |
| 50 | void FlatCompiler::Warn(const std::string &warn, bool show_exe_name) const { |
| 51 | params_.warn_fn(this, warn, show_exe_name); |
nothing calls this directly
no test coverage detected