Lines Matching refs:finput
329 FILE* finput; in LZ4IO_compressFilename_Legacy() local
337 finput = LZ4IO_openSrcFile(input_filename); in LZ4IO_compressFilename_Legacy()
338 if (finput == NULL) EXM_THROW(20, "%s : open file error ", input_filename); in LZ4IO_compressFilename_Legacy()
340 if (foutput == NULL) { fclose(finput); EXM_THROW(20, "%s : open file error ", input_filename); } in LZ4IO_compressFilename_Legacy()
356 size_t const inSize = (int) fread(in_buff, (size_t)1, (size_t)LEGACY_BLOCKSIZE, finput); in LZ4IO_compressFilename_Legacy()
371 if (ferror(finput)) EXM_THROW(25, "Error while reading %s ", input_filename); in LZ4IO_compressFilename_Legacy()
387 fclose(finput); in LZ4IO_compressFilename_Legacy()
697 static unsigned long long LZ4IO_decodeLegacyStream(FILE* finput, FILE* foutput) in LZ4IO_decodeLegacyStream() argument
715 { size_t const sizeCheck = fread(in_buff, 1, 4, finput); in LZ4IO_decodeLegacyStream()
726 { size_t const sizeCheck = fread(in_buff, 1, blockSize, finput); in LZ4IO_decodeLegacyStream()
737 if (ferror(finput)) EXM_THROW(54, "Read error : ferror"); in LZ4IO_decodeLegacyStream()
844 static unsigned long long LZ4IO_passThrough(FILE* finput, FILE* foutput, unsigned char MNstore[MAGI… in LZ4IO_passThrough() argument
855 readBytes = fread(buffer, 1, PTSIZE, finput); in LZ4IO_passThrough()
859 if (ferror(finput)) EXM_THROW(51, "Read Error") in LZ4IO_passThrough()
884 static unsigned long long selectDecoder(dRess_t ress, FILE* finput, FILE* foutput) in selectDecoder() argument
898 size_t const nbReadBytes = fread(MNstore, 1, MAGICNUMBER_SIZE, finput); in selectDecoder()
908 return LZ4IO_decompressLZ4F(ress, finput, foutput); in selectDecoder()
911 return LZ4IO_decodeLegacyStream(finput, foutput); in selectDecoder()
914 { size_t const nbReadBytes = fread(MNstore, 1, 4, finput); in selectDecoder()
917 int const errorNb = fseek_u32(finput, size, SEEK_CUR); in selectDecoder()
925 return LZ4IO_passThrough(finput, foutput, MNstore); in selectDecoder()
939 FILE* finput; in LZ4IO_decompressSrcFile() local
942 finput = LZ4IO_openSrcFile(input_filename); in LZ4IO_decompressSrcFile()
943 if (finput==NULL) return 1; in LZ4IO_decompressSrcFile()
947 decodedSize = selectDecoder(ress, finput, foutput); in LZ4IO_decompressSrcFile()
953 fclose(finput); in LZ4IO_decompressSrcFile()