Lines Matching refs:pos
733 size_t pos = 0; in InitializeChunks() local
735 while (pos < file_content_.size()) { in InitializeChunks()
737 static_cast<off64_t>(pos) == temp_entries[nextentry].second.offset) { in InitializeChunks()
749 if (__builtin_add_overflow(pos, temp_entries[nextentry].second.compressed_length, &pos)) { in InitializeChunks()
761 raw_data_len = temp_entries[nextentry].second.offset - pos; in InitializeChunks()
763 raw_data_len = file_content_.size() - pos; in InitializeChunks()
765 chunks_.emplace_back(CHUNK_NORMAL, pos, &file_content_, raw_data_len); in InitializeChunks()
767 pos += raw_data_len; in InitializeChunks()
1278 size_t pos = 0; in Initialize() local
1279 while (pos < sz) { in Initialize()
1281 if (sz - pos >= 4 && get_unaligned<uint32_t>(file_content_.data() + pos) == 0x00088b1f) { in Initialize()
1283 size_t chunk_offset = pos; in Initialize()
1286 if (sz - pos < GZIP_HEADER_LEN + GZIP_FOOTER_LEN) { in Initialize()
1287 chunks_.emplace_back(CHUNK_NORMAL, pos, &file_content_, sz - pos); in Initialize()
1293 chunks_.emplace_back(CHUNK_NORMAL, pos, &file_content_, GZIP_HEADER_LEN); in Initialize()
1294 pos += GZIP_HEADER_LEN; in Initialize()
1303 strm.avail_in = sz - pos; in Initialize()
1304 strm.next_in = file_content_.data() + pos; in Initialize()
1333 raw_data_len = sz - strm.avail_in - pos; in Initialize()
1342 size_t footer_index = pos + raw_data_len + GZIP_FOOTER_LEN - 4; in Initialize()
1354 ImageChunk body(CHUNK_DEFLATE, pos, &file_content_, raw_data_len); in Initialize()
1359 pos += raw_data_len; in Initialize()
1362 chunks_.emplace_back(CHUNK_NORMAL, pos, &file_content_, GZIP_FOOTER_LEN); in Initialize()
1364 pos += GZIP_FOOTER_LEN; in Initialize()
1371 while (data_len + pos < sz) { in Initialize()
1372 if (data_len + pos + 4 <= sz && in Initialize()
1373 get_unaligned<uint32_t>(file_content_.data() + pos + data_len) == 0x00088b1f) { in Initialize()
1378 chunks_.emplace_back(CHUNK_NORMAL, pos, &file_content_, data_len); in Initialize()
1380 pos += data_len; in Initialize()