MCPcopy
hub / github.com/grpc/grpc-go / Reader

Method Reader

mem/buffer_slice.go:121–127  ·  view source on GitHub ↗

Reader returns a new Reader for the input slice after taking references to each underlying buffer.

()

Source from the content-addressed store, hash-verified

119// Reader returns a new Reader for the input slice after taking references to
120// each underlying buffer.
121func (s BufferSlice) Reader() *Reader {
122 s.Ref()
123 return &Reader{
124 data: s,
125 len: s.Len(),
126 }
127}
128
129// Reader exposes a BufferSlice's data as an io.Reader, allowing it to interface
130// with other systems.

Callers 3

decompressFunction · 0.80

Calls 2

RefMethod · 0.95
LenMethod · 0.95

Tested by 2