Lines Matching refs:filelength
122 if (psf->file.mode == SFM_READ || (psf->file.mode == SFM_RDWR && psf->filelength > 0)) in caf_open()
143 if (psf->file.mode != SFM_RDWR || psf->filelength < 44) in caf_open()
144 { psf->filelength = 0 ; in caf_open()
401 if (chunk_size > psf->filelength) in caf_read_header()
465 chunk_size = psf->filelength - psf->header.indx ; in caf_read_header()
467 else if (psf->filelength > 0 && chunk_size > psf->filelength - psf->header.indx + 10) in caf_read_header()
468 …{ psf_log_printf (psf, "%M : %D (should be %D)\n", marker, chunk_size, psf->filelength - psf->head… in caf_read_header()
469 psf->datalength = psf->filelength - psf->header.indx - 8 ; in caf_read_header()
480 if (psf->datalength + psf->dataoffset < psf->filelength) in caf_read_header()
498 else if (chunk_size > psf->filelength - psf->header.indx) in caf_read_header()
499 …{ psf_log_printf (psf, "%M : %D (should be < %D)\n", marker, chunk_size, psf->filelength - psf->he… in caf_read_header()
530 else if (chunk_size > psf->filelength - psf->header.indx) in caf_read_header()
531 …{ psf_log_printf (psf, "%M : %D (should be < %D)\n", marker, chunk_size, psf->filelength - psf->he… in caf_read_header()
551 if (psf_ftell (psf) >= psf->filelength - SIGNED_SIZEOF (chunk_size)) in caf_read_header()
595 { psf->filelength = psf_get_filelen (psf) ; in caf_write_header()
597 psf->datalength = psf->filelength - psf->dataoffset ; in caf_write_header()
600 psf->datalength -= psf->filelength - psf->dataend ; in caf_write_header()