MCPcopy Create free account
hub / github.com/segmentio/encoding / constructPointerEncodeFunc

Function constructPointerEncodeFunc

json/codec.go:760–764  ·  view source on GitHub ↗
(t reflect.Type, encode encodeFunc)

Source from the content-addressed store, hash-verified

758}
759
760func constructPointerEncodeFunc(t reflect.Type, encode encodeFunc) encodeFunc {
761 return func(e encoder, b []byte, p unsafe.Pointer) ([]byte, error) {
762 return e.encodePointer(b, p, t, encode)
763 }
764}
765
766func constructPointerDecodeFunc(t reflect.Type, decode decodeFunc) decodeFunc {
767 return func(d decoder, b []byte, p unsafe.Pointer) ([]byte, error) {

Callers 1

constructPointerCodecFunction · 0.85

Calls 1

encodePointerMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…