Lines Matching defs:offset
266 /* Current offset for writing data to the file. */
267 int64_t offset;
268 /* Last offset actually written to disk. */
298 /* The offset of the ResourceFork where compressed data will
573 a->offset = 0;
955 if (a->filesize >= 0 && (int64_t)(a->offset + size) > a->filesize)
956 start_size = size = (size_t)(a->filesize - a->offset);
972 a->offset += p - buff;
978 /* Calculate next block boundary after offset. */
980 = (a->offset / block_size + 1) * block_size;
985 if (a->offset + bytes_to_write > block_end)
986 bytes_to_write = block_end - a->offset;
988 /* Seek if necessary to the specified offset. */
989 if (a->offset != a->fd_offset) {
990 if (lseek(a->fd, a->offset, SEEK_SET) < 0) {
995 a->fd_offset = a->offset;
1005 a->offset += bytes_written;
1006 a->fd_offset = a->offset;
1566 if (a->filesize >= 0 && (int64_t)(a->offset + size) > a->filesize)
1567 start_size = size = (size_t)(a->filesize - a->offset);
1572 /* Seek if necessary to the specified offset. */
1573 if (a->offset < a->fd_offset) {
1578 } else if (a->offset > a->fd_offset) {
1579 int64_t skip = a->offset - a->fd_offset;
1598 a->fd_offset = a->offset;
1607 a->offset += bytes_written;
1608 a->fd_offset = a->offset;
1623 const void *buff, size_t size, int64_t offset)
1631 a->offset = offset;