(t reflect.Type, seen map[reflect.Type]*structType)
| 749 | } |
| 750 | |
| 751 | func constructPointerCodec(t reflect.Type, seen map[reflect.Type]*structType) codec { |
| 752 | e := t.Elem() |
| 753 | c := constructCodec(e, seen, true) |
| 754 | return codec{ |
| 755 | encode: constructPointerEncodeFunc(e, c.encode), |
| 756 | decode: constructPointerDecodeFunc(e, c.decode), |
| 757 | } |
| 758 | } |
| 759 | |
| 760 | func constructPointerEncodeFunc(t reflect.Type, encode encodeFunc) encodeFunc { |
| 761 | return func(e encoder, b []byte, p unsafe.Pointer) ([]byte, error) { |
no test coverage detected
searching dependent graphs…