Lines Matching refs:pos
727 size_t pos = 0; in InitializeChunks() local
729 while (pos < file_content_.size()) { in InitializeChunks()
731 static_cast<off64_t>(pos) == temp_entries[nextentry].second.offset) { in InitializeChunks()
739 pos += temp_entries[nextentry].second.compressed_length; in InitializeChunks()
747 raw_data_len = temp_entries[nextentry].second.offset - pos; 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()
753 pos += raw_data_len; in InitializeChunks()
1252 size_t pos = 0; in Initialize() local
1253 while (pos < sz) { in Initialize()
1255 if (sz - pos >= 4 && get_unaligned<uint32_t>(file_content_.data() + pos) == 0x00088b1f) { in Initialize()
1257 size_t chunk_offset = pos; in Initialize()
1260 if (sz - pos < GZIP_HEADER_LEN + GZIP_FOOTER_LEN) { in Initialize()
1261 chunks_.emplace_back(CHUNK_NORMAL, pos, &file_content_, sz - pos); in Initialize()
1267 chunks_.emplace_back(CHUNK_NORMAL, pos, &file_content_, GZIP_HEADER_LEN); in Initialize()
1268 pos += GZIP_HEADER_LEN; in Initialize()
1277 strm.avail_in = sz - pos; in Initialize()
1278 strm.next_in = file_content_.data() + pos; in Initialize()
1307 raw_data_len = sz - strm.avail_in - pos; in Initialize()
1316 size_t footer_index = pos + raw_data_len + GZIP_FOOTER_LEN - 4; in Initialize()
1328 ImageChunk body(CHUNK_DEFLATE, pos, &file_content_, raw_data_len); in Initialize()
1333 pos += raw_data_len; in Initialize()
1336 chunks_.emplace_back(CHUNK_NORMAL, pos, &file_content_, GZIP_FOOTER_LEN); in Initialize()
1338 pos += GZIP_FOOTER_LEN; in Initialize()
1345 while (data_len + pos < sz) { in Initialize()
1346 if (data_len + pos + 4 <= sz && in Initialize()
1347 get_unaligned<uint32_t>(file_content_.data() + pos + data_len) == 0x00088b1f) { in Initialize()
1352 chunks_.emplace_back(CHUNK_NORMAL, pos, &file_content_, data_len); in Initialize()
1354 pos += data_len; in Initialize()