MCPcopy Index your code
hub / github.com/segmentio/encoding / constructPointerCodec

Function constructPointerCodec

json/codec.go:751–758  ·  view source on GitHub ↗
(t reflect.Type, seen map[reflect.Type]*structType)

Source from the content-addressed store, hash-verified

749}
750
751func 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
760func constructPointerEncodeFunc(t reflect.Type, encode encodeFunc) encodeFunc {
761 return func(e encoder, b []byte, p unsafe.Pointer) ([]byte, error) {

Callers 1

constructCodecFunction · 0.85

Calls 4

constructCodecFunction · 0.85
ElemMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…