MCPcopy Create free account
hub / github.com/coreboot/coreboot / uzstdn

Function uzstdn

src/commonlib/bsd/zstd_wrapper.c:12–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10#include <zstd_decompress_internal.h>
11
12size_t uzstdn(const void *src, size_t srcn, void *dst, size_t dstn)
13{
14 static ZSTD_DCtx dctx __aligned(8);
15 if (!ZSTD_initStaticDCtx(&dctx, sizeof(dctx)))
16 return 0;
17 return ZSTD_decompressDCtx(&dctx, dst, dstn, src, srcn);
18}

Callers 2

cbfs_load_and_decompressFunction · 0.50
load_one_segmentFunction · 0.50

Calls 3

ZSTD_initStaticDCtxFunction · 0.85
ZSTD_decompressDCtxFunction · 0.85
__alignedFunction · 0.50

Tested by

no test coverage detected