MCPcopy Create free account
hub / github.com/IBM/sarama / getString

Method getString

real_decoder.go:214–223  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

212}
213
214func (rd *realDecoder) getString() (string, error) {
215 n, err := rd.getStringLength()
216 if err != nil || n == -1 {
217 return "", err
218 }
219
220 tmpStr := string(rd.raw[rd.off : rd.off+n])
221 rd.off += n
222 return tmpStr, nil
223}
224
225func (rd *realDecoder) getNullableString() (*string, error) {
226 n, err := rd.getStringLength()

Callers 1

getStringArrayMethod · 0.95

Calls 1

getStringLengthMethod · 0.95

Tested by

no test coverage detected