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

Function constructInterfaceCodec

json/codec.go:772–777  ·  view source on GitHub ↗
(t reflect.Type)

Source from the content-addressed store, hash-verified

770}
771
772func constructInterfaceCodec(t reflect.Type) codec {
773 return codec{
774 encode: constructMaybeEmptyInterfaceEncoderFunc(t),
775 decode: constructMaybeEmptyInterfaceDecoderFunc(t),
776 }
777}
778
779func constructMaybeEmptyInterfaceEncoderFunc(t reflect.Type) encodeFunc {
780 return func(e encoder, b []byte, p unsafe.Pointer) ([]byte, error) {

Callers 1

constructCodecFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…