Lines Matching refs:err0r
250 static LZ4F_errorCode_t err0r(LZ4F_errorCodes code) in err0r() function
273 if (blockSizeID > 3) return err0r(LZ4F_ERROR_maxBlockSize_invalid); in LZ4F_getBlockSize()
385 return err0r(LZ4F_ERROR_dstMaxSize_tooSmall); in LZ4F_compressFrame_usingCDict()
520 if (cctxPtr==NULL) return err0r(LZ4F_ERROR_allocation_failed); in LZ4F_createCompressionContext()
591 if (dstCapacity < maxFHSize) return err0r(LZ4F_ERROR_dstMaxSize_tooSmall); in LZ4F_compressBegin_usingCDict()
605 if (cctxPtr->lz4CtxPtr == NULL) return err0r(LZ4F_ERROR_allocation_failed); in LZ4F_compressBegin_usingCDict()
633 if (cctxPtr->tmpBuff == NULL) return err0r(LZ4F_ERROR_allocation_failed); in LZ4F_compressBegin_usingCDict()
814 if (cctxPtr->cStage != 1) return err0r(LZ4F_ERROR_GENERIC); in LZ4F_compressUpdate()
816 return err0r(LZ4F_ERROR_dstMaxSize_tooSmall); in LZ4F_compressUpdate()
868 if (realDictSize==0) return err0r(LZ4F_ERROR_GENERIC); in LZ4F_compressUpdate()
912 if (cctxPtr->cStage != 1) return err0r(LZ4F_ERROR_GENERIC); in LZ4F_flush()
913 …if (dstCapacity < (cctxPtr->tmpInSize + 4)) return err0r(LZ4F_ERROR_dstMaxSize_tooSmall); /* +4 … in LZ4F_flush()
968 return err0r(LZ4F_ERROR_frameSize_wrong); in LZ4F_compressEnd()
1022 if (dctx==NULL) return err0r(LZ4F_ERROR_GENERIC); in LZ4F_createDecompressionContext()
1059 if (srcSize < 5) return err0r(LZ4F_ERROR_frameHeader_incomplete); in LZ4F_headerSize()
1066 return err0r(LZ4F_ERROR_frameType_unknown); in LZ4F_headerSize()
1092 …if (srcSize < minFHSize) return err0r(LZ4F_ERROR_frameHeader_incomplete); /* minimal frame heade… in LZ4F_decodeHeader()
1111 return err0r(LZ4F_ERROR_frameType_unknown); in LZ4F_decodeHeader()
1123 if (((FLG>>1)&_1BIT) != 0) return err0r(LZ4F_ERROR_reservedFlag_set); /* Reserved bit */ in LZ4F_decodeHeader()
1124 …if (version != 1) return err0r(LZ4F_ERROR_headerVersion_wrong); /* Version Number, only sup… in LZ4F_decodeHeader()
1143 if (((BD>>7)&_1BIT) != 0) return err0r(LZ4F_ERROR_reservedFlag_set); /* Reserved bit */ in LZ4F_decodeHeader()
1144 …if (blockSizeID < 4) return err0r(LZ4F_ERROR_maxBlockSize_invalid); /* 4-7 only supported value… in LZ4F_decodeHeader()
1145 if (((BD>>0)&_4BITS) != 0) return err0r(LZ4F_ERROR_reservedFlag_set); /* Reserved bits */ in LZ4F_decodeHeader()
1151 return err0r(LZ4F_ERROR_headerChecksum_invalid); in LZ4F_decodeHeader()
1201 return err0r(LZ4F_ERROR_frameDecoding_alreadyStarted); in LZ4F_getFrameInfo()
1208 return err0r(LZ4F_ERROR_frameHeader_incomplete); in LZ4F_getFrameInfo()
1378 return err0r(LZ4F_ERROR_allocation_failed); in LZ4F_decompress()
1382 return err0r(LZ4F_ERROR_allocation_failed); in LZ4F_decompress()
1429 return err0r(LZ4F_ERROR_maxBlockSize_invalid); in LZ4F_decompress()
1504 return err0r(LZ4F_ERROR_blockChecksum_invalid); in LZ4F_decompress()
1542 return err0r(LZ4F_ERROR_blockChecksum_invalid); in LZ4F_decompress()
1559 if (decodedSize < 0) return err0r(LZ4F_ERROR_GENERIC); /* decompression failed */ in LZ4F_decompress()
1602 return err0r(LZ4F_ERROR_decompressionFailed); in LZ4F_decompress()
1636 return err0r(LZ4F_ERROR_frameSize_wrong); /* incorrect frame size decoded */ in LZ4F_decompress()
1671 return err0r(LZ4F_ERROR_contentChecksum_invalid); in LZ4F_decompress()