Home
last modified time | relevance | path

Searched refs:ZSTD_SKIPPABLEHEADERSIZE (Results 1 – 5 of 5) sorted by relevance

/freebsd/sys/contrib/zstd/lib/decompress/
H A Dzstd_decompress.c455 if (srcSize < ZSTD_SKIPPABLEHEADERSIZE) in ZSTD_getFrameHeader_advanced()
456 return ZSTD_SKIPPABLEHEADERSIZE; /* magic number + frame length */ in ZSTD_getFrameHeader_advanced()
558 size_t const skippableHeaderSize = ZSTD_SKIPPABLEHEADERSIZE; in readSkippableFrameSize()
561 RETURN_ERROR_IF(srcSize < ZSTD_SKIPPABLEHEADERSIZE, srcSize_wrong, ""); in readSkippableFrameSize()
564 RETURN_ERROR_IF((U32)(sizeU32 + ZSTD_SKIPPABLEHEADERSIZE) < sizeU32, in readSkippableFrameSize()
589 size_t skippableContentSize = skippableFrameSize - ZSTD_SKIPPABLEHEADERSIZE; in ZSTD_readSkippableFrame()
593 …RETURN_ERROR_IF(skippableFrameSize < ZSTD_SKIPPABLEHEADERSIZE || skippableFrameSize > srcSize, src… in ZSTD_readSkippableFrame()
598 ZSTD_memcpy(dst, (const BYTE *)src + ZSTD_SKIPPABLEHEADERSIZE, skippableContentSize); in ZSTD_readSkippableFrame()
712 if ((srcSize >= ZSTD_SKIPPABLEHEADERSIZE) in ZSTD_findFrameSizeInfo()
1176 …dctx->expected = ZSTD_SKIPPABLEHEADERSIZE - srcSize; /* remaining to load to get full skippable f… in ZSTD_decompressContinue()
[all …]
/freebsd/sys/contrib/openzfs/module/zstd/lib/decompress/
H A Dzstd_decompress.c257 if (srcSize < ZSTD_SKIPPABLEHEADERSIZE) in ZSTD_getFrameHeader_advanced()
258 return ZSTD_SKIPPABLEHEADERSIZE; /* magic number + frame length */ in ZSTD_getFrameHeader_advanced()
357 size_t const skippableHeaderSize = ZSTD_SKIPPABLEHEADERSIZE; in readSkippableFrameSize()
360 RETURN_ERROR_IF(srcSize < ZSTD_SKIPPABLEHEADERSIZE, srcSize_wrong, ""); in readSkippableFrameSize()
363 RETURN_ERROR_IF((U32)(sizeU32 + ZSTD_SKIPPABLEHEADERSIZE) < sizeU32, in readSkippableFrameSize()
471 if ((srcSize >= ZSTD_SKIPPABLEHEADERSIZE) in ZSTD_findFrameSizeInfo()
903 …dctx->expected = ZSTD_SKIPPABLEHEADERSIZE - srcSize; /* remaining to load to get full skippable f… in ZSTD_decompressContinue()
1021 assert(srcSize <= ZSTD_SKIPPABLEHEADERSIZE); in ZSTD_decompressContinue()
1022 …memcpy(dctx->headerBuffer + (ZSTD_SKIPPABLEHEADERSIZE - srcSize), src, srcSize); /* complete ski… in ZSTD_decompressContinue()
/freebsd/sys/contrib/openzfs/module/zstd/lib/
H A Dzstd.h1045 #define ZSTD_SKIPPABLEHEADERSIZE 8 macro
/freebsd/sys/contrib/zstd/lib/
H A Dzstd.h1124 #define ZSTD_SKIPPABLEHEADERSIZE 8 macro
/freebsd/sys/contrib/zstd/lib/compress/
H A Dzstd_compress.c4069 RETURN_ERROR_IF(dstCapacity < srcSize + ZSTD_SKIPPABLEHEADERSIZE /* Skippable frame overhead */, in ZSTD_writeSkippableFrame()
4077 return srcSize + ZSTD_SKIPPABLEHEADERSIZE; in ZSTD_writeSkippableFrame()