Lines Matching refs:filename

43 bool LoadBinarySchema(const char* filename, std::string* binary_schema) {  in LoadBinarySchema()  argument
44 assert(filename != nullptr); in LoadBinarySchema()
46 if (!flatbuffers::LoadFile(filename, helper::AsBinaryFile, binary_schema)) { in LoadBinarySchema()
47 fprintf(stderr, "Unable to open binary flatbuffer schema file:%s\n", filename); in LoadBinarySchema()
86 for (auto filename : filenames) { in CreateBinarySchemaBundle() local
88 if (!LoadBinarySchema(filename.c_str(), &string_schema)) { in CreateBinarySchemaBundle()
89 fprintf(stderr, "Unable to load binary schema from filename:%s\n", filename.c_str()); in CreateBinarySchemaBundle()
94 fprintf(stderr, "Failed verification on binary schema filename:%s\n", filename.c_str()); in CreateBinarySchemaBundle()
100 … fprintf(stderr, "Unable to find root table for binary flatbuffer schema:%s\n", filename.c_str()); in CreateBinarySchemaBundle()
195 const char* filename = opts.filename; in ReadBundledSchema() local
196 assert(filename != nullptr); in ReadBundledSchema()
199 if (!flatbuffers::LoadFile(filename, helper::AsBinaryFile, &flatfile_data)) { in ReadBundledSchema()
200 fprintf(stderr, "Unable to load schema data file:%s\n", filename); in ReadBundledSchema()
217 const char* filename = opts.filename; in WriteBundledSchema() local
218 assert(filename != nullptr); in WriteBundledSchema()
259 final_filename.append(filename); in WriteBundledSchema()
267 header += ("/" + std::string(opts.filename) + ".h"); in WriteBundledSchema()
300 opts.filename = optarg; in ParseArgs()