Lines Matching refs:sizeCheck
303 size_t sizeCheck; in LZ4IO_compressFilename_Legacy() local
320 sizeCheck = fwrite(out_buff, 1, MAGICNUMBER_SIZE, foutput); in LZ4IO_compressFilename_Legacy()
321 if (sizeCheck!=MAGICNUMBER_SIZE) EXM_THROW(22, "Write error : cannot write header"); in LZ4IO_compressFilename_Legacy()
339 sizeCheck = fwrite(out_buff, 1, outSize+4, foutput); in LZ4IO_compressFilename_Legacy()
340 … if (sizeCheck!=(size_t)(outSize+4)) EXM_THROW(23, "Write error : cannot write compressed block"); in LZ4IO_compressFilename_Legacy()
377 size_t sizeCheck, headerSize, readSize, outBuffSize; in LZ4IO_compressFilename() local
407 sizeCheck = fwrite(out_buff, 1, headerSize, foutput); in LZ4IO_compressFilename()
408 if (sizeCheck!=headerSize) EXM_THROW(33, "Write error : cannot write header"); in LZ4IO_compressFilename()
427 sizeCheck = fwrite(out_buff, 1, outSize, foutput); in LZ4IO_compressFilename()
428 if (sizeCheck!=outSize) EXM_THROW(35, "Write error : cannot write compressed block"); in LZ4IO_compressFilename()
439 sizeCheck = fwrite(out_buff, 1, headerSize, foutput); in LZ4IO_compressFilename()
440 if (sizeCheck!=headerSize) EXM_THROW(37, "Write error : cannot write end of stream"); in LZ4IO_compressFilename()
494 size_t sizeCheck; in decodeLegacyStream() local
498 sizeCheck = fread(in_buff, 1, 4, finput); in decodeLegacyStream()
499 if (sizeCheck==0) break; /* Nothing to read : file read is completed */ in decodeLegacyStream()
508 sizeCheck = fread(in_buff, 1, blockSize, finput); in decodeLegacyStream()
516 sizeCheck = fwrite(out_buff, 1, decodeSize, foutput); in decodeLegacyStream()
517 …if (sizeCheck != (size_t)decodeSize) EXM_THROW(53, "Write error : cannot write decoded block into … in decodeLegacyStream()
535 size_t sizeCheck, nextToRead, outBuffSize, inBuffSize; in decodeLZ4S() local
546 outBuffSize = 0; inBuffSize = 0; sizeCheck = MAGICNUMBER_SIZE; in decodeLZ4S()
547 nextToRead = LZ4F_decompress(ctx, NULL, &outBuffSize, headerBuff, &sizeCheck, NULL); in decodeLZ4S()
550 sizeCheck = fread(headerBuff, 1, nextToRead, finput); in decodeLZ4S()
551 if (sizeCheck!=nextToRead) EXM_THROW(63, "Read error "); in decodeLZ4S()
552 nextToRead = LZ4F_decompress(ctx, NULL, &outBuffSize, headerBuff, &sizeCheck, NULL); in decodeLZ4S()
569 sizeCheck = fread(inBuff, 1, nextToRead, finput); in decodeLZ4S()
570 if (sizeCheck!=nextToRead) EXM_THROW(66, "Read error "); in decodeLZ4S()
573 errorCode = LZ4F_decompress(ctx, outBuff, &decodedBytes, inBuff, &sizeCheck, NULL); in decodeLZ4S()
575 if (sizeCheck!=nextToRead) EXM_THROW(67, "Synchronization error"); in decodeLZ4S()
580 sizeCheck = fwrite(outBuff, 1, decodedBytes, foutput); in decodeLZ4S()
581 if (sizeCheck != decodedBytes) EXM_THROW(68, "Write error : cannot write decoded block\n"); in decodeLZ4S()