Lines Matching refs:srcFile
888 FILE* srcFile; member
1050 size_t const inSize = fread(ress->srcBuffer, 1, ress->srcBufferSize, ress->srcFile); in FIO_compressGzFrame()
1136 size_t const inSize = fread(ress->srcBuffer, 1, ress->srcBufferSize, ress->srcFile); in FIO_compressLzmaFrame()
1223 readSize = fread(ress->srcBuffer, (size_t)1, (size_t)blockSize, ress->srcFile); in FIO_compressLz4Frame()
1252 readSize = fread(ress->srcBuffer, (size_t)1, (size_t)blockSize, ress->srcFile); in FIO_compressLz4Frame()
1255 if (ferror(ress->srcFile)) EXM_THROW(37, "Error reading %s ", srcFileName); in FIO_compressLz4Frame()
1287 FILE* const srcFile = ress.srcFile; in FIO_compressZstdFrame() local
1317 size_t const inSize = fread(ress.srcBuffer, (size_t)1, ress.srcBufferSize, srcFile); in FIO_compressZstdFrame()
1474 if (ferror(srcFile)) { in FIO_compressZstdFrame()
1597 assert(ress.srcFile != NULL); in FIO_compressFilename_dstFile()
1695 ress.srcFile = FIO_openSrcFile(srcFileName); in FIO_compressFilename_srcFile()
1696 if (ress.srcFile == NULL) return 1; /* srcFile could not be opened */ in FIO_compressFilename_srcFile()
1700 fclose(ress.srcFile); in FIO_compressFilename_srcFile()
1701 ress.srcFile = NULL; in FIO_compressFilename_srcFile()
2173 FIO_decompressGzFrame(dRess_t* ress, FILE* srcFile, in FIO_decompressGzFrame() argument
2200 ress->srcBufferLoaded = fread(ress->srcBuffer, 1, ress->srcBufferSize, srcFile); in FIO_decompressGzFrame()
2241 FIO_decompressLzmaFrame(dRess_t* ress, FILE* srcFile, in FIO_decompressLzmaFrame() argument
2275 ress->srcBufferLoaded = fread(ress->srcBuffer, 1, ress->srcBufferSize, srcFile); in FIO_decompressLzmaFrame()
2312 FIO_decompressLz4Frame(dRess_t* ress, FILE* srcFile, in FIO_decompressLz4Frame() argument
2348 readSize = fread(ress->srcBuffer, 1, nextToLoad, srcFile); in FIO_decompressLz4Frame()
2374 if (ferror(srcFile)) { in FIO_decompressLz4Frame()
2401 dRess_t ress, FILE* srcFile, in FIO_decompressFrames() argument
2407 assert(srcFile != NULL); in FIO_decompressFrames()
2416 (size_t)1, toRead - ress.srcBufferLoaded, srcFile); in FIO_decompressFrames()
2430 …unsigned long long const frameSize = FIO_decompressZstdFrame(fCtx, &ress, srcFile, prefs, srcFileN… in FIO_decompressFrames()
2435 … unsigned long long const frameSize = FIO_decompressGzFrame(&ress, srcFile, prefs, srcFileName); in FIO_decompressFrames()
2445 …unsigned long long const frameSize = FIO_decompressLzmaFrame(&ress, srcFile, prefs, srcFileName, b… in FIO_decompressFrames()
2454 … unsigned long long const frameSize = FIO_decompressLz4Frame(&ress, srcFile, prefs, srcFileName); in FIO_decompressFrames()
2463 ress.dstFile, srcFile, in FIO_decompressFrames()
2493 dRess_t ress, FILE* srcFile, in FIO_decompressDstFile() argument
2519 result = FIO_decompressFrames(fCtx, ress, srcFile, prefs, dstFileName, srcFileName); in FIO_decompressDstFile()
2550 FILE* srcFile; in FIO_decompressSrcFile() local
2558 srcFile = FIO_openSrcFile(srcFileName); in FIO_decompressSrcFile()
2559 if (srcFile==NULL) return 1; in FIO_decompressSrcFile()
2562 result = FIO_decompressDstFile(fCtx, prefs, ress, srcFile, dstFileName, srcFileName); in FIO_decompressSrcFile()
2565 if (fclose(srcFile)) { in FIO_decompressSrcFile()
2814 FIO_analyzeFrames(fileInfo_t* info, FILE* const srcFile) in FIO_analyzeFrames() argument
2819 size_t const numBytesRead = fread(headerBuffer, 1, sizeof(headerBuffer), srcFile); in FIO_analyzeFrames()
2821 if ( feof(srcFile) in FIO_analyzeFrames()
2825 unsigned long long file_position = (unsigned long long) LONG_TELL(srcFile); in FIO_analyzeFrames()
2833 … ERROR_IF(feof(srcFile), info_not_zstd, "Error: reached end of file with incomplete frame"); in FIO_analyzeFrames()
2853 ERROR_IF(fseek(srcFile, ((long)headerSize)-((long)numBytesRead), SEEK_CUR) != 0, in FIO_analyzeFrames()
2861 ERROR_IF(fread(blockHeaderBuffer, 1, 3, srcFile) != 3, in FIO_analyzeFrames()
2870 ERROR_IF(fseek(srcFile, blockSize, SEEK_CUR) != 0, in FIO_analyzeFrames()
2881 ERROR_IF(fseek(srcFile, 4, SEEK_CUR) != 0, in FIO_analyzeFrames()
2890 ERROR_IF(LONG_SEEK(srcFile, seek, SEEK_CUR) != 0, in FIO_analyzeFrames()
2908 FILE* const srcFile = FIO_openSrcFile(inFileName); in getFileInfo_fileConfirmed() local
2909 ERROR_IF(srcFile == NULL, info_file_error, "Error: could not open source file %s", inFileName); in getFileInfo_fileConfirmed()
2912 status = FIO_analyzeFrames(info, srcFile); in getFileInfo_fileConfirmed()
2914 fclose(srcFile); in getFileInfo_fileConfirmed()