Lines Matching refs:finput
340 FILE* finput; in LZ4IO_compressFilename_Legacy() local
348 finput = LZ4IO_openSrcFile(input_filename); in LZ4IO_compressFilename_Legacy()
349 if (finput == NULL) EXM_THROW(20, "%s : open file error ", input_filename); in LZ4IO_compressFilename_Legacy()
351 if (foutput == NULL) { fclose(finput); EXM_THROW(20, "%s : open file error ", input_filename); } in LZ4IO_compressFilename_Legacy()
367 size_t const inSize = (int) fread(in_buff, (size_t)1, (size_t)LEGACY_BLOCKSIZE, finput); in LZ4IO_compressFilename_Legacy()
384 if (ferror(finput)) EXM_THROW(25, "Error while reading %s ", input_filename); in LZ4IO_compressFilename_Legacy()
401 fclose(finput); in LZ4IO_compressFilename_Legacy()
802 static unsigned long long LZ4IO_decodeLegacyStream(FILE* finput, FILE* foutput) in LZ4IO_decodeLegacyStream() argument
817 { size_t const sizeCheck = fread(in_buff, 1, 4, finput); in LZ4IO_decodeLegacyStream()
828 { size_t const sizeCheck = fread(in_buff, 1, blockSize, finput); in LZ4IO_decodeLegacyStream()
838 if (ferror(finput)) EXM_THROW(54, "Read error : ferror"); in LZ4IO_decodeLegacyStream()
961 static unsigned long long LZ4IO_passThrough(FILE* finput, FILE* foutput, unsigned char MNstore[MAGI… in LZ4IO_passThrough() argument
972 readBytes = fread(buffer, 1, PTSIZE, finput); in LZ4IO_passThrough()
976 if (ferror(finput)) EXM_THROW(51, "Read Error"); in LZ4IO_passThrough()
1001 static unsigned long long selectDecoder(dRess_t ress, FILE* finput, FILE* foutput) in selectDecoder() argument
1015 size_t const nbReadBytes = fread(MNstore, 1, MAGICNUMBER_SIZE, finput); in selectDecoder()
1027 return LZ4IO_decompressLZ4F(ress, finput, foutput); in selectDecoder()
1030 return LZ4IO_decodeLegacyStream(finput, foutput); in selectDecoder()
1033 { size_t const nbReadBytes = fread(MNstore, 1, 4, finput); in selectDecoder()
1038 int const errorNb = fseek_u32(finput, size, SEEK_CUR); in selectDecoder()
1049 return LZ4IO_passThrough(finput, foutput, MNstore); in selectDecoder()
1053 { long int const position = ftell(finput); /* only works for files < 2 GB */ in selectDecoder()
1070 FILE* const finput = LZ4IO_openSrcFile(input_filename); in LZ4IO_decompressSrcFile() local
1071 if (finput==NULL) return 1; in LZ4IO_decompressSrcFile()
1076 selectDecoder(ress, finput, foutput); in LZ4IO_decompressSrcFile()
1082 fclose(finput); in LZ4IO_decompressSrcFile()