#ifdef ZBUFF_STATIC_LINKING_ONLY
/* *************************************
-* Includes
+* Dependency
***************************************/
#include "zstd_static.h" /* ZSTD_parameters */
-/* internal util function */
-#define ZBUFF_MIN(a,b) ((a)<(b) ? (a) : (b))
-MEM_STATIC size_t ZBUFF_limitCopy(void* dst, size_t dstCapacity, const void* src, size_t srcSize)
-{
- size_t length = ZBUFF_MIN(dstCapacity, srcSize);
- memcpy(dst, src, length);
- return length;
-}
-
/*-*************************************
* Advanced functions
}
+/* internal util function */
+MEM_STATIC size_t ZBUFF_limitCopy(void* dst, size_t dstCapacity, const void* src, size_t srcSize)
+{
+ size_t const length = MIN(dstCapacity, srcSize);
+ memcpy(dst, src, length);
+ return length;
+}
+
+
/* *** Compression *** */
static size_t ZBUFF_compressContinue_generic(ZBUFF_CCtx* zbc,
}
+/* internal util function */
+MEM_STATIC size_t ZBUFF_limitCopy(void* dst, size_t dstCapacity, const void* src, size_t srcSize)
+{
+ size_t const length = MIN(dstCapacity, srcSize);
+ memcpy(dst, src, length);
+ return length;
+}
+
+
/* *** Decompression *** */
size_t ZBUFF_decompressContinue(ZBUFF_DCtx* zbd,