...
1
2
3
4
5
6
7 package codec
8
9 import "reflect"
10
11 const fastpathEnabled = false
12
13
14
15
16
17
18
19
20
21 func fastpathDecodeTypeSwitch(iv interface{}, d *Decoder) bool { return false }
22 func fastpathEncodeTypeSwitch(iv interface{}, e *Encoder) bool { return false }
23
24
25
26
27 func fastpathDecodeSetZeroTypeSwitch(iv interface{}) bool { return false }
28
29 type fastpathT struct{}
30 type fastpathE struct {
31 rtid uintptr
32 rt reflect.Type
33 encfn func(*Encoder, *codecFnInfo, reflect.Value)
34 decfn func(*Decoder, *codecFnInfo, reflect.Value)
35 }
36 type fastpathA [0]fastpathE
37
38 func fastpathAvIndex(rtid uintptr) int { return -1 }
39
40 var fastpathAv fastpathA
41 var fastpathTV fastpathT
42
View as plain text