Lines Matching refs:file_content_
647 if (!ReadFile(filename, &file_content_)) { in Initialize()
658 int err = OpenArchiveFromMemory(const_cast<uint8_t*>(file_content_.data()), zipfile_size, in Initialize()
718 CHECK_LT(entries_end, file_content_.size()); in InitializeChunks()
719 chunks_.emplace_back(CHUNK_NORMAL, entries_end, &file_content_, in InitializeChunks()
720 file_content_.size() - entries_end); in InitializeChunks()
729 while (pos < file_content_.size()) { in InitializeChunks()
749 raw_data_len = file_content_.size() - pos; in InitializeChunks()
751 chunks_.emplace_back(CHUNK_NORMAL, pos, &file_content_, raw_data_len); in InitializeChunks()
770 chunks_.emplace_back(CHUNK_NORMAL, entry->offset + limit_ * count, &file_content_, length, in AddZipEntryToChunks()
785 ImageChunk curr(CHUNK_DEFLATE, entry->offset, &file_content_, compressed_len, entry_name); in AddZipEntryToChunks()
789 chunks_.emplace_back(CHUNK_NORMAL, entry->offset, &file_content_, compressed_len, entry_name); in AddZipEntryToChunks()
802 if (file_content_.size() < 22) { in GetZipFileSize()
809 for (int i = file_content_.size() - 22; i >= 0; i--) { in GetZipFileSize()
810 if (file_content_[i] == 0x50) { in GetZipFileSize()
811 if (get_unaligned<uint32_t>(&file_content_[i]) == 0x06054b50) { in GetZipFileSize()
813 CHECK_EQ(get_unaligned<uint16_t>(&file_content_[i + 4]), 0); in GetZipFileSize()
815 uint16_t comment_length = get_unaligned<uint16_t>(&file_content_[i + 20]); in GetZipFileSize()
817 CHECK_LE(file_size, file_content_.size()); in GetZipFileSize()
830 return ImageChunk(CHUNK_NORMAL, 0, &file_content_, file_content_.size()); in PseudoSource()
928 split_tgt_chunks.emplace_back(CHUNK_NORMAL, tgt->GetStartOffset(), &tgt_image.file_content_, in SplitZipModeImageWithLimit()
942 split_tgt_chunks.emplace_back(CHUNK_NORMAL, tgt->GetStartOffset(), &tgt_image.file_content_, in SplitZipModeImageWithLimit()
953 split_tgt_chunks.emplace_back(CHUNK_NORMAL, tgt->GetStartOffset(), &tgt_image.file_content_, in SplitZipModeImageWithLimit()
986 tgt_image.file_content_.size()); in SplitZipModeImageWithLimit()
1010 aligned_tgt_chunks.emplace_back(CHUNK_NORMAL, tgt_start, &tgt_image.file_content_, in AddSplitImageFromChunkList()
1030 if (end_offset % BLOCK_SIZE != 0 && end_offset < tgt_image.file_content_.size()) { in AddSplitImageFromChunkList()
1031 size_t tail_block_length = std::min<size_t>(tgt_image.file_content_.size() - end_offset, in AddSplitImageFromChunkList()
1033 aligned_tgt_chunks.emplace_back(CHUNK_NORMAL, end_offset, &tgt_image.file_content_, in AddSplitImageFromChunkList()
1044 size_t end = std::min(src_image.file_content_.size(), r.second * BLOCK_SIZE); in AddSplitImageFromChunkList()
1045 src_content.insert(src_content.end(), src_image.file_content_.begin() + r.first * BLOCK_SIZE, in AddSplitImageFromChunkList()
1046 src_image.file_content_.begin() + end); in AddSplitImageFromChunkList()
1246 if (!ReadFile(filename, &file_content_)) { in Initialize()
1250 size_t sz = file_content_.size(); in Initialize()
1254 if (sz - pos >= 4 && get_unaligned<uint32_t>(file_content_.data() + pos) == 0x00088b1f) { in Initialize()
1260 chunks_.emplace_back(CHUNK_NORMAL, pos, &file_content_, sz - pos); in Initialize()
1266 chunks_.emplace_back(CHUNK_NORMAL, pos, &file_content_, GZIP_HEADER_LEN); in Initialize()
1277 strm.next_in = file_content_.data() + pos; in Initialize()
1320 size_t footer_size = get_unaligned<uint32_t>(file_content_.data() + footer_index); in Initialize()
1327 ImageChunk body(CHUNK_DEFLATE, pos, &file_content_, raw_data_len); in Initialize()
1335 chunks_.emplace_back(CHUNK_NORMAL, pos, &file_content_, GZIP_FOOTER_LEN); in Initialize()
1346 get_unaligned<uint32_t>(file_content_.data() + pos + data_len) == 0x00088b1f) { in Initialize()
1351 chunks_.emplace_back(CHUNK_NORMAL, pos, &file_content_, data_len); in Initialize()