Lines Matching defs:indx
465 chunk_size = psf->filelength - psf->header.indx ;
467 else if (psf->filelength > 0 && chunk_size > psf->filelength - psf->header.indx + 10)
468 { psf_log_printf (psf, "%M : %D (should be %D)\n", marker, chunk_size, psf->filelength - psf->header.indx - 8) ;
469 psf->datalength = psf->filelength - psf->header.indx - 8 ;
479 psf->dataoffset = psf->header.indx ;
498 else if (chunk_size > psf->filelength - psf->header.indx)
499 { psf_log_printf (psf, "%M : %D (should be < %D)\n", marker, chunk_size, psf->filelength - psf->header.indx) ;
530 else if (chunk_size > psf->filelength - psf->header.indx)
531 { psf_log_printf (psf, "%M : %D (should be < %D)\n", marker, chunk_size, psf->filelength - psf->header.indx) ;
608 psf->header.indx = 0 ;
745 sf_count_t free_len = 0x1000 - psf->header.indx - 16 - 12 ;
753 psf_fwrite (psf->header.ptr, psf->header.indx, 1, psf) ;
757 psf->dataoffset = psf->header.indx ;
771 psf->header.indx = 0 ;
790 if (psf->header.indx > 0)
791 psf_fwrite (psf->header.ptr, psf->header.indx, 1, psf) ;
1004 { int indx ;
1006 if ((indx = psf_find_read_chunk_iterator (&psf->rchunks, iterator)) < 0)
1009 chunk_info->datalen = psf->rchunks.chunks [indx].len ;
1016 { int indx ;
1019 if ((indx = psf_find_read_chunk_iterator (&psf->rchunks, iterator)) < 0)
1025 chunk_info->id_size = psf->rchunks.chunks [indx].id_size ;
1026 memcpy (chunk_info->id, psf->rchunks.chunks [indx].id, sizeof (chunk_info->id) / sizeof (*chunk_info->id)) ;
1029 psf_fseek (psf, psf->rchunks.chunks [indx].offset, SEEK_SET) ;
1030 psf_fread (chunk_info->data, SF_MIN (chunk_info->datalen, psf->rchunks.chunks [indx].len), 1, psf) ;