MCPcopy
hub / github.com/valyala/fasthttp / releaseStacklessZstdWriter

Function releaseStacklessZstdWriter

zstd.go:58–63  ·  view source on GitHub ↗
(zf stackless.Writer, level int)

Source from the content-addressed store, hash-verified

56}
57
58func releaseStacklessZstdWriter(zf stackless.Writer, level int) {
59 zf.Close()
60 nLevel := normalizeZstdCompressLevel(level)
61 p := stacklessZstdWriterPoolMap[nLevel]
62 p.Put(zf)
63}
64
65func acquireRealZstdWriter(w io.Writer, level int) *zstd.Encoder {
66 nLevel := normalizeZstdCompressLevel(level)

Callers 5

WriteZstdLevelFunction · 0.85
compressZstdBodyStreamFunction · 0.85
compressFileNolockMethod · 0.85

Calls 2

CloseMethod · 0.65

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…