MCPcopy Index your code
hub / github.com/klauspost/compress / newBytesReader

Function newBytesReader

zstd/decoder_test.go:1341–1343  ·  view source on GitHub ↗

newBytesReader returns a *bytes.Reader that also supports Bytes() []byte

(b []byte)

Source from the content-addressed store, hash-verified

1339
1340// newBytesReader returns a *bytes.Reader that also supports Bytes() []byte
1341func newBytesReader(b []byte) *bytesReader {
1342 return &bytesReader{Reader: bytes.NewReader(b), buf: b}
1343}
1344
1345type bytesReader struct {
1346 *bytes.Reader

Callers 3

FuzzDecoderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…