/freebsd/sys/contrib/zstd/lib/common/ |
H A D | entropy_common.c | 71 const void* headerBuffer, size_t hbSize) in FSE_readNCount_body() argument 73 const BYTE* const istart = (const BYTE*) headerBuffer; in FSE_readNCount_body() 88 ZSTD_memcpy(buffer, headerBuffer, hbSize); in FSE_readNCount_body() 220 const void* headerBuffer, size_t hbSize) in FSE_readNCount_body_default() argument 222 return FSE_readNCount_body(normalizedCounter, maxSVPtr, tableLogPtr, headerBuffer, hbSize); in FSE_readNCount_body_default() 228 const void* headerBuffer, size_t hbSize) in FSE_readNCount_body_bmi2() argument 230 return FSE_readNCount_body(normalizedCounter, maxSVPtr, tableLogPtr, headerBuffer, hbSize); in FSE_readNCount_body_bmi2() 236 const void* headerBuffer, size_t hbSize, int bmi2) in FSE_readNCount_bmi2() argument 240 … return FSE_readNCount_body_bmi2(normalizedCounter, maxSVPtr, tableLogPtr, headerBuffer, hbSize); in FSE_readNCount_bmi2() 244 …return FSE_readNCount_body_default(normalizedCounter, maxSVPtr, tableLogPtr, headerBuffer, hbSize); in FSE_readNCount_bmi2() [all …]
|
/freebsd/sys/contrib/openzfs/module/zstd/lib/common/ |
H A D | entropy_common.c | 42 const void* headerBuffer, size_t hbSize) in FSE_readNCount() argument 44 const BYTE* const istart = (const BYTE*) headerBuffer; in FSE_readNCount() 59 memcpy(buffer, headerBuffer, hbSize); in FSE_readNCount()
|
/freebsd/sys/contrib/openzfs/module/zstd/lib/decompress/ |
H A D | zstd_decompress.c | 902 memcpy(dctx->headerBuffer, src, srcSize); in ZSTD_decompressContinue() 909 memcpy(dctx->headerBuffer, src, srcSize); in ZSTD_decompressContinue() 916 memcpy(dctx->headerBuffer + (dctx->headerSize - srcSize), src, srcSize); in ZSTD_decompressContinue() 917 FORWARD_IF_ERROR(ZSTD_decodeFrameHeader(dctx, dctx->headerBuffer, dctx->headerSize), ""); in ZSTD_decompressContinue() 1022 …memcpy(dctx->headerBuffer + (ZSTD_SKIPPABLEHEADERSIZE - srcSize), src, srcSize); /* complete ski… in ZSTD_decompressContinue() 1023 …dctx->expected = MEM_readLE32(dctx->headerBuffer + ZSTD_FRAMEIDSIZE); /* note : dctx->expected c… in ZSTD_decompressContinue() 1637 …{ size_t const hSize = ZSTD_getFrameHeader_advanced(&zds->fParams, zds->headerBuffer, zds->lhSiz… in ZSTD_decompressStream() 1666 memcpy(zds->headerBuffer + zds->lhSize, ip, remainingInput); in ZSTD_decompressStream() 1673 … memcpy(zds->headerBuffer + zds->lhSize, ip, toLoad); zds->lhSize = hSize; ip += toLoad; in ZSTD_decompressStream() 1707 …if ((MEM_readLE32(zds->headerBuffer) & ZSTD_MAGIC_SKIPPABLE_MASK) == ZSTD_MAGIC_SKIPPABLE_START) {… in ZSTD_decompressStream() [all …]
|
H A D | zstd_decompress_internal.h | 160 BYTE headerBuffer[ZSTD_FRAMEHEADERSIZE_MAX]; member
|
/freebsd/sys/contrib/zstd/lib/decompress/ |
H A D | zstd_decompress.c | 1175 ZSTD_memcpy(dctx->headerBuffer, src, srcSize); in ZSTD_decompressContinue() 1182 ZSTD_memcpy(dctx->headerBuffer, src, srcSize); in ZSTD_decompressContinue() 1189 ZSTD_memcpy(dctx->headerBuffer + (dctx->headerSize - srcSize), src, srcSize); in ZSTD_decompressContinue() 1190 FORWARD_IF_ERROR(ZSTD_decodeFrameHeader(dctx, dctx->headerBuffer, dctx->headerSize), ""); in ZSTD_decompressContinue() 1300 …ZSTD_memcpy(dctx->headerBuffer + (ZSTD_SKIPPABLEHEADERSIZE - srcSize), src, srcSize); /* complet… in ZSTD_decompressContinue() 1301 …dctx->expected = MEM_readLE32(dctx->headerBuffer + ZSTD_FRAMEIDSIZE); /* note : dctx->expected c… in ZSTD_decompressContinue() 1979 …{ size_t const hSize = ZSTD_getFrameHeader_advanced(&zds->fParams, zds->headerBuffer, zds->lhSiz… in ZSTD_decompressStream() 2011 ZSTD_memcpy(zds->headerBuffer + zds->lhSize, ip, remainingInput); in ZSTD_decompressStream() 2018 … ZSTD_memcpy(zds->headerBuffer + zds->lhSize, ip, toLoad); zds->lhSize = hSize; ip += toLoad; in ZSTD_decompressStream() 2052 …if ((MEM_readLE32(zds->headerBuffer) & ZSTD_MAGIC_SKIPPABLE_MASK) == ZSTD_MAGIC_SKIPPABLE_START) {… in ZSTD_decompressStream() [all …]
|
H A D | zstd_decompress_internal.h | 194 BYTE headerBuffer[ZSTD_FRAMEHEADERSIZE_MAX]; member
|
/freebsd/sys/contrib/zstd/lib/legacy/ |
H A D | zstd_v07.c | 1208 const void* headerBuffer, size_t hbSize) in FSEv07_readNCount() argument 1210 const BYTE* const istart = (const BYTE*) headerBuffer; in FSEv07_readNCount() 2953 BYTE headerBuffer[ZSTDv07_FRAMEHEADERSIZE_MAX]; member 3996 memcpy(dctx->headerBuffer, src, ZSTDv07_frameHeaderSize_min); in ZSTDv07_decompressContinue() 4003 memcpy(dctx->headerBuffer, src, ZSTDv07_frameHeaderSize_min); in ZSTDv07_decompressContinue() 4013 memcpy(dctx->headerBuffer + ZSTDv07_frameHeaderSize_min, src, dctx->expected); in ZSTDv07_decompressContinue() 4014 result = ZSTDv07_decodeFrameHeader(dctx, dctx->headerBuffer, dctx->headerSize); in ZSTDv07_decompressContinue() 4068 { memcpy(dctx->headerBuffer + ZSTDv07_frameHeaderSize_min, src, dctx->expected); in ZSTDv07_decompressContinue() 4069 dctx->expected = MEM_readLE32(dctx->headerBuffer + 4); in ZSTDv07_decompressContinue() 4325 BYTE headerBuffer[ZSTDv07_FRAMEHEADERSIZE_MAX]; member [all …]
|
H A D | zstd_v06.c | 1264 const void* headerBuffer, size_t hbSize) in FSEv06_readNCount() argument 1266 const BYTE* const istart = (const BYTE*) headerBuffer; in FSEv06_readNCount() 2823 BYTE headerBuffer[ZSTDv06_FRAMEHEADERSIZE_MAX]; member 3738 memcpy(dctx->headerBuffer, src, ZSTDv06_frameHeaderSize_min); in ZSTDv06_decompressContinue() 3748 memcpy(dctx->headerBuffer + ZSTDv06_frameHeaderSize_min, src, dctx->expected); in ZSTDv06_decompressContinue() 3749 result = ZSTDv06_decodeFrameHeader(dctx, dctx->headerBuffer, dctx->headerSize); in ZSTDv06_decompressContinue() 3960 BYTE headerBuffer[ZSTDv06_FRAMEHEADERSIZE_MAX]; member 4033 … { size_t const hSize = ZSTDv06_getFrameParams(&(zbd->fParams), zbd->headerBuffer, zbd->lhSize); in ZBUFFv06_decompressContinue() 4038 memcpy(zbd->headerBuffer + zbd->lhSize, ip, iend-ip); in ZBUFFv06_decompressContinue() 4043 … memcpy(zbd->headerBuffer + zbd->lhSize, ip, toLoad); zbd->lhSize = hSize; ip += toLoad; in ZBUFFv06_decompressContinue() [all …]
|
H A D | zstd_v04.c | 1157 const void* headerBuffer, size_t hbSize) in FSE_readNCount() argument 1159 const BYTE* const istart = (const BYTE*) headerBuffer; in FSE_readNCount() 2511 BYTE headerBuffer[ZSTD_frameHeaderSize_max]; member 3210 memcpy(ctx->headerBuffer, src, ZSTD_frameHeaderSize_min); in ZSTD_decompressContinue() 3216 … { size_t const result = ZSTD_decodeFrameHeader_Part2(ctx, ctx->headerBuffer, ctx->headerSize); in ZSTD_decompressContinue() 3367 unsigned char headerBuffer[ZSTD_frameHeaderSize_max]; member 3448 memcpy(zbc->headerBuffer+zbc->hPos, src, *srcSizePtr); in ZBUFF_decompressContinue() 3461 zbc->headerBuffer + zbc->hPos, ZSTD_frameHeaderSize_max - zbc->hPos, in ZBUFF_decompressContinue() 3465 headerSize = ZSTD_getFrameParams(&(zbc->params), zbc->headerBuffer, zbc->hPos); in ZBUFF_decompressContinue() 3494 memcpy(zbc->inBuff, zbc->headerBuffer, zbc->hPos); in ZBUFF_decompressContinue()
|
H A D | zstd_v05.c | 1283 const void* headerBuffer, size_t hbSize) in FSEv05_readNCount() argument 1285 const BYTE* const istart = (const BYTE*) headerBuffer; in FSEv05_readNCount() 2662 BYTE headerBuffer[ZSTDv05_frameHeaderSize_max]; member 3597 memcpy(dctx->headerBuffer, src, ZSTDv05_frameHeaderSize_min); in ZSTDv05_decompressContinue() 3603 …{ size_t const result = ZSTDv05_decodeFrameHeader_Part2(dctx, dctx->headerBuffer, dctx->headerSi… in ZSTDv05_decompressContinue() 3845 unsigned char headerBuffer[ZSTDv05_frameHeaderSize_max]; member 3910 memcpy(zbc->headerBuffer+zbc->hPos, src, *srcSizePtr); in ZBUFFv05_decompressContinue() 3924 zbc->headerBuffer + zbc->hPos, ZSTDv05_frameHeaderSize_max - zbc->hPos, in ZBUFFv05_decompressContinue() 3928 headerSize = ZSTDv05_getFrameParams(&(zbc->params), zbc->headerBuffer, zbc->hPos); in ZBUFFv05_decompressContinue() 3957 memcpy(zbc->inBuff, zbc->headerBuffer, zbc->hPos); in ZBUFFv05_decompressContinue()
|
H A D | zstd_v01.c | 479 const void* headerBuffer, size_t hbSize) in FSE_readNCount() argument 481 const BYTE* const istart = (const BYTE*) headerBuffer; in FSE_readNCount()
|
H A D | zstd_v03.c | 1180 const void* headerBuffer, size_t hbSize) in FSE_readNCount() argument 1182 const BYTE* const istart = (const BYTE*) headerBuffer; in FSE_readNCount()
|
H A D | zstd_v02.c | 1179 const void* headerBuffer, size_t hbSize) in FSE_readNCount() argument 1181 const BYTE* const istart = (const BYTE*) headerBuffer; in FSE_readNCount()
|
/freebsd/sys/contrib/zstd/programs/ |
H A D | fileio.c | 2958 BYTE headerBuffer[ZSTD_FRAMEHEADERSIZE_MAX]; in FIO_analyzeFrames() local 2959 size_t const numBytesRead = fread(headerBuffer, 1, sizeof(headerBuffer), srcFile); in FIO_analyzeFrames() 2976 { U32 const magicNumber = MEM_readLE32(headerBuffer); in FIO_analyzeFrames() 2980 U64 const frameContentSize = ZSTD_getFrameContentSize(headerBuffer, numBytesRead); in FIO_analyzeFrames() 2987 ERROR_IF(ZSTD_getFrameHeader(&header, headerBuffer, numBytesRead) != 0, in FIO_analyzeFrames() 2991 { size_t const headerSize = ZSTD_frameHeaderSize(headerBuffer, numBytesRead); in FIO_analyzeFrames() 3017 { BYTE const frameHeaderDescriptor = headerBuffer[4]; in FIO_analyzeFrames() 3028 U32 const frameSize = MEM_readLE32(headerBuffer + 4); in FIO_analyzeFrames()
|