MCPcopy
hub / github.com/segmentio/kafka-go / readNewString

Function readNewString

read.go:117–120  ·  view source on GitHub ↗
(r *bufio.Reader, sz int, n int)

Source from the content-addressed store, hash-verified

115}
116
117func readNewString(r *bufio.Reader, sz int, n int) (string, int, error) {
118 b, sz, err := readNewBytes(r, sz, n)
119 return string(b), sz, err
120}
121
122func readBytes(r *bufio.Reader, sz int, v *[]byte) (int, error) {
123 return readBytesWith(r, sz, func(r *bufio.Reader, sz int, n int) (remain int, err error) {

Callers 2

readNewStringMethod · 0.85
readStringFunction · 0.85

Calls 1

readNewBytesFunction · 0.85

Tested by

no test coverage detected