Searched refs:mem_file (Results 1 – 7 of 7) sorted by relevance
53 auto* mem_file = static_cast<ZipReadOnlyMemFile*>(opaque); in ReadFile() local54 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() local85 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 …]
52 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())
49 struct mem_file { struct74 struct mem_file *ret_file) in get_file() argument127 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()
18 struct mem_file { struct26 struct mem_file *f = fd; in read_fn() argument192 struct mem_file f = { .data = (u8 *)"abcd", .size = 4 }; in test_invalid_params()388 struct mem_file f = {}; in main()
348 let mut mem_file = File::create(&mem_path) in snapshot_handler() localVariable352 .snapshot(&mut mem_file) in snapshot_handler()375 let mut mem_file = in restore_handler() localVariable388 guest_memory.restore(snapshot_root.guest_memory_metadata, &mut mem_file)?; in restore_handler()
239 ZipReadOnlyMemFile mem_file = ZipReadOnlyMemFile(buffer_data, buffer_size); in ExtractAssociatedFiles() local241 unzFile zf = unzOpen2_64(/*path=*/nullptr, &mem_file.GetFileFunc64Def()); in ExtractAssociatedFiles()
874 std::string mem_file = in OnDataAvailable() local876 if (!IsFile(*fds[kHandshakeMem], mem_file.c_str())) { in OnDataAvailable()