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

Method kArray

codec/encode.go:439–447  ·  view source on GitHub ↗
(f *codecFnInfo, rv reflect.Value)

Source from the content-addressed store, hash-verified

437}
438
439func (e *Encoder) kArray(f *codecFnInfo, rv reflect.Value) {
440 if f.ti.mbs {
441 e.kArrayWMbs(rv, f.ti)
442 } else if handleBytesWithinKArray && uint8TypId == rt2id(f.ti.elem) {
443 e.e.EncodeStringBytesRaw(rvGetArrayBytes(rv, []byte{}))
444 } else {
445 e.kArrayW(rv, f.ti)
446 }
447}
448
449func (e *Encoder) kSliceBytesChan(rv reflect.Value) {
450 // do not use range, so that the number of elements encoded

Callers

nothing calls this directly

Calls 5

kArrayWMbsMethod · 0.95
kArrayWMethod · 0.95
rt2idFunction · 0.70
rvGetArrayBytesFunction · 0.70
EncodeStringBytesRawMethod · 0.65

Tested by

no test coverage detected