Home
last modified time | relevance | path

Searched refs:fwrite (Results 1 – 25 of 543) sorted by relevance

12345678910>>...22

/third_party/ffmpeg/tools/
Dsofa2wavs.c70 fwrite("RIFF", 4, 1, file); in main()
71 fwrite("\xFF\xFF\xFF\xFF", 4, 1, file); in main()
72 fwrite("WAVE", 4, 1, file); in main()
73 fwrite("fmt ", 4, 1, file); in main()
74 fwrite("\x10\x00\00\00", 4, 1, file); in main()
75 fwrite("\x03\x00", 2, 1, file); in main()
76 fwrite("\x02\x00", 2, 1, file); in main()
77 fwrite(&sample_rate, 4, 1, file); in main()
78 fwrite(&bytespersec, 4, 1, file); in main()
79 fwrite(&blkalign, 2, 1, file); in main()
[all …]
/third_party/protobuf/php/ext/google/protobuf/
Dmake-preload.php31 fwrite($f, "#include \"bundled_php.h\"\n");
32 fwrite($f, "#include \"stdlib.h\"\n");
39 fwrite($f, "static const char {$c_symbol_name}[] = {");
42 fwrite($f, "\n");
46 fwrite($f, "0};\n");
49 fwrite($f, "static BundledPhp_File php[] = {\n");
53 fwrite($f, " {\"$class_name\", $c_symbol_name},\n");
56 fwrite($f, " {NULL, NULL}\n");
57 fwrite($f, "};\n");
58 fwrite($f, "BundledPhp_File *bundled_files = &php[0];\n");
/third_party/selinux/libselinux/utils/
Dsefcontext_compile.c115 len = fwrite(&magic, sizeof(uint32_t), 1, bin_file); in write_binary_file()
121 len = fwrite(&section_len, sizeof(uint32_t), 1, bin_file); in write_binary_file()
130 len = fwrite(&section_len, sizeof(uint32_t), 1, bin_file); in write_binary_file()
133 len = fwrite(reg_version, sizeof(char), section_len, bin_file); in write_binary_file()
142 len = fwrite(&section_len, sizeof(uint32_t), 1, bin_file); in write_binary_file()
145 len = fwrite(reg_arch, sizeof(char), section_len, bin_file); in write_binary_file()
151 len = fwrite(&section_len, sizeof(uint32_t), 1, bin_file); in write_binary_file()
160 len = fwrite(&stem_len, sizeof(uint32_t), 1, bin_file); in write_binary_file()
166 len = fwrite(stem, sizeof(char), stem_len, bin_file); in write_binary_file()
173 len = fwrite(&section_len, sizeof(uint32_t), 1, bin_file); in write_binary_file()
[all …]
/third_party/flutter/skia/third_party/externals/zlib/contrib/minizip/
Dmztools.c67 if (fwrite(header, 1, 30, fpOut) == 30) {
78 if (fwrite(filename, 1, fnsize, fpOut) == fnsize) {
101 if (fwrite(extra, 1, extsize, fpOut) == extsize) {
127 if ((int)fwrite(data, 1, dataSize, fpOut) == dataSize) {
170 if (fwrite(header, 1, 46, fpOutCD) == 46) {
175 if (fwrite(filename, 1, fnsize, fpOutCD) == fnsize) {
188 if (fwrite(extra, 1, extsize, fpOutCD) == extsize) {
198 if ((int)fwrite(comment, 1, comsize, fpOutCD) == comsize) {
240 if (fwrite(header, 1, 22, fpOutCD) == 22) {
244 if ((int)fwrite(comment, 1, comsize, fpOutCD) != comsize) {
[all …]
/third_party/zlib/contrib/minizip/
Dmztools.c67 if (fwrite(header, 1, 30, fpOut) == 30) {
78 if (fwrite(filename, 1, fnsize, fpOut) == fnsize) {
101 if (fwrite(extra, 1, extsize, fpOut) == extsize) {
127 if ((int)fwrite(data, 1, dataSize, fpOut) == dataSize) {
170 if (fwrite(header, 1, 46, fpOutCD) == 46) {
175 if (fwrite(filename, 1, fnsize, fpOutCD) == fnsize) {
188 if (fwrite(extra, 1, extsize, fpOutCD) == extsize) {
198 if ((int)fwrite(comment, 1, comsize, fpOutCD) == comsize) {
240 if (fwrite(header, 1, 22, fpOutCD) == 22) {
244 if ((int)fwrite(comment, 1, comsize, fpOutCD) != comsize) {
[all …]
/third_party/skia/third_party/externals/zlib/contrib/minizip/
Dmztools.c67 if (fwrite(header, 1, 30, fpOut) == 30) {
78 if (fwrite(filename, 1, fnsize, fpOut) == fnsize) {
101 if (fwrite(extra, 1, extsize, fpOut) == extsize) {
127 if ((int)fwrite(data, 1, dataSize, fpOut) == dataSize) {
170 if (fwrite(header, 1, 46, fpOutCD) == 46) {
175 if (fwrite(filename, 1, fnsize, fpOutCD) == fnsize) {
188 if (fwrite(extra, 1, extsize, fpOutCD) == extsize) {
198 if ((int)fwrite(comment, 1, comsize, fpOutCD) == comsize) {
240 if (fwrite(header, 1, 22, fpOutCD) == 22) {
244 if ((int)fwrite(comment, 1, comsize, fpOutCD) != comsize) {
[all …]
/third_party/mesa3d/src/amd/compiler/tests/
Dmain.cpp87 fwrite("test", 1, 4, checker_stdin); in write_test()
88 fwrite(current_test.name, 1, strlen(current_test.name)+1, checker_stdin); in write_test()
89 fwrite(current_variant, 1, strlen(current_variant)+1, checker_stdin); in write_test()
90 fwrite(current_test.source_file, 1, strlen(current_test.source_file)+1, checker_stdin); in write_test()
93 fwrite("\x01", 1, 1, checker_stdin); in write_test()
94 fwrite(res, 1, strlen(res)+1, checker_stdin); in write_test()
95 fwrite(fail_message, 1, strlen(fail_message)+1, checker_stdin); in write_test()
97 fwrite("\x00", 1, 1, checker_stdin); in write_test()
99 fwrite(&size, 4, 1, checker_stdin); in write_test()
100 fwrite(data, 1, size, checker_stdin); in write_test()
/third_party/musl/libc-test/src/functionalext/supplement/stdio/
Dfopen.c44 size_t wrsize = fwrite(wstring, sizeof(char), strlen(wstring), fptr); in fopen_0100()
62 size_t wrsize = fwrite(wrstring, sizeof(char), strlen(wrstring), fptr); in fopen_0100()
100 size_t wrsize = fwrite(wrstring, sizeof(char), strlen(wrstring), fptr); in fopen_0300()
131 size_t wrsize = fwrite(wrstring, sizeof(char), strlen(wrstring), fptr); in fopen_0400()
163 size_t wrsize = fwrite(wstring, sizeof(char), strlen(wstring), fptr); in fopen_0500()
175 size_t wrsize = fwrite(wrstring, sizeof(char), strlen(wrstring), fptr); in fopen_0500()
217 size_t wrsize = fwrite(wrstring, sizeof(char), strlen(wrstring), fptr); in fopen_0600()
278 size_t wrsize = fwrite(wstring, sizeof(char), strlen(wstring), fptr); in fopen_0900()
290 size_t wrsize = fwrite(wrstring, sizeof(char), strlen(wrstring), fptr); in fopen_0900()
Dfseeko.c35 size_t ret = fwrite(wrstring, sizeof(char), strlen(wrstring), fp); in fseeko_0100()
65 size_t ret = fwrite(wrstring, sizeof(char), strlen(wrstring), fp); in fseeko_0200()
95 size_t ret = fwrite(wrstring, sizeof(char), strlen(wrstring), fp); in fseeko_0300()
131 size_t ret = fwrite(wrstring, sizeof(char), strlen(wrstring), fp); in fseeko_0400()
161 size_t ret = fwrite(wrstring, sizeof(char), strlen(wrstring), fp); in fseeko_0500()
187 size_t ret = fwrite(wrstring, sizeof(char), strlen(wrstring), fp); in fseeko_0600()
Dfgets.c31 fwrite(wrstring, sizeof(char), strlen(wrstring), fptr); in fgets_0100()
58 fwrite(wrstring, sizeof(char), strlen(wrstring), fptr); in fgets_0200()
84 fwrite(wrstring, sizeof(char), strlen(wrstring), fptr); in fgets_0300()
110 fwrite(wrstring, sizeof(char), strlen(wrstring), fptr); in fgets_0400()
136 fwrite(wrstring, sizeof(char), strlen(wrstring), fptr); in fgets_0500()
162 fwrite(wrstring, sizeof(char), strlen(wrstring), fptr); in fgets_0600()
Dfsetpos.c39 fwrite(wstring, sizeof(char), strlen(wstring), fptr); in fsetpos_0100()
64 fwrite(wstring, sizeof(char), strlen(wstring), fptr); in fsetpos_0200()
90 fwrite(wstring, sizeof(char), strlen(wstring), fptr); in fsetpos_0300()
116 fwrite(wrstring, sizeof(char), strlen(wrstring), fptr); in fsetpos_0400()
Dfread.c39 fwrite(wrstring, sizeof(char), strlen(wrstring), fptr); in fread_0100()
64 fwrite(wrstring, sizeof(char), strlen(wrstring), fptr); in fread_0200()
89 fwrite(wrstring, sizeof(char), strlen(wrstring), fptr); in fread_0300()
111 fwrite(wrstring, sizeof(char), strlen(wrstring), fptr); in fread_0400()
Dfwrite.c34 int result = fwrite(buf, sizeof(char), strlen(buf), fptr); in fwrite_0100()
52 int result = fwrite(buf, 0, strlen(buf), fptr); in fwrite_0200()
70 int result = fwrite(buf, sizeof(char), 0, fptr); in fwrite_0300()
Dftell.c36 size_t ret = fwrite(wrstring, sizeof(char), strlen(wrstring), fptr); in ftell_0100()
67 size_t ret = fwrite(wrstring, sizeof(char), strlen(wrstring), fptr); in ftell_0200()
98 size_t ret = fwrite(wrstring, sizeof(char), strlen(wrstring), fptr); in ftell_0300()
/third_party/ninja/src/
Ddeps_log.cc117 if (fwrite(&size, 4, 1, file_) < 1) in RecordDeps()
120 if (fwrite(&id, 4, 1, file_) < 1) in RecordDeps()
123 if (fwrite(&mtime_part, 4, 1, file_) < 1) in RecordDeps()
126 if (fwrite(&mtime_part, 4, 1, file_) < 1) in RecordDeps()
130 if (fwrite(&id, 4, 1, file_) < 1) in RecordDeps()
398 if (fwrite(&size, 4, 1, file_) < 1) in RecordId()
400 if (fwrite(node->path().data(), path_size, 1, file_) < 1) { in RecordId()
404 if (padding && fwrite("\0\0", padding, 1, file_) < 1) in RecordId()
408 if (fwrite(&checksum, 4, 1, file_) < 1) in RecordId()
439 if (fwrite(kFileSignature, sizeof(kFileSignature) - 1, 1, file_) < 1) { in OpenForWriteIfNeeded()
[all …]
/third_party/skia/third_party/externals/libwebp/imageio/
Dimage_enc.c241 if (fwrite(row, width, bytes_per_px, fout) != bytes_per_px) { in WritePPMPAM()
274 if (fwrite(rgba, width, bytes_per_px, fout) != bytes_per_px) { in WebPWrite16bAsPGM()
332 if (fwrite(bmp_header, sizeof(bmp_header), 1, fout) != 1) { in WebPWriteBMP()
338 if (fwrite(rgba, line_size, 1, fout) != 1) { in WebPWriteBMP()
344 if (fwrite(zeroes, bmp_stride - line_size, 1, fout) != 1) { in WebPWriteBMP()
418 if (fwrite(tiff_header, sizeof(tiff_header), 1, fout) != 1) { in WebPWriteTIFF()
423 if (fwrite(rgba, bytes_per_px, width, fout) != width) { in WebPWriteTIFF()
454 if (fwrite(a, width, 1, fout) != 1) return 0; in WebPWriteAlphaPlane()
486 ok &= (fwrite(src_y, width, 1, fout) == 1); in WebPWritePGM()
491 ok &= (fwrite(src_u, uv_width, 1, fout) == 1); in WebPWritePGM()
[all …]
/third_party/flutter/skia/third_party/externals/libwebp/imageio/
Dimage_enc.c241 if (fwrite(row, width, bytes_per_px, fout) != bytes_per_px) { in WritePPMPAM()
274 if (fwrite(rgba, width, bytes_per_px, fout) != bytes_per_px) { in WebPWrite16bAsPGM()
332 if (fwrite(bmp_header, sizeof(bmp_header), 1, fout) != 1) { in WebPWriteBMP()
338 if (fwrite(rgba, line_size, 1, fout) != 1) { in WebPWriteBMP()
344 if (fwrite(zeroes, bmp_stride - line_size, 1, fout) != 1) { in WebPWriteBMP()
418 if (fwrite(tiff_header, sizeof(tiff_header), 1, fout) != 1) { in WebPWriteTIFF()
423 if (fwrite(rgba, bytes_per_px, width, fout) != width) { in WebPWriteTIFF()
454 if (fwrite(a, width, 1, fout) != 1) return 0; in WebPWriteAlphaPlane()
486 ok &= (fwrite(src_y, width, 1, fout) == 1); in WebPWritePGM()
491 ok &= (fwrite(src_u, uv_width, 1, fout) == 1); in WebPWritePGM()
[all …]
/third_party/musl/libc-test/src/functionalext/supplement/mman/
Dmmap.c44 fwrite(str, sizeof(char), strlen(str), fptr); in mmap_0100()
82 fwrite(str, sizeof(char), strlen(str), fptr); in mmap_0200()
136 fwrite(str, sizeof(char), strlen(str), fptr); in mmap_0400()
173 fwrite(str, sizeof(char), strlen(str), fptr); in mmap_0500()
211 fwrite(str, sizeof(char), strlen(str), fptr); in mmap_0600()
246 fwrite(str, sizeof(char), strlen(str), fptr); in mmap_0700()
280 fwrite(str, sizeof(char), strlen(str), fptr); in mmap_0800()
311 fwrite(str, sizeof(char), strlen(str), fptr); in mmap_0900()
345 fwrite(str, sizeof(char), strlen(str), fptr); in mmap_1000()
381 fwrite(str, sizeof(char), strlen(str), fptr); in mmap_1100()
/third_party/skia/tools/
Dconvert-to-nia.cpp64 fwrite(data, 1, 16, stdout); in write_nix_header()
78 fwrite(data, 1, 8, stdout); in write_nia_duration()
94 fwrite(buf, 1, n, stdout); in write_nie_pixels()
100 fwrite(buf, 1, n, stdout); in write_nie_pixels()
109 fwrite(data, 1, 4, stdout); in write_nia_padding()
123 fwrite(data, 1, 8, stdout); in write_nia_footer()
/third_party/mesa3d/src/amd/common/
Dac_rgp.c959 fwrite(&timestamp, sizeof(timestamp), 1, output); in ac_sqtt_dump_spm()
976 fwrite(&cntr_info, sizeof(cntr_info), 1, output); in ac_sqtt_dump_spm()
993 fwrite(&value, sizeof(value), 1, output); in ac_sqtt_dump_spm()
1001 fwrite(&spm_db, sizeof(struct sqtt_file_chunk_spm_db), 1, output); in ac_sqtt_dump_spm()
1030 fwrite(&header, sizeof(header), 1, output); in ac_sqtt_dump_data()
1035 fwrite(&cpu_info, sizeof(cpu_info), 1, output); in ac_sqtt_dump_data()
1040 fwrite(&asic_info, sizeof(asic_info), 1, output); in ac_sqtt_dump_data()
1045 fwrite(&api_info, sizeof(api_info), 1, output); in ac_sqtt_dump_data()
1066 fwrite(&code_object_record, sizeof(struct sqtt_code_object_database_record), in ac_sqtt_dump_data()
1076 fwrite(&code_object, sizeof(struct sqtt_file_chunk_code_object_database), 1, output); in ac_sqtt_dump_data()
[all …]
Dac_rgp_elf_object_pack.c188 fwrite(msgpack.mem, 1, msgpack.offset, output); in ac_rgp_write_msgpack()
257 fwrite(rgp_shader_data->code, 1, rgp_shader_data->code_size, output); in ac_rgp_file_write_elf_text()
333 fwrite(&elf_sym, 1, sizeof(elf_sym), output); in ac_rgp_file_write_elf_symbol_table()
347 fwrite(&elf_sym, 1, sizeof(elf_sym), output); in ac_rgp_file_write_elf_symbol_table()
409 fwrite(&rgp_elf_strtab, 1, sizeof(rgp_elf_strtab), output); in ac_rgp_file_write_elf_object()
430 fwrite(&note_hdr, 1, sizeof(struct ac_rgp_elf_note_msgpack_hdr), output); in ac_rgp_file_write_elf_object()
468 fwrite(&sec_hdr, 1, sizeof(Elf64_Shdr) * 5, output); in ac_rgp_file_write_elf_object()
476 fwrite(&elf_hdr, 1, sizeof(Elf64_Ehdr), output); in ac_rgp_file_write_elf_object()
/third_party/mesa3d/src/gallium/auxiliary/util/
Du_debug_image.c84 fwrite(rgb8, 1, height * width * 3, f); in debug_dump_image()
270 fwrite(&bmfh, 14, 1, stream); in debug_dump_float_rgba_bmp()
271 fwrite(&bmih, 40, 1, stream); in debug_dump_float_rgba_bmp()
282 fwrite(&pixel, 1, 4, stream); in debug_dump_float_rgba_bmp()
328 fwrite(&bmfh, 14, 1, stream); in debug_dump_ubyte_rgba_bmp()
329 fwrite(&bmih, 40, 1, stream); in debug_dump_ubyte_rgba_bmp()
340 fwrite(&pixel, 1, 4, stream); in debug_dump_ubyte_rgba_bmp()
/third_party/ffmpeg/tests/
Dutils.c127 err_if(fwrite(lum_tab, 1, w * h, f) != w * h); in pgmyuv_save()
135 err_if(fwrite(cb, 1, w2, f) != w2); in pgmyuv_save()
136 err_if(fwrite(cr, 1, w2, f) != w2); in pgmyuv_save()
143 err_if(fwrite(cb, 1, w2, f) != w2); in pgmyuv_save()
147 err_if(fwrite(cr, 1, w2, f) != w2); in pgmyuv_save()
/third_party/libexif/test/
Dtest-extract.c76 if (fwrite(header, 1, sizeof(header), f) != sizeof(header)) { in main()
86 if (fwrite(lenbuf, 1, 2, f) != 2) { in main()
90 if (fwrite(buf, 1, len, f) != len) { in main()
/third_party/mesa3d/src/util/
Dfossilize_db.c237 if (fwrite(stream_reference_magic_and_version, 1, in load_foz_dbs()
242 if (fwrite(stream_reference_magic_and_version, 1, in load_foz_dbs()
479 if (fwrite(hash_str, 1, FOSSILIZE_BLOB_HASH_LENGTH, foz_db->file[0]) != in foz_write_entry()
486 if (fwrite(&header, 1, sizeof(header), foz_db->file[0]) != sizeof(header)) in foz_write_entry()
490 if (fwrite(blob, 1, blob_size, foz_db->file[0]) != blob_size) in foz_write_entry()
497 if (fwrite(hash_str, 1, FOSSILIZE_BLOB_HASH_LENGTH, foz_db->db_idx) != in foz_write_entry()
506 if (fwrite(&header, 1, sizeof(header), foz_db->db_idx) != in foz_write_entry()
510 if (fwrite(&offset, 1, sizeof(uint64_t), foz_db->db_idx) != in foz_write_entry()

12345678910>>...22