Home
last modified time | relevance | path

Searched refs:mem_file (Results 1 – 7 of 7) sorted by relevance

/external/tflite-support/tensorflow_lite_support/metadata/cc/utils/
Dzip_readonly_mem_file.cc53 auto* mem_file = static_cast<ZipReadOnlyMemFile*>(opaque); in ReadFile() local
54 if (mem_file->offset_ < 0 || mem_file->Size() < mem_file->offset_) { in ReadFile()
57 if (mem_file->offset_ + size > mem_file->Size()) { in ReadFile()
58 size = mem_file->Size() - mem_file->offset_; in ReadFile()
61 static_cast<const char*>(mem_file->data_.data()) + mem_file->offset_, in ReadFile()
63 mem_file->offset_ += size; in ReadFile()
82 auto* mem_file = static_cast<ZipReadOnlyMemFile*>(opaque); in SeekFile() local
85 mem_file->offset_ = offset; in SeekFile()
88 if (mem_file->offset_ + offset < 0 || in SeekFile()
89 mem_file->offset_ + offset > mem_file->Size()) { in SeekFile()
[all …]
/external/chromium-trace/catapult/devil/devil/android/
Dmd5sum.py52 mem_file = io.BytesIO()
53 compressed = gzip.GzipFile(fileobj=mem_file, mode="wb")
60 compressed_paths = base64.b64encode(mem_file.getvalue())
106 mem_file = io.BytesIO()
107 compressed = gzip.GzipFile(fileobj=mem_file, mode="wb")
113 compressed_paths = base64.b64encode(mem_file.getvalue())
/external/e2fsprogs/misc/
De2initrd_helper.c49 struct mem_file { struct
74 struct mem_file *ret_file) in get_file() argument
127 static char *get_line(struct mem_file *file) in get_line()
150 static int mem_file_eof(struct mem_file *file) in mem_file_eof()
340 struct mem_file file; in get_root_type()
/external/fsverity-utils/programs/
Dtest_compute_digest.c18 struct mem_file { struct
26 struct mem_file *f = fd; in read_fn() argument
192 struct mem_file f = { .data = (u8 *)"abcd", .size = 4 }; in test_invalid_params()
388 struct mem_file f = {}; in main()
/external/crosvm/devices/src/
Dlib.rs348 let mut mem_file = File::create(&mem_path) in snapshot_handler() localVariable
352 .snapshot(&mut mem_file) in snapshot_handler()
375 let mut mem_file = in restore_handler() localVariable
388 guest_memory.restore(snapshot_root.guest_memory_metadata, &mut mem_file)?; in restore_handler()
/external/tflite-support/tensorflow_lite_support/metadata/cc/
Dmetadata_extractor.cc239 ZipReadOnlyMemFile mem_file = ZipReadOnlyMemFile(buffer_data, buffer_size); in ExtractAssociatedFiles() local
241 unzFile zf = unzOpen2_64(/*path=*/nullptr, &mem_file.GetFileFunc64Def()); in ExtractAssociatedFiles()
/external/perfetto/src/profiling/memory/
Dheapprofd_producer.cc874 std::string mem_file = in OnDataAvailable() local
876 if (!IsFile(*fds[kHandshakeMem], mem_file.c_str())) { in OnDataAvailable()