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

Function AppendUnzstdBytes

zstd.go:161–165  ·  view source on GitHub ↗

AppendUnzstdBytes appends unzstd src to dst and returns the resulting dst.

(dst, src []byte)

Source from the content-addressed store, hash-verified

159
160// AppendUnzstdBytes appends unzstd src to dst and returns the resulting dst.
161func AppendUnzstdBytes(dst, src []byte) ([]byte, error) {
162 w := &byteSliceWriter{b: dst}
163 _, err := WriteUnzstd(w, src)
164 return w.b, err
165}
166
167// normalizes compression level into [0..7], so it could be used as an index
168// in *PoolMap.

Callers 1

testZstdBytesSingleCaseFunction · 0.85

Calls 1

WriteUnzstdFunction · 0.85

Tested by 1

testZstdBytesSingleCaseFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…