Lines Matching defs:count
86 vfread (void *ptr, sf_count_t count, void *user_data)
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 ;
99 return count ;
103 vfwrite (const void *ptr, sf_count_t count, void *user_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 ;
122 return count ;