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

Method getNullableString

real_decoder.go:225–234  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

223}
224
225func (rd *realDecoder) getNullableString() (*string, error) {
226 n, err := rd.getStringLength()
227 if err != nil || n == -1 {
228 return nil, err
229 }
230
231 tmpStr := string(rd.raw[rd.off : rd.off+n])
232 rd.off += n
233 return &tmpStr, err
234}
235
236func (rd *realDecoder) getNullableInt32Array() ([]int32, error) {
237 n, err := rd.getArrayLength()

Callers

nothing calls this directly

Calls 1

getStringLengthMethod · 0.95

Tested by

no test coverage detected