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

Method getStringArray

real_decoder.go:291–310  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

289}
290
291func (rd *realDecoder) getStringArray() ([]string, error) {
292 n, err := rd.getArrayLength()
293 if err != nil {
294 return nil, err
295 }
296 if n <= 0 {
297 return nil, nil
298 }
299
300 ret := make([]string, n)
301 for i := range ret {
302 str, err := rd.getString()
303 if err != nil {
304 return nil, err
305 }
306
307 ret[i] = str
308 }
309 return ret, nil
310}
311
312// subsets
313

Callers

nothing calls this directly

Calls 2

getArrayLengthMethod · 0.95
getStringMethod · 0.95

Tested by

no test coverage detected