Home
last modified time | relevance | path

Searched refs:readSize (Results 1 – 6 of 6) sorted by relevance

/lz4-3.4.0-2.7.6/examples/
DframeCompress.c84 size_t const readSize = fread(inBuff, 1, IN_CHUNK_SIZE, f_in); in compress_file_internal() local
85 if (readSize == 0) break; /* nothing left to read from input file */ in compress_file_internal()
86 count_in += readSize; in compress_file_internal()
90 inBuff, readSize, in compress_file_internal()
187 size_t readSize = firstChunk ? filled : fread(src, 1, srcCapacity, f_in); firstChunk=0; in decompress_file_internal() local
189 const void* const srcEnd = (const char*)srcPtr + readSize; in decompress_file_internal()
190 if (readSize == 0 || ferror(f_in)) { in decompress_file_internal()
230 { size_t const readSize = fread(src, 1, 1, f_in); in decompress_file_internal() local
231 if (readSize != 0 || !feof(f_in)) { in decompress_file_internal()
252 size_t const readSize = fread(src, 1, srcCapacity, f_in); in decompress_file_allocDst() local
[all …]
/lz4-3.4.0-2.7.6/tests/
DcheckFrame.c136 size_t readSize; in frameCheck() local
143 readSize = fread(ress.srcBuffer, 1, ress.srcBufferSize, srcFile); in frameCheck()
144 if (!readSize) break; /* reached end of file or stream */ in frameCheck()
146 while (pos < readSize) { /* still to read */ in frameCheck()
151 remaining = readSize - pos; in frameCheck()
169 if (nextToLoad > (readSize - pos)) { in frameCheck()
172 remaining = readSize - pos; in frameCheck()
DroundTripTest.c193 { size_t const readSize = fread(buffer, 1, fileSize, f); in loadFile() local
194 if (readSize != fileSize) { in loadFile()
Dfullbench.c452 size_t readSize; in fullSpeedBench() local
486 readSize = fread(orig_buff, 1, benchedSize, inFile); in fullSpeedBench()
489 if (readSize != benchedSize) { in fullSpeedBench()
/lz4-3.4.0-2.7.6/programs/
Dlz4io.c545 size_t readSize; in LZ4IO_createDict() local
567 readSize = fread(circularBuf + dictEnd, 1, circularBufSize - dictEnd, dictFile); in LZ4IO_createDict()
568 dictEnd = (dictEnd + readSize) % circularBufSize; in LZ4IO_createDict()
569 dictLen += readSize; in LZ4IO_createDict()
570 } while (readSize>0); in LZ4IO_createDict()
661 size_t readSize; in LZ4IO_compressFilename_extRess() local
688 readSize = fread(srcBuffer, (size_t)1, blockSize, srcFile); in LZ4IO_compressFilename_extRess()
690 filesize += readSize; in LZ4IO_compressFilename_extRess()
693 if (readSize < blockSize) { in LZ4IO_compressFilename_extRess()
695 …LZ4F_compressFrame_usingCDict(ctx, dstBuffer, dstBufferSize, srcBuffer, readSize, ress.cdict, &pre… in LZ4IO_compressFilename_extRess()
[all …]
Dbench.c603 { size_t const readSize = fread(((char*)buffer)+pos, 1, (size_t)fileSize, f); in BMK_loadFiles() local
604 if (readSize != (size_t)fileSize) EXM_THROW(11, "could not read %s", fileNamesTable[n]); in BMK_loadFiles()
605 pos += readSize; } in BMK_loadFiles()