Lines Matching refs:srcSize

220 size_t LZ4F_compressFrameBound(size_t srcSize, const LZ4F_preferences_t* preferencesPtr)  in LZ4F_compressFrameBound()  argument
232 if (srcSize <= maxBlockSize) in LZ4F_compressFrameBound()
244 streamSize = LZ4F_compressBound(srcSize, &prefs); in LZ4F_compressFrameBound()
259 size_t LZ4F_compressFrame(void* dstBuffer, size_t dstMaxSize, const void* srcBuffer, size_t srcSize in LZ4F_compressFrame() argument
279 if (srcSize <= maxBlockSize) in LZ4F_compressFrame()
289 if (srcSize <= LZ4F_getBlockSize(prefs.frameInfo.blockSizeID)) in LZ4F_compressFrame()
294 if (dstMaxSize < LZ4F_compressFrameBound(srcSize, &prefs)) in LZ4F_compressFrame()
302 errorCode = LZ4F_compressUpdate(&cctxI, dstPtr, dstMaxSize, srcBuffer, srcSize, &options); in LZ4F_compressFrame()
437 size_t LZ4F_compressBound(size_t srcSize, const LZ4F_preferences_t* preferencesPtr) in LZ4F_compressBound() argument
443 unsigned nbBlocks = (unsigned)(srcSize / blockSize) + 1; in LZ4F_compressBound()
444 size_t lastBlockSize = prefsPtr->autoFlush ? srcSize % blockSize : blockSize; in LZ4F_compressBound()
453 typedef int (*compressFunc_t)(void* ctx, const char* src, char* dst, int srcSize, int dstSize, int …
455 static size_t LZ4F_compressBlock(void* dst, const void* src, size_t srcSize, compressFunc_t compres… in LZ4F_compressBlock() argument
460 …32)compress(lz4ctx, (const char*)src, (char*)(cSizePtr+4), (int)(srcSize), (int)(srcSize-1), level… in LZ4F_compressBlock()
464 cSize = (U32)srcSize; in LZ4F_compressBlock()
466 memcpy(cSizePtr+4, src, srcSize); in LZ4F_compressBlock()
472 …press_limitedOutput_withState(void* ctx, const char* src, char* dst, int srcSize, int dstSize, int… in LZ4F_localLZ4_compress_limitedOutput_withState() argument
475 return LZ4_compress_limitedOutput_withState(ctx, src, dst, srcSize, dstSize); in LZ4F_localLZ4_compress_limitedOutput_withState()
478 …mpress_limitedOutput_continue(void* ctx, const char* src, char* dst, int srcSize, int dstSize, int… in LZ4F_localLZ4_compress_limitedOutput_continue() argument
481 return LZ4_compress_limitedOutput_continue((LZ4_stream_t*)ctx, src, dst, srcSize, dstSize); in LZ4F_localLZ4_compress_limitedOutput_continue()
484 …ressHC_limitedOutput_continue(void* ctx, const char* src, char* dst, int srcSize, int dstSize, int… in LZ4F_localLZ4_compressHC_limitedOutput_continue() argument
487 return LZ4_compressHC_limitedOutput_continue((LZ4_streamHC_t*)ctx, src, dst, srcSize, dstSize); in LZ4F_localLZ4_compressHC_limitedOutput_continue()
519 …ntext, void* dstBuffer, size_t dstMaxSize, const void* srcBuffer, size_t srcSize, const LZ4F_compr… in LZ4F_compressUpdate() argument
525 const BYTE* const srcEnd = srcPtr + srcSize; in LZ4F_compressUpdate()
533 …if (dstMaxSize < LZ4F_compressBound(srcSize, &(cctxPtr->prefs))) return (size_t)-ERROR_dstMaxSize_… in LZ4F_compressUpdate()
543 if (sizeToCopy > srcSize) in LZ4F_compressUpdate()
546 memcpy(cctxPtr->tmpIn + cctxPtr->tmpInSize, srcBuffer, srcSize); in LZ4F_compressUpdate()
548 cctxPtr->tmpInSize += srcSize; in LZ4F_compressUpdate()
614 XXH32_update(&(cctxPtr->xxh), srcBuffer, (unsigned)srcSize); in LZ4F_compressUpdate()
735 static size_t LZ4F_decodeHeader(LZ4F_dctx_internal_t* dctxPtr, const BYTE* srcPtr, size_t srcSize) in LZ4F_decodeHeader() argument
742 if (srcSize < 7) return (size_t)-ERROR_GENERIC; /* minimal header size */ in LZ4F_decodeHeader()