MCPcopy Index your code
hub / github.com/ugorji/go / kArrayW

Method kArrayW

codec/encode.go:398–409  ·  view source on GitHub ↗
(rv reflect.Value, ti *typeInfo)

Source from the content-addressed store, hash-verified

396}
397
398func (e *Encoder) kArrayW(rv reflect.Value, ti *typeInfo) {
399 var l = rv.Len()
400 e.arrayStart(l)
401 if l > 0 {
402 fn := e.kSeqFn(ti.elem)
403 for j := 0; j < l; j++ {
404 e.arrayElem()
405 e.encodeValue(rv.Index(j), fn)
406 }
407 }
408 e.arrayEnd()
409}
410
411func (e *Encoder) kChan(f *codecFnInfo, rv reflect.Value) {
412 if f.ti.chandir&uint8(reflect.RecvDir) == 0 {

Callers 1

kArrayMethod · 0.95

Calls 6

arrayStartMethod · 0.95
kSeqFnMethod · 0.95
arrayElemMethod · 0.95
encodeValueMethod · 0.95
arrayEndMethod · 0.95
LenMethod · 0.45

Tested by

no test coverage detected