dstSize 724 lib/zstd/fse_compress.c static size_t FSE_compress_usingCTable_generic(void *dst, size_t dstSize, const void *src, size_t srcSize, const FSE_CTable *ct, const unsigned fast) dstSize 737 lib/zstd/fse_compress.c size_t const initError = BIT_initCStream(&bitC, dst, dstSize); dstSize 785 lib/zstd/fse_compress.c size_t FSE_compress_usingCTable(void *dst, size_t dstSize, const void *src, size_t srcSize, const FSE_CTable *ct) dstSize 787 lib/zstd/fse_compress.c unsigned const fast = (dstSize >= FSE_BLOCKBOUND(srcSize)); dstSize 790 lib/zstd/fse_compress.c return FSE_compress_usingCTable_generic(dst, dstSize, src, srcSize, ct, 1); dstSize 792 lib/zstd/fse_compress.c return FSE_compress_usingCTable_generic(dst, dstSize, src, srcSize, ct, 0); dstSize 57 lib/zstd/huf.h size_t HUF_compress4X_wksp(void *dst, size_t dstSize, const void *src, size_t srcSize, unsigned maxSymbolValue, unsigned tableLog, void *workSpace, dstSize 104 lib/zstd/huf.h size_t HUF_decompress4X_DCtx_wksp(HUF_DTable *dctx, void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize, void *workspace, size_t workspaceSize); /**< decodes RLE and uncompressed */ dstSize 105 lib/zstd/huf.h size_t HUF_decompress4X_hufOnly_wksp(HUF_DTable *dctx, void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize, void *workspace, dstSize 107 lib/zstd/huf.h size_t HUF_decompress4X2_DCtx_wksp(HUF_DTable *dctx, void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize, void *workspace, dstSize 109 lib/zstd/huf.h size_t HUF_decompress4X4_DCtx_wksp(HUF_DTable *dctx, void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize, void *workspace, dstSize 131 lib/zstd/huf.h size_t HUF_compress4X_usingCTable(void *dst, size_t dstSize, const void *src, size_t srcSize, const HUF_CElt *CTable); dstSize 144 lib/zstd/huf.h size_t HUF_compress4X_repeat(void *dst, size_t dstSize, const void *src, size_t srcSize, unsigned maxSymbolValue, unsigned tableLog, void *workSpace, dstSize 178 lib/zstd/huf.h U32 HUF_selectDecoder(size_t dstSize, size_t cSrcSize); dstSize 189 lib/zstd/huf.h size_t HUF_compress1X_wksp(void *dst, size_t dstSize, const void *src, size_t srcSize, unsigned maxSymbolValue, unsigned tableLog, void *workSpace, dstSize 191 lib/zstd/huf.h size_t HUF_compress1X_usingCTable(void *dst, size_t dstSize, const void *src, size_t srcSize, const HUF_CElt *CTable); dstSize 197 lib/zstd/huf.h size_t HUF_compress1X_repeat(void *dst, size_t dstSize, const void *src, size_t srcSize, unsigned maxSymbolValue, unsigned tableLog, void *workSpace, dstSize 201 lib/zstd/huf.h size_t HUF_decompress1X_DCtx_wksp(HUF_DTable *dctx, void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize, void *workspace, size_t workspaceSize); dstSize 202 lib/zstd/huf.h size_t HUF_decompress1X2_DCtx_wksp(HUF_DTable *dctx, void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize, void *workspace, dstSize 204 lib/zstd/huf.h size_t HUF_decompress1X4_DCtx_wksp(HUF_DTable *dctx, void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize, void *workspace, dstSize 82 lib/zstd/huf_compress.c size_t HUF_compressWeights_wksp(void *dst, size_t dstSize, const void *weightTable, size_t wtSize, void *workspace, size_t workspaceSize) dstSize 86 lib/zstd/huf_compress.c BYTE *const oend = ostart + dstSize; dstSize 538 lib/zstd/huf_compress.c size_t HUF_compress1X_usingCTable(void *dst, size_t dstSize, const void *src, size_t srcSize, const HUF_CElt *CTable) dstSize 542 lib/zstd/huf_compress.c BYTE *const oend = ostart + dstSize; dstSize 548 lib/zstd/huf_compress.c if (dstSize < 8) dstSize 581 lib/zstd/huf_compress.c size_t HUF_compress4X_usingCTable(void *dst, size_t dstSize, const void *src, size_t srcSize, const HUF_CElt *CTable) dstSize 587 lib/zstd/huf_compress.c BYTE *const oend = ostart + dstSize; dstSize 590 lib/zstd/huf_compress.c if (dstSize < 6 + 1 + 1 + 1 + 8) dstSize 653 lib/zstd/huf_compress.c static size_t HUF_compress_internal(void *dst, size_t dstSize, const void *src, size_t srcSize, unsigned maxSymbolValue, unsigned huffLog, dstSize 657 lib/zstd/huf_compress.c BYTE *const oend = ostart + dstSize; dstSize 670 lib/zstd/huf_compress.c if (!dstSize) dstSize 724 lib/zstd/huf_compress.c CHECK_V_F(hSize, HUF_writeCTable_wksp(op, dstSize, CTable, maxSymbolValue, huffLog, workSpace, wkspSize)); dstSize 748 lib/zstd/huf_compress.c size_t HUF_compress1X_wksp(void *dst, size_t dstSize, const void *src, size_t srcSize, unsigned maxSymbolValue, unsigned huffLog, void *workSpace, dstSize 751 lib/zstd/huf_compress.c return HUF_compress_internal(dst, dstSize, src, srcSize, maxSymbolValue, huffLog, 1 /* single stream */, workSpace, wkspSize, NULL, NULL, 0); dstSize 754 lib/zstd/huf_compress.c size_t HUF_compress1X_repeat(void *dst, size_t dstSize, const void *src, size_t srcSize, unsigned maxSymbolValue, unsigned huffLog, void *workSpace, dstSize 757 lib/zstd/huf_compress.c return HUF_compress_internal(dst, dstSize, src, srcSize, maxSymbolValue, huffLog, 1 /* single stream */, workSpace, wkspSize, hufTable, repeat, dstSize 761 lib/zstd/huf_compress.c size_t HUF_compress4X_wksp(void *dst, size_t dstSize, const void *src, size_t srcSize, unsigned maxSymbolValue, unsigned huffLog, void *workSpace, dstSize 764 lib/zstd/huf_compress.c return HUF_compress_internal(dst, dstSize, src, srcSize, maxSymbolValue, huffLog, 0 /* 4 streams */, workSpace, wkspSize, NULL, NULL, 0); dstSize 767 lib/zstd/huf_compress.c size_t HUF_compress4X_repeat(void *dst, size_t dstSize, const void *src, size_t srcSize, unsigned maxSymbolValue, unsigned huffLog, void *workSpace, dstSize 770 lib/zstd/huf_compress.c return HUF_compress_internal(dst, dstSize, src, srcSize, maxSymbolValue, huffLog, 0 /* 4 streams */, workSpace, wkspSize, hufTable, repeat, dstSize 199 lib/zstd/huf_decompress.c static size_t HUF_decompress1X2_usingDTable_internal(void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize, const HUF_DTable *DTable) dstSize 202 lib/zstd/huf_decompress.c BYTE *const oend = op + dstSize; dstSize 221 lib/zstd/huf_decompress.c return dstSize; dstSize 224 lib/zstd/huf_decompress.c size_t HUF_decompress1X2_usingDTable(void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize, const HUF_DTable *DTable) dstSize 229 lib/zstd/huf_decompress.c return HUF_decompress1X2_usingDTable_internal(dst, dstSize, cSrc, cSrcSize, DTable); dstSize 232 lib/zstd/huf_decompress.c size_t HUF_decompress1X2_DCtx_wksp(HUF_DTable *DCtx, void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize, void *workspace, size_t workspaceSize) dstSize 244 lib/zstd/huf_decompress.c return HUF_decompress1X2_usingDTable_internal(dst, dstSize, ip, cSrcSize, DCtx); dstSize 247 lib/zstd/huf_decompress.c static size_t HUF_decompress4X2_usingDTable_internal(void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize, const HUF_DTable *DTable) dstSize 256 lib/zstd/huf_decompress.c BYTE *const oend = ostart + dstSize; dstSize 273 lib/zstd/huf_decompress.c const size_t segmentSize = (dstSize + 3) / 4; dstSize 351 lib/zstd/huf_decompress.c return dstSize; dstSize 355 lib/zstd/huf_decompress.c size_t HUF_decompress4X2_usingDTable(void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize, const HUF_DTable *DTable) dstSize 360 lib/zstd/huf_decompress.c return HUF_decompress4X2_usingDTable_internal(dst, dstSize, cSrc, cSrcSize, DTable); dstSize 363 lib/zstd/huf_decompress.c size_t HUF_decompress4X2_DCtx_wksp(HUF_DTable *dctx, void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize, void *workspace, size_t workspaceSize) dstSize 375 lib/zstd/huf_decompress.c return HUF_decompress4X2_usingDTable_internal(dst, dstSize, ip, cSrcSize, dctx); dstSize 655 lib/zstd/huf_decompress.c static size_t HUF_decompress1X4_usingDTable_internal(void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize, const HUF_DTable *DTable) dstSize 669 lib/zstd/huf_decompress.c BYTE *const oend = ostart + dstSize; dstSize 681 lib/zstd/huf_decompress.c return dstSize; dstSize 684 lib/zstd/huf_decompress.c size_t HUF_decompress1X4_usingDTable(void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize, const HUF_DTable *DTable) dstSize 689 lib/zstd/huf_decompress.c return HUF_decompress1X4_usingDTable_internal(dst, dstSize, cSrc, cSrcSize, DTable); dstSize 692 lib/zstd/huf_decompress.c size_t HUF_decompress1X4_DCtx_wksp(HUF_DTable *DCtx, void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize, void *workspace, size_t workspaceSize) dstSize 704 lib/zstd/huf_decompress.c return HUF_decompress1X4_usingDTable_internal(dst, dstSize, ip, cSrcSize, DCtx); dstSize 707 lib/zstd/huf_decompress.c static size_t HUF_decompress4X4_usingDTable_internal(void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize, const HUF_DTable *DTable) dstSize 715 lib/zstd/huf_decompress.c BYTE *const oend = ostart + dstSize; dstSize 732 lib/zstd/huf_decompress.c size_t const segmentSize = (dstSize + 3) / 4; dstSize 813 lib/zstd/huf_decompress.c return dstSize; dstSize 817 lib/zstd/huf_decompress.c size_t HUF_decompress4X4_usingDTable(void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize, const HUF_DTable *DTable) dstSize 822 lib/zstd/huf_decompress.c return HUF_decompress4X4_usingDTable_internal(dst, dstSize, cSrc, cSrcSize, DTable); dstSize 825 lib/zstd/huf_decompress.c size_t HUF_decompress4X4_DCtx_wksp(HUF_DTable *dctx, void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize, void *workspace, size_t workspaceSize) dstSize 837 lib/zstd/huf_decompress.c return HUF_decompress4X4_usingDTable_internal(dst, dstSize, ip, cSrcSize, dctx); dstSize 887 lib/zstd/huf_decompress.c U32 HUF_selectDecoder(size_t dstSize, size_t cSrcSize) dstSize 890 lib/zstd/huf_decompress.c U32 const Q = (U32)(cSrcSize * 16 / dstSize); /* Q < 16 since dstSize > cSrcSize */ dstSize 891 lib/zstd/huf_decompress.c U32 const D256 = (U32)(dstSize >> 8); dstSize 899 lib/zstd/huf_decompress.c typedef size_t (*decompressionAlgo)(void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize); dstSize 901 lib/zstd/huf_decompress.c size_t HUF_decompress4X_DCtx_wksp(HUF_DTable *dctx, void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize, void *workspace, size_t workspaceSize) dstSize 904 lib/zstd/huf_decompress.c if (dstSize == 0) dstSize 906 lib/zstd/huf_decompress.c if (cSrcSize > dstSize) dstSize 908 lib/zstd/huf_decompress.c if (cSrcSize == dstSize) { dstSize 909 lib/zstd/huf_decompress.c memcpy(dst, cSrc, dstSize); dstSize 910 lib/zstd/huf_decompress.c return dstSize; dstSize 913 lib/zstd/huf_decompress.c memset(dst, *(const BYTE *)cSrc, dstSize); dstSize 914 lib/zstd/huf_decompress.c return dstSize; dstSize 918 lib/zstd/huf_decompress.c U32 const algoNb = HUF_selectDecoder(dstSize, cSrcSize); dstSize 919 lib/zstd/huf_decompress.c return algoNb ? HUF_decompress4X4_DCtx_wksp(dctx, dst, dstSize, cSrc, cSrcSize, workspace, workspaceSize) dstSize 920 lib/zstd/huf_decompress.c : HUF_decompress4X2_DCtx_wksp(dctx, dst, dstSize, cSrc, cSrcSize, workspace, workspaceSize); dstSize 924 lib/zstd/huf_decompress.c size_t HUF_decompress4X_hufOnly_wksp(HUF_DTable *dctx, void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize, void *workspace, size_t workspaceSize) dstSize 927 lib/zstd/huf_decompress.c if (dstSize == 0) dstSize 929 lib/zstd/huf_decompress.c if ((cSrcSize >= dstSize) || (cSrcSize <= 1)) dstSize 933 lib/zstd/huf_decompress.c U32 const algoNb = HUF_selectDecoder(dstSize, cSrcSize); dstSize 934 lib/zstd/huf_decompress.c return algoNb ? HUF_decompress4X4_DCtx_wksp(dctx, dst, dstSize, cSrc, cSrcSize, workspace, workspaceSize) dstSize 935 lib/zstd/huf_decompress.c : HUF_decompress4X2_DCtx_wksp(dctx, dst, dstSize, cSrc, cSrcSize, workspace, workspaceSize); dstSize 939 lib/zstd/huf_decompress.c size_t HUF_decompress1X_DCtx_wksp(HUF_DTable *dctx, void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize, void *workspace, size_t workspaceSize) dstSize 942 lib/zstd/huf_decompress.c if (dstSize == 0) dstSize 944 lib/zstd/huf_decompress.c if (cSrcSize > dstSize) dstSize 946 lib/zstd/huf_decompress.c if (cSrcSize == dstSize) { dstSize 947 lib/zstd/huf_decompress.c memcpy(dst, cSrc, dstSize); dstSize 948 lib/zstd/huf_decompress.c return dstSize; dstSize 951 lib/zstd/huf_decompress.c memset(dst, *(const BYTE *)cSrc, dstSize); dstSize 952 lib/zstd/huf_decompress.c return dstSize; dstSize 956 lib/zstd/huf_decompress.c U32 const algoNb = HUF_selectDecoder(dstSize, cSrcSize); dstSize 957 lib/zstd/huf_decompress.c return algoNb ? HUF_decompress1X4_DCtx_wksp(dctx, dst, dstSize, cSrc, cSrcSize, workspace, workspaceSize) dstSize 958 lib/zstd/huf_decompress.c : HUF_decompress1X2_DCtx_wksp(dctx, dst, dstSize, cSrc, cSrcSize, workspace, workspaceSize);