Lines Matching refs:finput
300 FILE* finput; in LZ4IO_compressFilename_Legacy() local
310 get_fileHandle(input_filename, output_filename, &finput, &foutput); in LZ4IO_compressFilename_Legacy()
328 int inSize = (int) fread(in_buff, (size_t)1, (size_t)LEGACY_BLOCKSIZE, finput); in LZ4IO_compressFilename_Legacy()
356 fclose(finput); in LZ4IO_compressFilename_Legacy()
373 FILE* finput; in LZ4IO_compressFilename() local
388 get_fileHandle(input_filename, output_filename, &finput, &foutput); in LZ4IO_compressFilename()
412 readSize = fread(in_buff, (size_t)1, (size_t)blockSize, finput); in LZ4IO_compressFilename()
431 readSize = fread(in_buff, (size_t)1, (size_t)blockSize, finput); in LZ4IO_compressFilename()
446 fclose(finput); in LZ4IO_compressFilename()
479 static unsigned long long decodeLegacyStream(FILE* finput, FILE* foutput) in decodeLegacyStream() argument
498 sizeCheck = fread(in_buff, 1, 4, finput); in decodeLegacyStream()
503 fseek(finput, -4, SEEK_CUR); in decodeLegacyStream()
508 sizeCheck = fread(in_buff, 1, blockSize, finput); in decodeLegacyStream()
528 static unsigned long long decodeLZ4S(FILE* finput, FILE* foutput) in decodeLZ4S() argument
550 sizeCheck = fread(headerBuff, 1, nextToRead, finput); in decodeLZ4S()
569 sizeCheck = fread(inBuff, 1, nextToRead, finput); in decodeLZ4S()
595 static unsigned long long selectDecoder( FILE* finput, FILE* foutput) in selectDecoder() argument
603 nbReadBytes = fread(U32store, 1, MAGICNUMBER_SIZE, finput); in selectDecoder()
612 return DEFAULT_DECOMPRESSOR(finput, foutput); in selectDecoder()
615 return decodeLegacyStream(finput, foutput); in selectDecoder()
618 nbReadBytes = fread(U32store, 1, 4, finput); in selectDecoder()
621 errorNb = fseek(finput, size, SEEK_CUR); in selectDecoder()
623 return selectDecoder(finput, foutput); in selectDecoder()
626 …if (ftell(finput) == MAGICNUMBER_SIZE) EXM_THROW(44,"Unrecognized header : file cannot be decoded"… in selectDecoder()
636 FILE* finput; in LZ4IO_decompressFilename() local
643 get_fileHandle(input_filename, output_filename, &finput, &foutput); in LZ4IO_decompressFilename()
648 decodedSize = selectDecoder(finput, foutput); in LZ4IO_decompressFilename()
663 fclose(finput); in LZ4IO_decompressFilename()