(t reflect.Type, cache map[unsafe.Pointer]codec)
| 85 | } |
| 86 | |
| 87 | func constructCachedCodec(t reflect.Type, cache map[unsafe.Pointer]codec) codec { |
| 88 | c := constructCodec(t, map[reflect.Type]*structType{}, t.Kind() == reflect.Ptr) |
| 89 | |
| 90 | if inlined(t) { |
| 91 | c.encode = constructInlineValueEncodeFunc(c.encode) |
| 92 | } |
| 93 | |
| 94 | cacheStore(t, c, cache) |
| 95 | return c |
| 96 | } |
| 97 | |
| 98 | func constructCodec(t reflect.Type, seen map[reflect.Type]*structType, canAddr bool) (c codec) { |
| 99 | switch t { |
no test coverage detected
searching dependent graphs…