Lines Matching defs:offset
113 uint64_t offset = ftell(db_idx);
116 uint64_t parsed_offset = offset;
118 if (offset == len)
121 fseek(db_idx, offset, SEEK_SET);
122 while (offset < len) {
129 if (offset + sizeof(bytes_to_read) > len)
137 offset += sizeof(bytes_to_read);
143 if (offset + header->payload_size > len ||
150 /* read cache item offset from index file */
156 offset += header->payload_size;
157 parsed_offset = offset;
171 entry->offset = cache_offset;
362 * we use the retrieved offset to read the cache entry from disk.
389 if (fseek(foz_db->file[file_idx], entry->offset, SEEK_SET) < 0)
426 /* reading db entry failed. reset the file offset */
432 /* Here we write the cache entry to disk and store its offset in the index db.
483 off_t offset = ftell(foz_db->file[0]);
510 if (fwrite(&offset, 1, sizeof(uint64_t), foz_db->db_idx) !=
519 entry->offset = offset;