Home
last modified time | relevance | path

Searched refs:file_length (Results 1 – 25 of 27) sorted by relevance

12

/external/pdfium/testing/utils/
Dfile_util.cpp20 size_t file_length = ftell(file); in GetFileContents() local
21 if (!file_length) { in GetFileContents()
26 static_cast<char*>(malloc(file_length))); in GetFileContents()
30 size_t bytes_read = fread(buffer.get(), 1, file_length, file); in GetFileContents()
32 if (bytes_read != file_length) { in GetFileContents()
/external/libwebsockets/plugins/
Dprotocol_esp32_lws_ota.c38 long file_length; member
123 pss->file_length = 0; in ota_file_upload_cb()
129 if (pss->file_length + len > pss->part->size) { in ota_file_upload_cb()
134 if ((pss->file_length & ~0xffff) != (pss->last_rep & ~0xffff)) { in ota_file_upload_cb()
136 pss->part->address + pss->file_length); in ota_file_upload_cb()
137 pss->last_rep = pss->file_length; in ota_file_upload_cb()
143 pss->file_length += len; in ota_file_upload_cb()
212 pss->file_length = 0; in callback_esplws_ota()
Dprotocol_post_demo.c41 long file_length; member
90 pss->file_length += len; in file_upload_cb()
93 if (pss->file_length > 100000) in file_upload_cb()
157 pss->filename, pss->file_length); in format_result()
184 pss->file_length = 0; in callback_post_demo()
Dprotocol_esp32_lws_scan.c54 long file_length; member
75 long file_length; member
419 pss->file_length = 0; in file_upload_cb()
426 if (pss->file_length + len > sizeof(pss->buffer)) in file_upload_cb()
429 memcpy(pss->buffer + pss->file_length, buf, len); in file_upload_cb()
431 pss->file_length += len; in file_upload_cb()
441 n = nvs_set_blob(pss->nvh, ssl_names[n], pss->buffer, pss->file_length); in file_upload_cb()
517 vhd->file_length, in callback_esplws_scan()
1032 pss->file_length = 0; in callback_esplws_scan()
1159 vhd->file_length = 0; in callback_esplws_scan()
[all …]
/external/ltp/testcases/kernel/syscalls/ftruncate/
Dftruncate01.c33 int i, file_length; in check_and_report() local
40 file_length = stat_buf.st_size; in check_and_report()
42 if (file_length != trunc_len) { in check_and_report()
44 file_length); in check_and_report()
/external/ltp/testcases/kernel/syscalls/truncate/
Dtruncate01.c98 off_t file_length; /* test file length */ in main() local
130 file_length = stat_buf.st_size; in main()
136 if (file_length != TRUNC_LEN) { in main()
140 (int64_t) file_length, in main()
/external/dynamic_depth/internal/dynamic_depth/
Ddynamic_depth.cc97 size_t file_length = 0; in GetItemPayload() local
105 file_length = item->GetLength(); in GetItemPayload()
113 if (file_length == 0) { in GetItemPayload()
131 ParseFileAfterImageFromStream(file_offset, file_length, input_jpeg_stream, in GetItemPayload()
/external/rust/crates/zip/src/
Dspec.rs54 let file_length = reader.seek(io::SeekFrom::End(0))?; in find_and_parse() localVariable
56 let search_upper_bound = file_length.saturating_sub(HEADER_SIZE + ::std::u16::MAX as u64); in find_and_parse()
58 if file_length < HEADER_SIZE { in find_and_parse()
62 let mut pos = file_length - HEADER_SIZE; in find_and_parse()
/external/libwebsockets/minimal-examples/http-server/minimal-http-server-form-post-file/
Dminimal-http-server-form-post-file.c31 unsigned long long file_length; /* the amount of bytes uploaded */ member
72 pss->file_length += len; in file_upload_cb()
86 pss->file_length, pss->filename); in file_upload_cb()
/external/e2fsprogs/ext2ed/
Dfile_com.c39 file_info.file_length=ptr->i_size; in init_file_info()
267 if (file_info.file_offset+offset>file_info.file_length-1) break; in file_show_hex()
271 if (file_info.file_offset+offset+i>file_info.file_length-1) { in file_show_hex()
291 if (file_info.file_offset+offset+i>file_info.file_length-1) break; in file_show_hex()
332 if (file_info.file_offset+last_offset > file_info.file_length-1) in file_show_text()
333 last_offset=file_info.file_length-1-file_info.file_offset; in file_show_text()
388 wprintw (show_win,"File Offset %ld of %ld.",file_info.file_offset,file_info.file_length-1); in show_status()
Ddir_com.c68 info_ptr->file_length=ptr->i_size; in init_dir_info()
109 while (info.file_offset < info.file_length) { /* While we haven't reached the end */ in search_dir_entries()
127 if (info.file_offset >= info.file_length) break; in search_dir_entries()
530 wprintw (show_win,"Directory Offset %ld of %ld. ",file_info.file_offset,file_info.file_length-1); in show_dir_status()
/external/toolchain-utils/bestflags/
Dtask.py270 (checksum, cost, image, file_length, text_length) = out.split()
288 self._file_length = file_length
339 def __SetBuildResult(self, (checksum, build_cost, image, file_length, argument
344 self._file_length = file_length
/external/ltp/testcases/kernel/fs/inode/
Dinode02.c85 int max_depth, max_breadth, file_length; variable
140 file_length = 8; in main()
153 if (sscanf(argv[i++], "%d", &file_length) != 1) in main()
468 for (j = 1; j <= file_length; j++) { in generate()
620 for (j = 1; j <= file_length; j++) { in check()
/external/tensorflow/tensorflow/core/util/
Dmemmapped_file_system_test.cc155 uint64 file_length = 0; in TEST() local
156 TF_EXPECT_OK(memmapped_env.GetFileSize(filename, &file_length)); in TEST()
157 EXPECT_EQ(test_string.length(), file_length); in TEST()
/external/pdfium/fpdfsdk/
Dfpdf_dataavail_embeddertest.cpp92 size_t file_length() const { return file_length_; } in file_length() function in __anon3e1afc4b0111::TestAsyncLoader
302 ByteString data(loader.file_contents(), loader.file_length()); in TEST_F()
329 ByteString data(loader.file_contents(), loader.file_length()); in TEST_F()
355 ByteString data(loader.file_contents(), loader.file_length()); in TEST_F()
/external/image_io/src/gcontainer/
Dgcontainer.cc131 size_t file_start_offset, size_t file_length, in ParseFileAfterImage() argument
137 return ParseFileAfterImageFromStream(file_start_offset, file_length, in ParseFileAfterImage()
/external/image_io/includes/image_io/gcontainer/
Dgcontainer.h30 size_t file_start_offset, size_t file_length,
/external/libwebsockets/plugins/deaddrop/
Dprotocol_lws_deaddrop.c78 unsigned long long file_length; member
303 pss->file_length += len; in file_upload_cb()
306 if (pss->file_length > pss->vhd->max_size) { in file_upload_cb()
570 pss->file_length = 0; in callback_deaddrop()
/external/tensorflow/tensorflow/core/platform/s3/
Ds3_file_system.cc913 uint64 file_length; in CopyFile() local
915 nullptr, &file_length)); in CopyFile()
917 if (file_length <= in CopyFile()
922 ceil((float)file_length / in CopyFile()
940 file_length); in CopyFile()
964 const uint64 file_length) { in MultiPartCopy() argument
1015 if (endPos >= file_length) { in MultiPartCopy()
1016 endPos = file_length - 1; in MultiPartCopy()
Ds3_file_system.h135 const uint64 file_length);
/external/libchrome/base/metrics/
Dpersistent_memory_allocator_unittest.cc962 for (size_t file_length : {a2_used, a1_used, a1_used / 2}) { in TEST_F()
963 SCOPED_TRACE(StringPrintf("file_length=%zu", file_length)); in TEST_F()
964 SetFileLength(file_path, file_length); in TEST_F()
984 EXPECT_EQ(file_length >= a1_used ? a1_ref : 0U, iter.GetNext(&type_id)); in TEST_F()
985 EXPECT_EQ(file_length >= a2_used ? a2_ref : 0U, iter.GetNext(&type_id)); in TEST_F()
989 EXPECT_EQ(file_length < a2_used, allocator.IsCorrupt()); in TEST_F()
995 EXPECT_EQ(file_length, static_cast<size_t>(actual_length)); in TEST_F()
/external/angle/third_party/zlib/google/
Dzip_reader.h259 int64_t file_length() { return file_length_; } in file_length() function
/external/zlib/google/
Dzip_reader.h259 int64_t file_length() { return file_length_; } in file_length() function
/external/pdfium/third_party/libopenjpeg20/
Dopenjpeg.c100 OPJ_OFF_T file_length = 0; in opj_get_data_length_from_file() local
103 file_length = (OPJ_OFF_T)OPJ_FTELL(p_file); in opj_get_data_length_from_file()
106 return (OPJ_UINT64)file_length; in opj_get_data_length_from_file()
/external/pdfium/samples/
Dpdfium_test.cc1141 size_t file_length = 0; in main() local
1143 GetFileContents(filename.c_str(), &file_length); in main()
1172 RenderPdf(filename, file_contents.get(), file_length, options, events); in main()

12