Lines Matching refs:cSrcSize
199 …singDTable_internal(void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize, const HUF_DTable… in HUF_decompress1X2_usingDTable_internal() argument
210 size_t const errorCode = BIT_initDStream(&bitD, cSrc, cSrcSize); in HUF_decompress1X2_usingDTable_internal()
224 size_t HUF_decompress1X2_usingDTable(void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize, … in HUF_decompress1X2_usingDTable() argument
229 return HUF_decompress1X2_usingDTable_internal(dst, dstSize, cSrc, cSrcSize, DTable); in HUF_decompress1X2_usingDTable()
232 …p(HUF_DTable *DCtx, void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize, void *workspace,… in HUF_decompress1X2_DCtx_wksp() argument
236 size_t const hSize = HUF_readDTableX2_wksp(DCtx, cSrc, cSrcSize, workspace, workspaceSize); in HUF_decompress1X2_DCtx_wksp()
239 if (hSize >= cSrcSize) in HUF_decompress1X2_DCtx_wksp()
242 cSrcSize -= hSize; in HUF_decompress1X2_DCtx_wksp()
244 return HUF_decompress1X2_usingDTable_internal(dst, dstSize, ip, cSrcSize, DCtx); in HUF_decompress1X2_DCtx_wksp()
247 …singDTable_internal(void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize, const HUF_DTable… in HUF_decompress4X2_usingDTable_internal() argument
250 if (cSrcSize < 10) in HUF_decompress4X2_usingDTable_internal()
268 size_t const length4 = cSrcSize - (length1 + length2 + length3 + 6); in HUF_decompress4X2_usingDTable_internal()
285 if (length4 > cSrcSize) in HUF_decompress4X2_usingDTable_internal()
355 size_t HUF_decompress4X2_usingDTable(void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize, … in HUF_decompress4X2_usingDTable() argument
360 return HUF_decompress4X2_usingDTable_internal(dst, dstSize, cSrc, cSrcSize, DTable); in HUF_decompress4X2_usingDTable()
363 …p(HUF_DTable *dctx, void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize, void *workspace,… in HUF_decompress4X2_DCtx_wksp() argument
367 size_t const hSize = HUF_readDTableX2_wksp(dctx, cSrc, cSrcSize, workspace, workspaceSize); in HUF_decompress4X2_DCtx_wksp()
370 if (hSize >= cSrcSize) in HUF_decompress4X2_DCtx_wksp()
373 cSrcSize -= hSize; in HUF_decompress4X2_DCtx_wksp()
375 return HUF_decompress4X2_usingDTable_internal(dst, dstSize, ip, cSrcSize, dctx); in HUF_decompress4X2_DCtx_wksp()
655 …singDTable_internal(void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize, const HUF_DTable… in HUF_decompress1X4_usingDTable_internal() argument
661 size_t const errorCode = BIT_initDStream(&bitD, cSrc, cSrcSize); in HUF_decompress1X4_usingDTable_internal()
684 size_t HUF_decompress1X4_usingDTable(void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize, … in HUF_decompress1X4_usingDTable() argument
689 return HUF_decompress1X4_usingDTable_internal(dst, dstSize, cSrc, cSrcSize, DTable); in HUF_decompress1X4_usingDTable()
692 …p(HUF_DTable *DCtx, void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize, void *workspace,… in HUF_decompress1X4_DCtx_wksp() argument
696 size_t const hSize = HUF_readDTableX4_wksp(DCtx, cSrc, cSrcSize, workspace, workspaceSize); in HUF_decompress1X4_DCtx_wksp()
699 if (hSize >= cSrcSize) in HUF_decompress1X4_DCtx_wksp()
702 cSrcSize -= hSize; in HUF_decompress1X4_DCtx_wksp()
704 return HUF_decompress1X4_usingDTable_internal(dst, dstSize, ip, cSrcSize, DCtx); in HUF_decompress1X4_DCtx_wksp()
707 …singDTable_internal(void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize, const HUF_DTable… in HUF_decompress4X4_usingDTable_internal() argument
709 if (cSrcSize < 10) in HUF_decompress4X4_usingDTable_internal()
727 size_t const length4 = cSrcSize - (length1 + length2 + length3 + 6); in HUF_decompress4X4_usingDTable_internal()
744 if (length4 > cSrcSize) in HUF_decompress4X4_usingDTable_internal()
817 size_t HUF_decompress4X4_usingDTable(void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize, … in HUF_decompress4X4_usingDTable() argument
822 return HUF_decompress4X4_usingDTable_internal(dst, dstSize, cSrc, cSrcSize, DTable); in HUF_decompress4X4_usingDTable()
825 …p(HUF_DTable *dctx, void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize, void *workspace,… in HUF_decompress4X4_DCtx_wksp() argument
829 size_t hSize = HUF_readDTableX4_wksp(dctx, cSrc, cSrcSize, workspace, workspaceSize); in HUF_decompress4X4_DCtx_wksp()
832 if (hSize >= cSrcSize) in HUF_decompress4X4_DCtx_wksp()
835 cSrcSize -= hSize; in HUF_decompress4X4_DCtx_wksp()
837 return HUF_decompress4X4_usingDTable_internal(dst, dstSize, ip, cSrcSize, dctx); in HUF_decompress4X4_DCtx_wksp()
844 size_t HUF_decompress1X_usingDTable(void *dst, size_t maxDstSize, const void *cSrc, size_t cSrcSize… in HUF_decompress1X_usingDTable() argument
847 …return dtd.tableType ? HUF_decompress1X4_usingDTable_internal(dst, maxDstSize, cSrc, cSrcSize, DTa… in HUF_decompress1X_usingDTable()
848 : HUF_decompress1X2_usingDTable_internal(dst, maxDstSize, cSrc, cSrcSize, DTable); in HUF_decompress1X_usingDTable()
851 size_t HUF_decompress4X_usingDTable(void *dst, size_t maxDstSize, const void *cSrc, size_t cSrcSize… in HUF_decompress4X_usingDTable() argument
854 …return dtd.tableType ? HUF_decompress4X4_usingDTable_internal(dst, maxDstSize, cSrc, cSrcSize, DTa… in HUF_decompress4X_usingDTable()
855 : HUF_decompress4X2_usingDTable_internal(dst, maxDstSize, cSrc, cSrcSize, DTable); in HUF_decompress4X_usingDTable()
887 U32 HUF_selectDecoder(size_t dstSize, size_t cSrcSize) in HUF_selectDecoder() argument
890 U32 const Q = (U32)(cSrcSize * 16 / dstSize); /* Q < 16 since dstSize > cSrcSize */ in HUF_selectDecoder()
899 typedef size_t (*decompressionAlgo)(void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize);
901 …p(HUF_DTable *dctx, void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize, void *workspace,… in HUF_decompress4X_DCtx_wksp() argument
906 if (cSrcSize > dstSize) in HUF_decompress4X_DCtx_wksp()
908 if (cSrcSize == dstSize) { in HUF_decompress4X_DCtx_wksp()
912 if (cSrcSize == 1) { in HUF_decompress4X_DCtx_wksp()
918 U32 const algoNb = HUF_selectDecoder(dstSize, cSrcSize); in HUF_decompress4X_DCtx_wksp()
919 …return algoNb ? HUF_decompress4X4_DCtx_wksp(dctx, dst, dstSize, cSrc, cSrcSize, workspace, workspa… in HUF_decompress4X_DCtx_wksp()
920 … : HUF_decompress4X2_DCtx_wksp(dctx, dst, dstSize, cSrc, cSrcSize, workspace, workspaceSize); in HUF_decompress4X_DCtx_wksp()
924 …p(HUF_DTable *dctx, void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize, void *workspace,… in HUF_decompress4X_hufOnly_wksp() argument
929 if ((cSrcSize >= dstSize) || (cSrcSize <= 1)) in HUF_decompress4X_hufOnly_wksp()
933 U32 const algoNb = HUF_selectDecoder(dstSize, cSrcSize); in HUF_decompress4X_hufOnly_wksp()
934 …return algoNb ? HUF_decompress4X4_DCtx_wksp(dctx, dst, dstSize, cSrc, cSrcSize, workspace, workspa… in HUF_decompress4X_hufOnly_wksp()
935 … : HUF_decompress4X2_DCtx_wksp(dctx, dst, dstSize, cSrc, cSrcSize, workspace, workspaceSize); in HUF_decompress4X_hufOnly_wksp()
939 …p(HUF_DTable *dctx, void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize, void *workspace,… in HUF_decompress1X_DCtx_wksp() argument
944 if (cSrcSize > dstSize) in HUF_decompress1X_DCtx_wksp()
946 if (cSrcSize == dstSize) { in HUF_decompress1X_DCtx_wksp()
950 if (cSrcSize == 1) { in HUF_decompress1X_DCtx_wksp()
956 U32 const algoNb = HUF_selectDecoder(dstSize, cSrcSize); in HUF_decompress1X_DCtx_wksp()
957 …return algoNb ? HUF_decompress1X4_DCtx_wksp(dctx, dst, dstSize, cSrc, cSrcSize, workspace, workspa… in HUF_decompress1X_DCtx_wksp()
958 … : HUF_decompress1X2_DCtx_wksp(dctx, dst, dstSize, cSrc, cSrcSize, workspace, workspaceSize); in HUF_decompress1X_DCtx_wksp()