Lines Matching defs:src

185 static U32 LZ4F_readLE32 (const void* src)
187 const BYTE* const srcPtr = (const BYTE*)src;
204 static U64 LZ4F_readLE64 (const void* src)
206 const BYTE* const srcPtr = (const BYTE*)src;
818 typedef int (*compressFunc_t)(void* ctx, const char* src, char* dst, int srcSize, int dstSize, int level, const LZ4F_CDict* cdict);
826 const void* src, size_t srcSize,
834 cSize = (U32)compress(lz4ctx, (const char*)src, (char*)(cSizePtr+BHSize),
841 memcpy(cSizePtr+BHSize, src, srcSize);
853 static int LZ4F_compressBlock(void* ctx, const char* src, char* dst, int srcSize, int dstCapacity, int level, const LZ4F_CDict* cdict)
859 return LZ4_compress_fast_continue((LZ4_stream_t*)ctx, src, dst, srcSize, dstCapacity, acceleration);
861 return LZ4_compress_fast_extState_fastReset(ctx, src, dst, srcSize, dstCapacity, acceleration);
865 static int LZ4F_compressBlock_continue(void* ctx, const char* src, char* dst, int srcSize, int dstCapacity, int level, const LZ4F_CDict* cdict)
870 return LZ4_compress_fast_continue((LZ4_stream_t*)ctx, src, dst, srcSize, dstCapacity, acceleration);
873 static int LZ4F_compressBlockHC(void* ctx, const char* src, char* dst, int srcSize, int dstCapacity, int level, const LZ4F_CDict* cdict)
877 return LZ4_compress_HC_continue((LZ4_streamHC_t*)ctx, src, dst, srcSize, dstCapacity);
879 return LZ4_compress_HC_extStateHC_fastReset(ctx, src, dst, srcSize, dstCapacity, level);
882 static int LZ4F_compressBlockHC_continue(void* ctx, const char* src, char* dst, int srcSize, int dstCapacity, int level, const LZ4F_CDict* cdict)
885 return LZ4_compress_HC_continue((LZ4_streamHC_t*)ctx, src, dst, srcSize, dstCapacity);
888 static int LZ4F_doNotCompressBlock(void* ctx, const char* src, char* dst, int srcSize, int dstCapacity, int level, const LZ4F_CDict* cdict)
890 (void)ctx; (void)src; (void)dst; (void)srcSize; (void)dstCapacity; (void)level; (void)cdict;
921 * src data is either buffered or compressed into @dstBuffer.
967 /* add src to tmpIn buffer */
1014 cctxPtr->tmpIn = cctxPtr->tmpBuff; /* src is stable : dictionary remains in src across invocations */
1051 * src data is either buffered or compressed into @dstBuffer.
1074 * src data is either buffered or compressed into @dstBuffer.
1284 * input : `src` points at the **beginning of the frame**
1288 * @return : nb Bytes read from src (necessarily <= srcSize)
1291 static size_t LZ4F_decodeHeader(LZ4F_dctx* dctx, const void* src, size_t srcSize)
1295 const BYTE* srcPtr = (const BYTE*)src;
1305 if (src == (void*)(dctx->header)) {
1387 size_t LZ4F_headerSize(const void* src, size_t srcSize)
1389 RETURN_ERROR_IF(src == NULL, srcPtr_wrong);
1396 if ((LZ4F_readLE32(src) & 0xFFFFFFF0U) == LZ4F_MAGIC_SKIPPABLE_START)
1401 if (LZ4F_readLE32(src) != LZ4F_MAGICNUMBER)
1406 { BYTE const FLG = ((const BYTE*)src)[4];
1613 doAnotherStage = 0; /* not enough src data, ask for some more */