Lines Matching defs:items
344 psf_fread (void *ptr, sf_count_t bytes, sf_count_t items, SF_PRIVATE *psf)
349 return psf->vio.read (ptr, bytes*items, psf->vio_user_data) / bytes ;
351 items *= bytes ;
354 if (items <= 0)
357 while (items > 0)
359 count = (items > SENSIBLE_SIZE) ? SENSIBLE_SIZE : (ssize_t) items ;
375 items -= count ;
385 psf_fwrite (const void *ptr, sf_count_t bytes, sf_count_t items, SF_PRIVATE *psf)
389 if (bytes == 0 || items == 0)
393 return psf->vio.write (ptr, bytes*items, psf->vio_user_data) / bytes ;
395 items *= bytes ;
398 if (items <= 0)
401 while (items > 0)
403 count = (items > SENSIBLE_SIZE) ? SENSIBLE_SIZE : items ;
419 items -= count ;
980 psf_fread (void *ptr, sf_count_t bytes, sf_count_t items, SF_PRIVATE *psf)
986 return psf->vio.read (ptr, bytes*items, psf->vio_user_data) / bytes ;
988 items *= bytes ;
991 if (items <= 0)
994 while (items > 0)
996 count = (items > SENSIBLE_SIZE) ? SENSIBLE_SIZE : (ssize_t) items ;
1009 items -= count ;
1019 psf_fwrite (const void *ptr, sf_count_t bytes, sf_count_t items, SF_PRIVATE *psf)
1025 return psf->vio.write (ptr, bytes * items, psf->vio_user_data) / bytes ;
1027 items *= bytes ;
1030 if (items <= 0)
1033 while (items > 0)
1035 count = (items > SENSIBLE_SIZE) ? SENSIBLE_SIZE : (ssize_t) items ;
1048 items -= count ;