Lines Matching defs:offset
6 sf_count_t offset ;
16 static sf_count_t vfseek (sf_count_t offset, int whence, void *user_data)
23 new_offset = offset ;
27 new_offset = vf->offset + offset ;
31 new_offset = vf->length + offset ;
42 " whence(%d), vf->offset(%" PRId64 "), offset(%" PRId64 ")\n",
43 new_offset, vf->length, whence, vf->offset, offset) ;
48 printf("vf underseek: new_offset(%" PRId64 ") < 0; whence(%d), vf->offset"
49 "(%" PRId64 "), vf->length(%" PRId64 "), offset(%" PRId64 ")\n",
50 new_offset, whence, vf->offset, vf->length, offset) ;
53 vf->offset = new_offset ;
55 return vf->offset ;
61 if (vf->offset + count > vf->length)
62 count = vf->length - vf->offset ;
64 memcpy(ptr, vf->data + vf->offset, count) ;
65 vf->offset += count ;
83 return vf->offset ;
103 vio_data->offset = 0 ;