Lines Matching full:finput
300 FILE* finput;
310 get_fileHandle(input_filename, output_filename, &finput, &foutput);
328 int inSize = (int) fread(in_buff, (size_t)1, (size_t)LEGACY_BLOCKSIZE, finput);
356 fclose(finput);
373 FILE* finput;
388 get_fileHandle(input_filename, output_filename, &finput, &foutput);
412 readSize = fread(in_buff, (size_t)1, (size_t)blockSize, finput);
431 readSize = fread(in_buff, (size_t)1, (size_t)blockSize, finput);
446 fclose(finput);
479 static unsigned long long decodeLegacyStream(FILE* finput, FILE* foutput)
498 sizeCheck = fread(in_buff, 1, 4, finput);
503 fseek(finput, -4, SEEK_CUR);
508 sizeCheck = fread(in_buff, 1, blockSize, finput);
528 static unsigned long long decodeLZ4S(FILE* finput, FILE* foutput)
543 LZ4IO_writeLE32(headerBuff, LZ4S_MAGICNUMBER); /* regenerated here, as it was already read from finput */
550 sizeCheck = fread(headerBuff, 1, nextToRead, finput);
569 sizeCheck = fread(inBuff, 1, nextToRead, finput);
595 static unsigned long long selectDecoder( FILE* finput, FILE* foutput)
603 nbReadBytes = fread(U32store, 1, MAGICNUMBER_SIZE, finput);
612 return DEFAULT_DECOMPRESSOR(finput, foutput);
615 return decodeLegacyStream(finput, foutput);
618 nbReadBytes = fread(U32store, 1, 4, finput);
621 errorNb = fseek(finput, size, SEEK_CUR);
623 return selectDecoder(finput, foutput);
626 if (ftell(finput) == MAGICNUMBER_SIZE) EXM_THROW(44,"Unrecognized header : file cannot be decoded"); /* Wrong magic number at the beginning of 1st stream */
636 FILE* finput;
643 get_fileHandle(input_filename, output_filename, &finput, &foutput);
648 decodedSize = selectDecoder(finput, foutput);
663 fclose(finput);