MCPcopy Index your code
hub / github.com/foxcpp/maddy / NewBytesReader

Function NewBytesReader

framework/buffer/bytesreader.go:54–61  ·  view source on GitHub ↗
(b []byte)

Source from the content-addressed store, hash-verified

52}
53
54func NewBytesReader(b []byte) BytesReader {
55 // BytesReader and not *BytesReader because BytesReader already wraps two
56 // pointers and double indirection would be pointless.
57 return BytesReader{
58 Reader: bytes.NewReader(b),
59 value: b,
60 }
61}

Callers 2

CopyMethod · 0.85
OpenMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected