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

Method getStringArray

real_decoder.go:624–643  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

622}
623
624func (rd *realFlexibleDecoder) getStringArray() ([]string, error) {
625 n, err := rd.getArrayLength()
626 if err != nil {
627 return nil, err
628 }
629 if n <= 0 {
630 return nil, nil
631 }
632
633 ret := make([]string, n)
634 for i := range ret {
635 str, err := rd.getString()
636 if err != nil {
637 return nil, err
638 }
639
640 ret[i] = str
641 }
642 return ret, nil
643}

Callers

nothing calls this directly

Calls 2

getArrayLengthMethod · 0.95
getStringMethod · 0.95

Tested by

no test coverage detected