| 16389 | } |
| 16390 | |
| 16391 | size_t ZSTD_compress(void* dst, size_t dstCapacity, |
| 16392 | const void* src, size_t srcSize, |
| 16393 | int compressionLevel) |
| 16394 | { |
| 16395 | size_t result; |
| 16396 | ZSTD_CCtx ctxBody; |
| 16397 | ZSTD_initCCtx(&ctxBody, ZSTD_defaultCMem); |
| 16398 | result = ZSTD_compressCCtx(&ctxBody, dst, dstCapacity, src, srcSize, compressionLevel); |
| 16399 | ZSTD_freeCCtxContent(&ctxBody); /* can't free ctxBody itself, as it's on stack; free only heap content */ |
| 16400 | return result; |
| 16401 | } |
| 16402 | |
| 16403 | |
| 16404 | /* ===== Dictionary API ===== */ |
nothing calls this directly
no test coverage detected