MCPcopy Index your code
hub / github.com/CodisLabs/codis / ReadFull

Method ReadFull

pkg/utils/bufio2/bufio.go:164–173  ·  view source on GitHub ↗
(n int)

Source from the content-addressed store, hash-verified

162}
163
164func (b *Reader) ReadFull(n int) ([]byte, error) {
165 if b.err != nil || n == 0 {
166 return nil, b.err
167 }
168 var buf = b.slice.Make(n)
169 if _, err := io.ReadFull(b, buf); err != nil {
170 return nil, err
171 }
172 return buf, nil
173}
174
175type Writer struct {
176 err error

Callers 3

TestReadFunction · 0.80
TestReadFullFunction · 0.80
decodeBulkBytesMethod · 0.80

Calls 1

MakeMethod · 0.80

Tested by 2

TestReadFunction · 0.64
TestReadFullFunction · 0.64