MCPcopy Index your code
hub / github.com/vmihailenco/msgpack / encodeArrayValue

Function encodeArrayValue

encode_slice.go:128–139  ·  view source on GitHub ↗
(e *Encoder, v reflect.Value)

Source from the content-addressed store, hash-verified

126}
127
128func encodeArrayValue(e *Encoder, v reflect.Value) error {
129 l := v.Len()
130 if err := e.EncodeArrayLen(l); err != nil {
131 return err
132 }
133 for i := 0; i < l; i++ {
134 if err := e.EncodeValue(v.Index(i)); err != nil {
135 return err
136 }
137 }
138 return nil
139}

Callers 1

encodeSliceValueFunction · 0.85

Calls 2

EncodeArrayLenMethod · 0.80
EncodeValueMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…