(t reflect.Type, encodeKey, encodeValue encodeFunc, sortKeys sortFunc)
| 276 | return Codec{encode: createMapEncodeFunc(t, kc.encode, vc.encode, sortKeys), decode: createMapDecodeFunc(t, kc.decode, vc.decode)} |
| 277 | } |
| 278 | func createMapEncodeFunc(t reflect.Type, encodeKey, encodeValue encodeFunc, sortKeys sortFunc) encodeFunc { |
| 279 | return func(e encoder, b []byte, p unsafe.Pointer) ([]byte, error) { |
| 280 | return e.encodeMap(b, p, t, encodeKey, encodeValue, sortKeys) |
| 281 | } |
| 282 | } |
| 283 | func createMapDecodeFunc(t reflect.Type, decodeKey, decodeValue decodeFunc) decodeFunc { |
| 284 | kt := t.Key() |
| 285 | vt := t.Elem() |
no test coverage detected
searching dependent graphs…