Lines Matching defs:offset
71 static int64_t io_seek(void *opaque, int64_t offset, int whence)
76 if (offset > INT64_MAX - c->pos)
78 offset += c->pos;
80 if (offset > INT64_MAX - c->filesize)
82 offset += c->filesize;
86 if (offset < 0 || offset > c->filesize)
89 c->fuzz += offset - c->pos;
90 c->fuzz_size -= offset - c->pos;
92 c->pos = offset;