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

Method readString

protocol/decode.go:231–237  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

229}
230
231func (d *decoder) readString() string {
232 if n := d.readInt16(); n < 0 {
233 return ""
234 } else {
235 return bytesToString(d.read(int(n)))
236 }
237}
238
239func (d *decoder) readVarString() string {
240 if n := d.readVarInt(); n < 0 {

Callers 2

ReadRequestFunction · 0.95
decodeStringMethod · 0.95

Calls 3

readInt16Method · 0.95
readMethod · 0.95
bytesToStringFunction · 0.70

Tested by

no test coverage detected