(rv reflect.Value, ti *typeInfo)
| 396 | } |
| 397 | |
| 398 | func (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 | |
| 411 | func (e *Encoder) kChan(f *codecFnInfo, rv reflect.Value) { |
| 412 | if f.ti.chandir&uint8(reflect.RecvDir) == 0 { |
no test coverage detected