Lines Matching defs:offset
331 int64_t offset, expected_offset, last_offset;
342 &offset)) {
345 fprintf(stderr, "%s: bytes_read=%d offset=%d\n", path, (int)bytes_read, (int)offset);
347 if (offset > last_offset) {
351 while (expected_offset + (int64_t)sparse->size < offset) {
361 if (expected_offset < offset
362 && expected_offset + (int64_t)sparse->size <= offset + (int64_t)bytes_read) {
363 const char *end = (const char *)buff + (expected_offset - offset) + (size_t)sparse->size;
376 while (expected_offset + (int64_t)sparse->size <= offset + (int64_t)bytes_read) {
377 const char *end = (const char *)buff + (expected_offset - offset) + (size_t)sparse->size;
396 if (assert(expected_offset + sparse->size <= offset + bytes_read)) {
397 assert(start == (const char *)buff + (size_t)(expected_offset - offset));
408 if (expected_offset < offset + (int64_t)bytes_read) {
418 last_offset = offset + bytes_read;
466 /* Verify the number of holes only, not its offset nor its
478 int64_t offset;
487 offset = 0;
489 archive_entry_sparse_add_entry(ae, offset, 1024);
490 offset += 1024;
560 /* This hole overflows the offset if stored in 32 bits. */