Lines Matching defs:offset
51 { sf_count_t offset, length ;
63 vfseek (sf_count_t offset, int whence, void *user_data)
68 vf->offset = offset ;
72 vf->offset = vf->offset + offset ;
76 vf->offset = vf->length + offset ;
82 return vf->offset ;
93 if (vf->offset + count > vf->length)
94 count = vf->length - vf->offset ;
96 memcpy (ptr, vf->data + vf->offset, count) ;
97 vf->offset += count ;
110 if (vf->offset >= SIGNED_SIZEOF (vf->data))
113 if (vf->offset + count > SIGNED_SIZEOF (vf->data))
114 count = sizeof (vf->data) - vf->offset ;
116 memcpy (vf->data + vf->offset, ptr, (size_t) count) ;
117 vf->offset += count ;
119 if (vf->offset > vf->length)
120 vf->length = vf->offset ;
129 return vf->offset ;
177 /* Set virtual file offset and length to zero. */
178 vio_data.offset = 0 ;
212 vio_data.offset = 0 ;