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

Function constructMapEncodeFunc

json/codec.go:453–457  ·  view source on GitHub ↗
(t reflect.Type, encodeKey, encodeValue encodeFunc, sortKeys sortFunc)

Source from the content-addressed store, hash-verified

451}
452
453func constructMapEncodeFunc(t reflect.Type, encodeKey, encodeValue encodeFunc, sortKeys sortFunc) encodeFunc {
454 return func(e encoder, b []byte, p unsafe.Pointer) ([]byte, error) {
455 return e.encodeMap(b, p, t, encodeKey, encodeValue, sortKeys)
456 }
457}
458
459func constructMapDecodeFunc(t reflect.Type, decodeKey, decodeValue decodeFunc) decodeFunc {
460 kt := t.Key()

Callers 1

constructMapCodecFunction · 0.85

Calls 1

encodeMapMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…