Lines Matching refs:fp
123 void WriteHeaderFile(FILE* fp, const uint8_t* data, size_t data_len) { in WriteHeaderFile() argument
124 assert(fp != nullptr); in WriteHeaderFile()
146 fp, in WriteHeaderFile()
152 …namespaces.begin(), namespaces.end(), [fp](const std::string& s) { fprintf(fp, "namespace %s {\n",… in WriteHeaderFile()
154 fp, in WriteHeaderFile()
158 for_each(namespaces.crbegin(), namespaces.crend(), [fp](const std::string& s) { in WriteHeaderFile()
159 fprintf(fp, "} // namespace %s\n", s.c_str()); in WriteHeaderFile()
162 fp, in WriteHeaderFile()
168 fprintf(fp, " 0x%02x", data[i]); in WriteHeaderFile()
170 fprintf(fp, ","); in WriteHeaderFile()
173 fprintf(fp, "\n"); in WriteHeaderFile()
176 fprintf(fp, " };\n"); in WriteHeaderFile()
178 fp, in WriteHeaderFile()
184 fprintf(fp, "} // namespace\n"); in WriteHeaderFile()
185 fprintf(fp, "const unsigned char* %s::data = %sdata_;\n", opts.ns_name, namespace_prefix.c_str()); in WriteHeaderFile()
186 fprintf(fp, "const size_t %s::data_size = %zu;\n", opts.ns_name, data_len); in WriteHeaderFile()
188 fp, in WriteHeaderFile()
268 FILE* fp = fopen(header.c_str(), "w+"); in WriteBundledSchema() local
269 if (fp == nullptr) { in WriteBundledSchema()
273 WriteHeaderFile(fp, builder.GetBufferPointer(), builder.GetSize()); in WriteBundledSchema()
274 fclose(fp); in WriteBundledSchema()