Debian Codegraph @

vendor/github.com/ugorji/go/codec/fast-path.generated.go

raw
1 // +build !notfastpath
2
3 // Copyright (c) 2012-2015 Ugorji Nwoke. All rights reserved.
4 // Use of this source code is governed by a MIT license found in the LICENSE file.
5
6 // ************************************************************
7 // DO NOT EDIT.
8 // THIS FILE IS AUTO-GENERATED from fast-path.go.tmpl
9 // ************************************************************
10
11 package codec
12
13 // Fast path functions try to create a fast path encode or decode implementation
14 // for common maps and slices.
15 //
16 // We define the functions and register then in this single file
17 // so as not to pollute the encode.go and decode.go, and create a dependency in there.
18 // This file can be omitted without causing a build failure.
19 //
20 // The advantage of fast paths is:
21 // - Many calls bypass reflection altogether
22 //
23 // Currently support
24 // - slice of all builtin types,
25 // - map of all builtin types to string or interface value
26 // - symmetrical maps of all builtin types (e.g. str-str, uint8-uint8)
27 // This should provide adequate "typical" implementations.
28 //
29 // Note that fast track decode functions must handle values for which an address cannot be obtained.
30 // For example:
31 // m2 := map[string]int{}
32 // p2 := []interface{}{m2}
33 // // decoding into p2 will bomb if fast track functions do not treat like unaddressable.
34 //
35
36 import (
37 "reflect"
38 "sort"
39 )
40
41 const fastpathEnabled = true
42
43 type fastpathT struct{}
44
45 var fastpathTV fastpathT
46
47 type fastpathE struct {
48 rtid uintptr
49 rt reflect.Type
50 encfn func(*Encoder, *codecFnInfo, reflect.Value)
51 decfn func(*Decoder, *codecFnInfo, reflect.Value)
52 }
53
54 type fastpathA [271]fastpathE
55
56 func (x *fastpathA) index(rtid uintptr) int {
57 // use binary search to grab the index (adapted from sort/search.go)
58 h, i, j := 0, 0, 271 // len(x)
59 for i < j {
60 h = i + (j-i)/2
61 if x[h].rtid < rtid {
62 i = h + 1
63 } else {
64 j = h
65 }
66 }
67 if i < 271 && x[i].rtid == rtid {
68 return i
69 }
70 return -1
71 }
72
73 type fastpathAslice []fastpathE
74
75 func (x fastpathAslice) Len() int { return len(x) }
76 func (x fastpathAslice) Less(i, j int) bool { return x[i].rtid < x[j].rtid }
77 func (x fastpathAslice) Swap(i, j int) { x[i], x[j] = x[j], x[i] }
78
79 var fastpathAV fastpathA
80
81 // due to possible initialization loop error, make fastpath in an init()
82 func init() {
83 i := 0
84 fn := func(v interface{},
85 fe func(*Encoder, *codecFnInfo, reflect.Value),
86 fd func(*Decoder, *codecFnInfo, reflect.Value)) (f fastpathE) {
87 xrt := reflect.TypeOf(v)
88 xptr := rt2id(xrt)
89 if useLookupRecognizedTypes {
90 recognizedRtids = append(recognizedRtids, xptr)
91 recognizedRtidPtrs = append(recognizedRtidPtrs, rt2id(reflect.PtrTo(xrt)))
92 }
93 fastpathAV[i] = fastpathE{xptr, xrt, fe, fd}
94 i++
95 return
96 }
97
98 fn([]interface{}(nil), (*Encoder).fastpathEncSliceIntfR, (*Decoder).fastpathDecSliceIntfR)
99 fn([]string(nil), (*Encoder).fastpathEncSliceStringR, (*Decoder).fastpathDecSliceStringR)
100 fn([]float32(nil), (*Encoder).fastpathEncSliceFloat32R, (*Decoder).fastpathDecSliceFloat32R)
101 fn([]float64(nil), (*Encoder).fastpathEncSliceFloat64R, (*Decoder).fastpathDecSliceFloat64R)
102 fn([]uint(nil), (*Encoder).fastpathEncSliceUintR, (*Decoder).fastpathDecSliceUintR)
103 fn([]uint16(nil), (*Encoder).fastpathEncSliceUint16R, (*Decoder).fastpathDecSliceUint16R)
104 fn([]uint32(nil), (*Encoder).fastpathEncSliceUint32R, (*Decoder).fastpathDecSliceUint32R)
105 fn([]uint64(nil), (*Encoder).fastpathEncSliceUint64R, (*Decoder).fastpathDecSliceUint64R)
106 fn([]uintptr(nil), (*Encoder).fastpathEncSliceUintptrR, (*Decoder).fastpathDecSliceUintptrR)
107 fn([]int(nil), (*Encoder).fastpathEncSliceIntR, (*Decoder).fastpathDecSliceIntR)
108 fn([]int8(nil), (*Encoder).fastpathEncSliceInt8R, (*Decoder).fastpathDecSliceInt8R)
109 fn([]int16(nil), (*Encoder).fastpathEncSliceInt16R, (*Decoder).fastpathDecSliceInt16R)
110 fn([]int32(nil), (*Encoder).fastpathEncSliceInt32R, (*Decoder).fastpathDecSliceInt32R)
111 fn([]int64(nil), (*Encoder).fastpathEncSliceInt64R, (*Decoder).fastpathDecSliceInt64R)
112 fn([]bool(nil), (*Encoder).fastpathEncSliceBoolR, (*Decoder).fastpathDecSliceBoolR)
113
114 fn(map[interface{}]interface{}(nil), (*Encoder).fastpathEncMapIntfIntfR, (*Decoder).fastpathDecMapIntfIntfR)
115 fn(map[interface{}]string(nil), (*Encoder).fastpathEncMapIntfStringR, (*Decoder).fastpathDecMapIntfStringR)
116 fn(map[interface{}]uint(nil), (*Encoder).fastpathEncMapIntfUintR, (*Decoder).fastpathDecMapIntfUintR)
117 fn(map[interface{}]uint8(nil), (*Encoder).fastpathEncMapIntfUint8R, (*Decoder).fastpathDecMapIntfUint8R)
118 fn(map[interface{}]uint16(nil), (*Encoder).fastpathEncMapIntfUint16R, (*Decoder).fastpathDecMapIntfUint16R)
119 fn(map[interface{}]uint32(nil), (*Encoder).fastpathEncMapIntfUint32R, (*Decoder).fastpathDecMapIntfUint32R)
120 fn(map[interface{}]uint64(nil), (*Encoder).fastpathEncMapIntfUint64R, (*Decoder).fastpathDecMapIntfUint64R)
121 fn(map[interface{}]uintptr(nil), (*Encoder).fastpathEncMapIntfUintptrR, (*Decoder).fastpathDecMapIntfUintptrR)
122 fn(map[interface{}]int(nil), (*Encoder).fastpathEncMapIntfIntR, (*Decoder).fastpathDecMapIntfIntR)
123 fn(map[interface{}]int8(nil), (*Encoder).fastpathEncMapIntfInt8R, (*Decoder).fastpathDecMapIntfInt8R)
124 fn(map[interface{}]int16(nil), (*Encoder).fastpathEncMapIntfInt16R, (*Decoder).fastpathDecMapIntfInt16R)
125 fn(map[interface{}]int32(nil), (*Encoder).fastpathEncMapIntfInt32R, (*Decoder).fastpathDecMapIntfInt32R)
126 fn(map[interface{}]int64(nil), (*Encoder).fastpathEncMapIntfInt64R, (*Decoder).fastpathDecMapIntfInt64R)
127 fn(map[interface{}]float32(nil), (*Encoder).fastpathEncMapIntfFloat32R, (*Decoder).fastpathDecMapIntfFloat32R)
128 fn(map[interface{}]float64(nil), (*Encoder).fastpathEncMapIntfFloat64R, (*Decoder).fastpathDecMapIntfFloat64R)
129 fn(map[interface{}]bool(nil), (*Encoder).fastpathEncMapIntfBoolR, (*Decoder).fastpathDecMapIntfBoolR)
130 fn(map[string]interface{}(nil), (*Encoder).fastpathEncMapStringIntfR, (*Decoder).fastpathDecMapStringIntfR)
131 fn(map[string]string(nil), (*Encoder).fastpathEncMapStringStringR, (*Decoder).fastpathDecMapStringStringR)
132 fn(map[string]uint(nil), (*Encoder).fastpathEncMapStringUintR, (*Decoder).fastpathDecMapStringUintR)
133 fn(map[string]uint8(nil), (*Encoder).fastpathEncMapStringUint8R, (*Decoder).fastpathDecMapStringUint8R)
134 fn(map[string]uint16(nil), (*Encoder).fastpathEncMapStringUint16R, (*Decoder).fastpathDecMapStringUint16R)
135 fn(map[string]uint32(nil), (*Encoder).fastpathEncMapStringUint32R, (*Decoder).fastpathDecMapStringUint32R)
136 fn(map[string]uint64(nil), (*Encoder).fastpathEncMapStringUint64R, (*Decoder).fastpathDecMapStringUint64R)
137 fn(map[string]uintptr(nil), (*Encoder).fastpathEncMapStringUintptrR, (*Decoder).fastpathDecMapStringUintptrR)
138 fn(map[string]int(nil), (*Encoder).fastpathEncMapStringIntR, (*Decoder).fastpathDecMapStringIntR)
139 fn(map[string]int8(nil), (*Encoder).fastpathEncMapStringInt8R, (*Decoder).fastpathDecMapStringInt8R)
140 fn(map[string]int16(nil), (*Encoder).fastpathEncMapStringInt16R, (*Decoder).fastpathDecMapStringInt16R)
141 fn(map[string]int32(nil), (*Encoder).fastpathEncMapStringInt32R, (*Decoder).fastpathDecMapStringInt32R)
142 fn(map[string]int64(nil), (*Encoder).fastpathEncMapStringInt64R, (*Decoder).fastpathDecMapStringInt64R)
143 fn(map[string]float32(nil), (*Encoder).fastpathEncMapStringFloat32R, (*Decoder).fastpathDecMapStringFloat32R)
144 fn(map[string]float64(nil), (*Encoder).fastpathEncMapStringFloat64R, (*Decoder).fastpathDecMapStringFloat64R)
145 fn(map[string]bool(nil), (*Encoder).fastpathEncMapStringBoolR, (*Decoder).fastpathDecMapStringBoolR)
146 fn(map[float32]interface{}(nil), (*Encoder).fastpathEncMapFloat32IntfR, (*Decoder).fastpathDecMapFloat32IntfR)
147 fn(map[float32]string(nil), (*Encoder).fastpathEncMapFloat32StringR, (*Decoder).fastpathDecMapFloat32StringR)
148 fn(map[float32]uint(nil), (*Encoder).fastpathEncMapFloat32UintR, (*Decoder).fastpathDecMapFloat32UintR)
149 fn(map[float32]uint8(nil), (*Encoder).fastpathEncMapFloat32Uint8R, (*Decoder).fastpathDecMapFloat32Uint8R)
150 fn(map[float32]uint16(nil), (*Encoder).fastpathEncMapFloat32Uint16R, (*Decoder).fastpathDecMapFloat32Uint16R)
151 fn(map[float32]uint32(nil), (*Encoder).fastpathEncMapFloat32Uint32R, (*Decoder).fastpathDecMapFloat32Uint32R)
152 fn(map[float32]uint64(nil), (*Encoder).fastpathEncMapFloat32Uint64R, (*Decoder).fastpathDecMapFloat32Uint64R)
153 fn(map[float32]uintptr(nil), (*Encoder).fastpathEncMapFloat32UintptrR, (*Decoder).fastpathDecMapFloat32UintptrR)
154 fn(map[float32]int(nil), (*Encoder).fastpathEncMapFloat32IntR, (*Decoder).fastpathDecMapFloat32IntR)
155 fn(map[float32]int8(nil), (*Encoder).fastpathEncMapFloat32Int8R, (*Decoder).fastpathDecMapFloat32Int8R)
156 fn(map[float32]int16(nil), (*Encoder).fastpathEncMapFloat32Int16R, (*Decoder).fastpathDecMapFloat32Int16R)
157 fn(map[float32]int32(nil), (*Encoder).fastpathEncMapFloat32Int32R, (*Decoder).fastpathDecMapFloat32Int32R)
158 fn(map[float32]int64(nil), (*Encoder).fastpathEncMapFloat32Int64R, (*Decoder).fastpathDecMapFloat32Int64R)
159 fn(map[float32]float32(nil), (*Encoder).fastpathEncMapFloat32Float32R, (*Decoder).fastpathDecMapFloat32Float32R)
160 fn(map[float32]float64(nil), (*Encoder).fastpathEncMapFloat32Float64R, (*Decoder).fastpathDecMapFloat32Float64R)
161 fn(map[float32]bool(nil), (*Encoder).fastpathEncMapFloat32BoolR, (*Decoder).fastpathDecMapFloat32BoolR)
162 fn(map[float64]interface{}(nil), (*Encoder).fastpathEncMapFloat64IntfR, (*Decoder).fastpathDecMapFloat64IntfR)
163 fn(map[float64]string(nil), (*Encoder).fastpathEncMapFloat64StringR, (*Decoder).fastpathDecMapFloat64StringR)
164 fn(map[float64]uint(nil), (*Encoder).fastpathEncMapFloat64UintR, (*Decoder).fastpathDecMapFloat64UintR)
165 fn(map[float64]uint8(nil), (*Encoder).fastpathEncMapFloat64Uint8R, (*Decoder).fastpathDecMapFloat64Uint8R)
166 fn(map[float64]uint16(nil), (*Encoder).fastpathEncMapFloat64Uint16R, (*Decoder).fastpathDecMapFloat64Uint16R)
167 fn(map[float64]uint32(nil), (*Encoder).fastpathEncMapFloat64Uint32R, (*Decoder).fastpathDecMapFloat64Uint32R)
168 fn(map[float64]uint64(nil), (*Encoder).fastpathEncMapFloat64Uint64R, (*Decoder).fastpathDecMapFloat64Uint64R)
169 fn(map[float64]uintptr(nil), (*Encoder).fastpathEncMapFloat64UintptrR, (*Decoder).fastpathDecMapFloat64UintptrR)
170 fn(map[float64]int(nil), (*Encoder).fastpathEncMapFloat64IntR, (*Decoder).fastpathDecMapFloat64IntR)
171 fn(map[float64]int8(nil), (*Encoder).fastpathEncMapFloat64Int8R, (*Decoder).fastpathDecMapFloat64Int8R)
172 fn(map[float64]int16(nil), (*Encoder).fastpathEncMapFloat64Int16R, (*Decoder).fastpathDecMapFloat64Int16R)
173 fn(map[float64]int32(nil), (*Encoder).fastpathEncMapFloat64Int32R, (*Decoder).fastpathDecMapFloat64Int32R)
174 fn(map[float64]int64(nil), (*Encoder).fastpathEncMapFloat64Int64R, (*Decoder).fastpathDecMapFloat64Int64R)
175 fn(map[float64]float32(nil), (*Encoder).fastpathEncMapFloat64Float32R, (*Decoder).fastpathDecMapFloat64Float32R)
176 fn(map[float64]float64(nil), (*Encoder).fastpathEncMapFloat64Float64R, (*Decoder).fastpathDecMapFloat64Float64R)
177 fn(map[float64]bool(nil), (*Encoder).fastpathEncMapFloat64BoolR, (*Decoder).fastpathDecMapFloat64BoolR)
178 fn(map[uint]interface{}(nil), (*Encoder).fastpathEncMapUintIntfR, (*Decoder).fastpathDecMapUintIntfR)
179 fn(map[uint]string(nil), (*Encoder).fastpathEncMapUintStringR, (*Decoder).fastpathDecMapUintStringR)
180 fn(map[uint]uint(nil), (*Encoder).fastpathEncMapUintUintR, (*Decoder).fastpathDecMapUintUintR)
181 fn(map[uint]uint8(nil), (*Encoder).fastpathEncMapUintUint8R, (*Decoder).fastpathDecMapUintUint8R)
182 fn(map[uint]uint16(nil), (*Encoder).fastpathEncMapUintUint16R, (*Decoder).fastpathDecMapUintUint16R)
183 fn(map[uint]uint32(nil), (*Encoder).fastpathEncMapUintUint32R, (*Decoder).fastpathDecMapUintUint32R)
184 fn(map[uint]uint64(nil), (*Encoder).fastpathEncMapUintUint64R, (*Decoder).fastpathDecMapUintUint64R)
185 fn(map[uint]uintptr(nil), (*Encoder).fastpathEncMapUintUintptrR, (*Decoder).fastpathDecMapUintUintptrR)
186 fn(map[uint]int(nil), (*Encoder).fastpathEncMapUintIntR, (*Decoder).fastpathDecMapUintIntR)
187 fn(map[uint]int8(nil), (*Encoder).fastpathEncMapUintInt8R, (*Decoder).fastpathDecMapUintInt8R)
188 fn(map[uint]int16(nil), (*Encoder).fastpathEncMapUintInt16R, (*Decoder).fastpathDecMapUintInt16R)
189 fn(map[uint]int32(nil), (*Encoder).fastpathEncMapUintInt32R, (*Decoder).fastpathDecMapUintInt32R)
190 fn(map[uint]int64(nil), (*Encoder).fastpathEncMapUintInt64R, (*Decoder).fastpathDecMapUintInt64R)
191 fn(map[uint]float32(nil), (*Encoder).fastpathEncMapUintFloat32R, (*Decoder).fastpathDecMapUintFloat32R)
192 fn(map[uint]float64(nil), (*Encoder).fastpathEncMapUintFloat64R, (*Decoder).fastpathDecMapUintFloat64R)
193 fn(map[uint]bool(nil), (*Encoder).fastpathEncMapUintBoolR, (*Decoder).fastpathDecMapUintBoolR)
194 fn(map[uint8]interface{}(nil), (*Encoder).fastpathEncMapUint8IntfR, (*Decoder).fastpathDecMapUint8IntfR)
195 fn(map[uint8]string(nil), (*Encoder).fastpathEncMapUint8StringR, (*Decoder).fastpathDecMapUint8StringR)
196 fn(map[uint8]uint(nil), (*Encoder).fastpathEncMapUint8UintR, (*Decoder).fastpathDecMapUint8UintR)
197 fn(map[uint8]uint8(nil), (*Encoder).fastpathEncMapUint8Uint8R, (*Decoder).fastpathDecMapUint8Uint8R)
198 fn(map[uint8]uint16(nil), (*Encoder).fastpathEncMapUint8Uint16R, (*Decoder).fastpathDecMapUint8Uint16R)
199 fn(map[uint8]uint32(nil), (*Encoder).fastpathEncMapUint8Uint32R, (*Decoder).fastpathDecMapUint8Uint32R)
200 fn(map[uint8]uint64(nil), (*Encoder).fastpathEncMapUint8Uint64R, (*Decoder).fastpathDecMapUint8Uint64R)
201 fn(map[uint8]uintptr(nil), (*Encoder).fastpathEncMapUint8UintptrR, (*Decoder).fastpathDecMapUint8UintptrR)
202 fn(map[uint8]int(nil), (*Encoder).fastpathEncMapUint8IntR, (*Decoder).fastpathDecMapUint8IntR)
203 fn(map[uint8]int8(nil), (*Encoder).fastpathEncMapUint8Int8R, (*Decoder).fastpathDecMapUint8Int8R)
204 fn(map[uint8]int16(nil), (*Encoder).fastpathEncMapUint8Int16R, (*Decoder).fastpathDecMapUint8Int16R)
205 fn(map[uint8]int32(nil), (*Encoder).fastpathEncMapUint8Int32R, (*Decoder).fastpathDecMapUint8Int32R)
206 fn(map[uint8]int64(nil), (*Encoder).fastpathEncMapUint8Int64R, (*Decoder).fastpathDecMapUint8Int64R)
207 fn(map[uint8]float32(nil), (*Encoder).fastpathEncMapUint8Float32R, (*Decoder).fastpathDecMapUint8Float32R)
208 fn(map[uint8]float64(nil), (*Encoder).fastpathEncMapUint8Float64R, (*Decoder).fastpathDecMapUint8Float64R)
209 fn(map[uint8]bool(nil), (*Encoder).fastpathEncMapUint8BoolR, (*Decoder).fastpathDecMapUint8BoolR)
210 fn(map[uint16]interface{}(nil), (*Encoder).fastpathEncMapUint16IntfR, (*Decoder).fastpathDecMapUint16IntfR)
211 fn(map[uint16]string(nil), (*Encoder).fastpathEncMapUint16StringR, (*Decoder).fastpathDecMapUint16StringR)
212 fn(map[uint16]uint(nil), (*Encoder).fastpathEncMapUint16UintR, (*Decoder).fastpathDecMapUint16UintR)
213 fn(map[uint16]uint8(nil), (*Encoder).fastpathEncMapUint16Uint8R, (*Decoder).fastpathDecMapUint16Uint8R)
214 fn(map[uint16]uint16(nil), (*Encoder).fastpathEncMapUint16Uint16R, (*Decoder).fastpathDecMapUint16Uint16R)
215 fn(map[uint16]uint32(nil), (*Encoder).fastpathEncMapUint16Uint32R, (*Decoder).fastpathDecMapUint16Uint32R)
216 fn(map[uint16]uint64(nil), (*Encoder).fastpathEncMapUint16Uint64R, (*Decoder).fastpathDecMapUint16Uint64R)
217 fn(map[uint16]uintptr(nil), (*Encoder).fastpathEncMapUint16UintptrR, (*Decoder).fastpathDecMapUint16UintptrR)
218 fn(map[uint16]int(nil), (*Encoder).fastpathEncMapUint16IntR, (*Decoder).fastpathDecMapUint16IntR)
219 fn(map[uint16]int8(nil), (*Encoder).fastpathEncMapUint16Int8R, (*Decoder).fastpathDecMapUint16Int8R)
220 fn(map[uint16]int16(nil), (*Encoder).fastpathEncMapUint16Int16R, (*Decoder).fastpathDecMapUint16Int16R)
221 fn(map[uint16]int32(nil), (*Encoder).fastpathEncMapUint16Int32R, (*Decoder).fastpathDecMapUint16Int32R)
222 fn(map[uint16]int64(nil), (*Encoder).fastpathEncMapUint16Int64R, (*Decoder).fastpathDecMapUint16Int64R)
223 fn(map[uint16]float32(nil), (*Encoder).fastpathEncMapUint16Float32R, (*Decoder).fastpathDecMapUint16Float32R)
224 fn(map[uint16]float64(nil), (*Encoder).fastpathEncMapUint16Float64R, (*Decoder).fastpathDecMapUint16Float64R)
225 fn(map[uint16]bool(nil), (*Encoder).fastpathEncMapUint16BoolR, (*Decoder).fastpathDecMapUint16BoolR)
226 fn(map[uint32]interface{}(nil), (*Encoder).fastpathEncMapUint32IntfR, (*Decoder).fastpathDecMapUint32IntfR)
227 fn(map[uint32]string(nil), (*Encoder).fastpathEncMapUint32StringR, (*Decoder).fastpathDecMapUint32StringR)
228 fn(map[uint32]uint(nil), (*Encoder).fastpathEncMapUint32UintR, (*Decoder).fastpathDecMapUint32UintR)
229 fn(map[uint32]uint8(nil), (*Encoder).fastpathEncMapUint32Uint8R, (*Decoder).fastpathDecMapUint32Uint8R)
230 fn(map[uint32]uint16(nil), (*Encoder).fastpathEncMapUint32Uint16R, (*Decoder).fastpathDecMapUint32Uint16R)
231 fn(map[uint32]uint32(nil), (*Encoder).fastpathEncMapUint32Uint32R, (*Decoder).fastpathDecMapUint32Uint32R)
232 fn(map[uint32]uint64(nil), (*Encoder).fastpathEncMapUint32Uint64R, (*Decoder).fastpathDecMapUint32Uint64R)
233 fn(map[uint32]uintptr(nil), (*Encoder).fastpathEncMapUint32UintptrR, (*Decoder).fastpathDecMapUint32UintptrR)
234 fn(map[uint32]int(nil), (*Encoder).fastpathEncMapUint32IntR, (*Decoder).fastpathDecMapUint32IntR)
235 fn(map[uint32]int8(nil), (*Encoder).fastpathEncMapUint32Int8R, (*Decoder).fastpathDecMapUint32Int8R)
236 fn(map[uint32]int16(nil), (*Encoder).fastpathEncMapUint32Int16R, (*Decoder).fastpathDecMapUint32Int16R)
237 fn(map[uint32]int32(nil), (*Encoder).fastpathEncMapUint32Int32R, (*Decoder).fastpathDecMapUint32Int32R)
238 fn(map[uint32]int64(nil), (*Encoder).fastpathEncMapUint32Int64R, (*Decoder).fastpathDecMapUint32Int64R)
239 fn(map[uint32]float32(nil), (*Encoder).fastpathEncMapUint32Float32R, (*Decoder).fastpathDecMapUint32Float32R)
240 fn(map[uint32]float64(nil), (*Encoder).fastpathEncMapUint32Float64R, (*Decoder).fastpathDecMapUint32Float64R)
241 fn(map[uint32]bool(nil), (*Encoder).fastpathEncMapUint32BoolR, (*Decoder).fastpathDecMapUint32BoolR)
242 fn(map[uint64]interface{}(nil), (*Encoder).fastpathEncMapUint64IntfR, (*Decoder).fastpathDecMapUint64IntfR)
243 fn(map[uint64]string(nil), (*Encoder).fastpathEncMapUint64StringR, (*Decoder).fastpathDecMapUint64StringR)
244 fn(map[uint64]uint(nil), (*Encoder).fastpathEncMapUint64UintR, (*Decoder).fastpathDecMapUint64UintR)
245 fn(map[uint64]uint8(nil), (*Encoder).fastpathEncMapUint64Uint8R, (*Decoder).fastpathDecMapUint64Uint8R)
246 fn(map[uint64]uint16(nil), (*Encoder).fastpathEncMapUint64Uint16R, (*Decoder).fastpathDecMapUint64Uint16R)
247 fn(map[uint64]uint32(nil), (*Encoder).fastpathEncMapUint64Uint32R, (*Decoder).fastpathDecMapUint64Uint32R)
248 fn(map[uint64]uint64(nil), (*Encoder).fastpathEncMapUint64Uint64R, (*Decoder).fastpathDecMapUint64Uint64R)
249 fn(map[uint64]uintptr(nil), (*Encoder).fastpathEncMapUint64UintptrR, (*Decoder).fastpathDecMapUint64UintptrR)
250 fn(map[uint64]int(nil), (*Encoder).fastpathEncMapUint64IntR, (*Decoder).fastpathDecMapUint64IntR)
251 fn(map[uint64]int8(nil), (*Encoder).fastpathEncMapUint64Int8R, (*Decoder).fastpathDecMapUint64Int8R)
252 fn(map[uint64]int16(nil), (*Encoder).fastpathEncMapUint64Int16R, (*Decoder).fastpathDecMapUint64Int16R)
253 fn(map[uint64]int32(nil), (*Encoder).fastpathEncMapUint64Int32R, (*Decoder).fastpathDecMapUint64Int32R)
254 fn(map[uint64]int64(nil), (*Encoder).fastpathEncMapUint64Int64R, (*Decoder).fastpathDecMapUint64Int64R)
255 fn(map[uint64]float32(nil), (*Encoder).fastpathEncMapUint64Float32R, (*Decoder).fastpathDecMapUint64Float32R)
256 fn(map[uint64]float64(nil), (*Encoder).fastpathEncMapUint64Float64R, (*Decoder).fastpathDecMapUint64Float64R)
257 fn(map[uint64]bool(nil), (*Encoder).fastpathEncMapUint64BoolR, (*Decoder).fastpathDecMapUint64BoolR)
258 fn(map[uintptr]interface{}(nil), (*Encoder).fastpathEncMapUintptrIntfR, (*Decoder).fastpathDecMapUintptrIntfR)
259 fn(map[uintptr]string(nil), (*Encoder).fastpathEncMapUintptrStringR, (*Decoder).fastpathDecMapUintptrStringR)
260 fn(map[uintptr]uint(nil), (*Encoder).fastpathEncMapUintptrUintR, (*Decoder).fastpathDecMapUintptrUintR)
261 fn(map[uintptr]uint8(nil), (*Encoder).fastpathEncMapUintptrUint8R, (*Decoder).fastpathDecMapUintptrUint8R)
262 fn(map[uintptr]uint16(nil), (*Encoder).fastpathEncMapUintptrUint16R, (*Decoder).fastpathDecMapUintptrUint16R)
263 fn(map[uintptr]uint32(nil), (*Encoder).fastpathEncMapUintptrUint32R, (*Decoder).fastpathDecMapUintptrUint32R)
264 fn(map[uintptr]uint64(nil), (*Encoder).fastpathEncMapUintptrUint64R, (*Decoder).fastpathDecMapUintptrUint64R)
265 fn(map[uintptr]uintptr(nil), (*Encoder).fastpathEncMapUintptrUintptrR, (*Decoder).fastpathDecMapUintptrUintptrR)
266 fn(map[uintptr]int(nil), (*Encoder).fastpathEncMapUintptrIntR, (*Decoder).fastpathDecMapUintptrIntR)
267 fn(map[uintptr]int8(nil), (*Encoder).fastpathEncMapUintptrInt8R, (*Decoder).fastpathDecMapUintptrInt8R)
268 fn(map[uintptr]int16(nil), (*Encoder).fastpathEncMapUintptrInt16R, (*Decoder).fastpathDecMapUintptrInt16R)
269 fn(map[uintptr]int32(nil), (*Encoder).fastpathEncMapUintptrInt32R, (*Decoder).fastpathDecMapUintptrInt32R)
270 fn(map[uintptr]int64(nil), (*Encoder).fastpathEncMapUintptrInt64R, (*Decoder).fastpathDecMapUintptrInt64R)
271 fn(map[uintptr]float32(nil), (*Encoder).fastpathEncMapUintptrFloat32R, (*Decoder).fastpathDecMapUintptrFloat32R)
272 fn(map[uintptr]float64(nil), (*Encoder).fastpathEncMapUintptrFloat64R, (*Decoder).fastpathDecMapUintptrFloat64R)
273 fn(map[uintptr]bool(nil), (*Encoder).fastpathEncMapUintptrBoolR, (*Decoder).fastpathDecMapUintptrBoolR)
274 fn(map[int]interface{}(nil), (*Encoder).fastpathEncMapIntIntfR, (*Decoder).fastpathDecMapIntIntfR)
275 fn(map[int]string(nil), (*Encoder).fastpathEncMapIntStringR, (*Decoder).fastpathDecMapIntStringR)
276 fn(map[int]uint(nil), (*Encoder).fastpathEncMapIntUintR, (*Decoder).fastpathDecMapIntUintR)
277 fn(map[int]uint8(nil), (*Encoder).fastpathEncMapIntUint8R, (*Decoder).fastpathDecMapIntUint8R)
278 fn(map[int]uint16(nil), (*Encoder).fastpathEncMapIntUint16R, (*Decoder).fastpathDecMapIntUint16R)
279 fn(map[int]uint32(nil), (*Encoder).fastpathEncMapIntUint32R, (*Decoder).fastpathDecMapIntUint32R)
280 fn(map[int]uint64(nil), (*Encoder).fastpathEncMapIntUint64R, (*Decoder).fastpathDecMapIntUint64R)
281 fn(map[int]uintptr(nil), (*Encoder).fastpathEncMapIntUintptrR, (*Decoder).fastpathDecMapIntUintptrR)
282 fn(map[int]int(nil), (*Encoder).fastpathEncMapIntIntR, (*Decoder).fastpathDecMapIntIntR)
283 fn(map[int]int8(nil), (*Encoder).fastpathEncMapIntInt8R, (*Decoder).fastpathDecMapIntInt8R)
284 fn(map[int]int16(nil), (*Encoder).fastpathEncMapIntInt16R, (*Decoder).fastpathDecMapIntInt16R)
285 fn(map[int]int32(nil), (*Encoder).fastpathEncMapIntInt32R, (*Decoder).fastpathDecMapIntInt32R)
286 fn(map[int]int64(nil), (*Encoder).fastpathEncMapIntInt64R, (*Decoder).fastpathDecMapIntInt64R)
287 fn(map[int]float32(nil), (*Encoder).fastpathEncMapIntFloat32R, (*Decoder).fastpathDecMapIntFloat32R)
288 fn(map[int]float64(nil), (*Encoder).fastpathEncMapIntFloat64R, (*Decoder).fastpathDecMapIntFloat64R)
289 fn(map[int]bool(nil), (*Encoder).fastpathEncMapIntBoolR, (*Decoder).fastpathDecMapIntBoolR)
290 fn(map[int8]interface{}(nil), (*Encoder).fastpathEncMapInt8IntfR, (*Decoder).fastpathDecMapInt8IntfR)
291 fn(map[int8]string(nil), (*Encoder).fastpathEncMapInt8StringR, (*Decoder).fastpathDecMapInt8StringR)
292 fn(map[int8]uint(nil), (*Encoder).fastpathEncMapInt8UintR, (*Decoder).fastpathDecMapInt8UintR)
293 fn(map[int8]uint8(nil), (*Encoder).fastpathEncMapInt8Uint8R, (*Decoder).fastpathDecMapInt8Uint8R)
294 fn(map[int8]uint16(nil), (*Encoder).fastpathEncMapInt8Uint16R, (*Decoder).fastpathDecMapInt8Uint16R)
295 fn(map[int8]uint32(nil), (*Encoder).fastpathEncMapInt8Uint32R, (*Decoder).fastpathDecMapInt8Uint32R)
296 fn(map[int8]uint64(nil), (*Encoder).fastpathEncMapInt8Uint64R, (*Decoder).fastpathDecMapInt8Uint64R)
297 fn(map[int8]uintptr(nil), (*Encoder).fastpathEncMapInt8UintptrR, (*Decoder).fastpathDecMapInt8UintptrR)
298 fn(map[int8]int(nil), (*Encoder).fastpathEncMapInt8IntR, (*Decoder).fastpathDecMapInt8IntR)
299 fn(map[int8]int8(nil), (*Encoder).fastpathEncMapInt8Int8R, (*Decoder).fastpathDecMapInt8Int8R)
300 fn(map[int8]int16(nil), (*Encoder).fastpathEncMapInt8Int16R, (*Decoder).fastpathDecMapInt8Int16R)
301 fn(map[int8]int32(nil), (*Encoder).fastpathEncMapInt8Int32R, (*Decoder).fastpathDecMapInt8Int32R)
302 fn(map[int8]int64(nil), (*Encoder).fastpathEncMapInt8Int64R, (*Decoder).fastpathDecMapInt8Int64R)
303 fn(map[int8]float32(nil), (*Encoder).fastpathEncMapInt8Float32R, (*Decoder).fastpathDecMapInt8Float32R)
304 fn(map[int8]float64(nil), (*Encoder).fastpathEncMapInt8Float64R, (*Decoder).fastpathDecMapInt8Float64R)
305 fn(map[int8]bool(nil), (*Encoder).fastpathEncMapInt8BoolR, (*Decoder).fastpathDecMapInt8BoolR)
306 fn(map[int16]interface{}(nil), (*Encoder).fastpathEncMapInt16IntfR, (*Decoder).fastpathDecMapInt16IntfR)
307 fn(map[int16]string(nil), (*Encoder).fastpathEncMapInt16StringR, (*Decoder).fastpathDecMapInt16StringR)
308 fn(map[int16]uint(nil), (*Encoder).fastpathEncMapInt16UintR, (*Decoder).fastpathDecMapInt16UintR)
309 fn(map[int16]uint8(nil), (*Encoder).fastpathEncMapInt16Uint8R, (*Decoder).fastpathDecMapInt16Uint8R)
310 fn(map[int16]uint16(nil), (*Encoder).fastpathEncMapInt16Uint16R, (*Decoder).fastpathDecMapInt16Uint16R)
311 fn(map[int16]uint32(nil), (*Encoder).fastpathEncMapInt16Uint32R, (*Decoder).fastpathDecMapInt16Uint32R)
312 fn(map[int16]uint64(nil), (*Encoder).fastpathEncMapInt16Uint64R, (*Decoder).fastpathDecMapInt16Uint64R)
313 fn(map[int16]uintptr(nil), (*Encoder).fastpathEncMapInt16UintptrR, (*Decoder).fastpathDecMapInt16UintptrR)
314 fn(map[int16]int(nil), (*Encoder).fastpathEncMapInt16IntR, (*Decoder).fastpathDecMapInt16IntR)
315 fn(map[int16]int8(nil), (*Encoder).fastpathEncMapInt16Int8R, (*Decoder).fastpathDecMapInt16Int8R)
316 fn(map[int16]int16(nil), (*Encoder).fastpathEncMapInt16Int16R, (*Decoder).fastpathDecMapInt16Int16R)
317 fn(map[int16]int32(nil), (*Encoder).fastpathEncMapInt16Int32R, (*Decoder).fastpathDecMapInt16Int32R)
318 fn(map[int16]int64(nil), (*Encoder).fastpathEncMapInt16Int64R, (*Decoder).fastpathDecMapInt16Int64R)
319 fn(map[int16]float32(nil), (*Encoder).fastpathEncMapInt16Float32R, (*Decoder).fastpathDecMapInt16Float32R)
320 fn(map[int16]float64(nil), (*Encoder).fastpathEncMapInt16Float64R, (*Decoder).fastpathDecMapInt16Float64R)
321 fn(map[int16]bool(nil), (*Encoder).fastpathEncMapInt16BoolR, (*Decoder).fastpathDecMapInt16BoolR)
322 fn(map[int32]interface{}(nil), (*Encoder).fastpathEncMapInt32IntfR, (*Decoder).fastpathDecMapInt32IntfR)
323 fn(map[int32]string(nil), (*Encoder).fastpathEncMapInt32StringR, (*Decoder).fastpathDecMapInt32StringR)
324 fn(map[int32]uint(nil), (*Encoder).fastpathEncMapInt32UintR, (*Decoder).fastpathDecMapInt32UintR)
325 fn(map[int32]uint8(nil), (*Encoder).fastpathEncMapInt32Uint8R, (*Decoder).fastpathDecMapInt32Uint8R)
326 fn(map[int32]uint16(nil), (*Encoder).fastpathEncMapInt32Uint16R, (*Decoder).fastpathDecMapInt32Uint16R)
327 fn(map[int32]uint32(nil), (*Encoder).fastpathEncMapInt32Uint32R, (*Decoder).fastpathDecMapInt32Uint32R)
328 fn(map[int32]uint64(nil), (*Encoder).fastpathEncMapInt32Uint64R, (*Decoder).fastpathDecMapInt32Uint64R)
329 fn(map[int32]uintptr(nil), (*Encoder).fastpathEncMapInt32UintptrR, (*Decoder).fastpathDecMapInt32UintptrR)
330 fn(map[int32]int(nil), (*Encoder).fastpathEncMapInt32IntR, (*Decoder).fastpathDecMapInt32IntR)
331 fn(map[int32]int8(nil), (*Encoder).fastpathEncMapInt32Int8R, (*Decoder).fastpathDecMapInt32Int8R)
332 fn(map[int32]int16(nil), (*Encoder).fastpathEncMapInt32Int16R, (*Decoder).fastpathDecMapInt32Int16R)
333 fn(map[int32]int32(nil), (*Encoder).fastpathEncMapInt32Int32R, (*Decoder).fastpathDecMapInt32Int32R)
334 fn(map[int32]int64(nil), (*Encoder).fastpathEncMapInt32Int64R, (*Decoder).fastpathDecMapInt32Int64R)
335 fn(map[int32]float32(nil), (*Encoder).fastpathEncMapInt32Float32R, (*Decoder).fastpathDecMapInt32Float32R)
336 fn(map[int32]float64(nil), (*Encoder).fastpathEncMapInt32Float64R, (*Decoder).fastpathDecMapInt32Float64R)
337 fn(map[int32]bool(nil), (*Encoder).fastpathEncMapInt32BoolR, (*Decoder).fastpathDecMapInt32BoolR)
338 fn(map[int64]interface{}(nil), (*Encoder).fastpathEncMapInt64IntfR, (*Decoder).fastpathDecMapInt64IntfR)
339 fn(map[int64]string(nil), (*Encoder).fastpathEncMapInt64StringR, (*Decoder).fastpathDecMapInt64StringR)
340 fn(map[int64]uint(nil), (*Encoder).fastpathEncMapInt64UintR, (*Decoder).fastpathDecMapInt64UintR)
341 fn(map[int64]uint8(nil), (*Encoder).fastpathEncMapInt64Uint8R, (*Decoder).fastpathDecMapInt64Uint8R)
342 fn(map[int64]uint16(nil), (*Encoder).fastpathEncMapInt64Uint16R, (*Decoder).fastpathDecMapInt64Uint16R)
343 fn(map[int64]uint32(nil), (*Encoder).fastpathEncMapInt64Uint32R, (*Decoder).fastpathDecMapInt64Uint32R)
344 fn(map[int64]uint64(nil), (*Encoder).fastpathEncMapInt64Uint64R, (*Decoder).fastpathDecMapInt64Uint64R)
345 fn(map[int64]uintptr(nil), (*Encoder).fastpathEncMapInt64UintptrR, (*Decoder).fastpathDecMapInt64UintptrR)
346 fn(map[int64]int(nil), (*Encoder).fastpathEncMapInt64IntR, (*Decoder).fastpathDecMapInt64IntR)
347 fn(map[int64]int8(nil), (*Encoder).fastpathEncMapInt64Int8R, (*Decoder).fastpathDecMapInt64Int8R)
348 fn(map[int64]int16(nil), (*Encoder).fastpathEncMapInt64Int16R, (*Decoder).fastpathDecMapInt64Int16R)
349 fn(map[int64]int32(nil), (*Encoder).fastpathEncMapInt64Int32R, (*Decoder).fastpathDecMapInt64Int32R)
350 fn(map[int64]int64(nil), (*Encoder).fastpathEncMapInt64Int64R, (*Decoder).fastpathDecMapInt64Int64R)
351 fn(map[int64]float32(nil), (*Encoder).fastpathEncMapInt64Float32R, (*Decoder).fastpathDecMapInt64Float32R)
352 fn(map[int64]float64(nil), (*Encoder).fastpathEncMapInt64Float64R, (*Decoder).fastpathDecMapInt64Float64R)
353 fn(map[int64]bool(nil), (*Encoder).fastpathEncMapInt64BoolR, (*Decoder).fastpathDecMapInt64BoolR)
354 fn(map[bool]interface{}(nil), (*Encoder).fastpathEncMapBoolIntfR, (*Decoder).fastpathDecMapBoolIntfR)
355 fn(map[bool]string(nil), (*Encoder).fastpathEncMapBoolStringR, (*Decoder).fastpathDecMapBoolStringR)
356 fn(map[bool]uint(nil), (*Encoder).fastpathEncMapBoolUintR, (*Decoder).fastpathDecMapBoolUintR)
357 fn(map[bool]uint8(nil), (*Encoder).fastpathEncMapBoolUint8R, (*Decoder).fastpathDecMapBoolUint8R)
358 fn(map[bool]uint16(nil), (*Encoder).fastpathEncMapBoolUint16R, (*Decoder).fastpathDecMapBoolUint16R)
359 fn(map[bool]uint32(nil), (*Encoder).fastpathEncMapBoolUint32R, (*Decoder).fastpathDecMapBoolUint32R)
360 fn(map[bool]uint64(nil), (*Encoder).fastpathEncMapBoolUint64R, (*Decoder).fastpathDecMapBoolUint64R)
361 fn(map[bool]uintptr(nil), (*Encoder).fastpathEncMapBoolUintptrR, (*Decoder).fastpathDecMapBoolUintptrR)
362 fn(map[bool]int(nil), (*Encoder).fastpathEncMapBoolIntR, (*Decoder).fastpathDecMapBoolIntR)
363 fn(map[bool]int8(nil), (*Encoder).fastpathEncMapBoolInt8R, (*Decoder).fastpathDecMapBoolInt8R)
364 fn(map[bool]int16(nil), (*Encoder).fastpathEncMapBoolInt16R, (*Decoder).fastpathDecMapBoolInt16R)
365 fn(map[bool]int32(nil), (*Encoder).fastpathEncMapBoolInt32R, (*Decoder).fastpathDecMapBoolInt32R)
366 fn(map[bool]int64(nil), (*Encoder).fastpathEncMapBoolInt64R, (*Decoder).fastpathDecMapBoolInt64R)
367 fn(map[bool]float32(nil), (*Encoder).fastpathEncMapBoolFloat32R, (*Decoder).fastpathDecMapBoolFloat32R)
368 fn(map[bool]float64(nil), (*Encoder).fastpathEncMapBoolFloat64R, (*Decoder).fastpathDecMapBoolFloat64R)
369 fn(map[bool]bool(nil), (*Encoder).fastpathEncMapBoolBoolR, (*Decoder).fastpathDecMapBoolBoolR)
370
371 sort.Sort(fastpathAslice(fastpathAV[:]))
372 }
373
374 // -- encode
375
376 // -- -- fast path type switch
377 func fastpathEncodeTypeSwitch(iv interface{}, e *Encoder) bool {
378 switch v := iv.(type) {
379
380 case []interface{}:
381 fastpathTV.EncSliceIntfV(v, e)
382 case *[]interface{}:
383 fastpathTV.EncSliceIntfV(*v, e)
384
385 case map[interface{}]interface{}:
386 fastpathTV.EncMapIntfIntfV(v, e)
387 case *map[interface{}]interface{}:
388 fastpathTV.EncMapIntfIntfV(*v, e)
389
390 case map[interface{}]string:
391 fastpathTV.EncMapIntfStringV(v, e)
392 case *map[interface{}]string:
393 fastpathTV.EncMapIntfStringV(*v, e)
394
395 case map[interface{}]uint:
396 fastpathTV.EncMapIntfUintV(v, e)
397 case *map[interface{}]uint:
398 fastpathTV.EncMapIntfUintV(*v, e)
399
400 case map[interface{}]uint8:
401 fastpathTV.EncMapIntfUint8V(v, e)
402 case *map[interface{}]uint8:
403 fastpathTV.EncMapIntfUint8V(*v, e)
404
405 case map[interface{}]uint16:
406 fastpathTV.EncMapIntfUint16V(v, e)
407 case *map[interface{}]uint16:
408 fastpathTV.EncMapIntfUint16V(*v, e)
409
410 case map[interface{}]uint32:
411 fastpathTV.EncMapIntfUint32V(v, e)
412 case *map[interface{}]uint32:
413 fastpathTV.EncMapIntfUint32V(*v, e)
414
415 case map[interface{}]uint64:
416 fastpathTV.EncMapIntfUint64V(v, e)
417 case *map[interface{}]uint64:
418 fastpathTV.EncMapIntfUint64V(*v, e)
419
420 case map[interface{}]uintptr:
421 fastpathTV.EncMapIntfUintptrV(v, e)
422 case *map[interface{}]uintptr:
423 fastpathTV.EncMapIntfUintptrV(*v, e)
424
425 case map[interface{}]int:
426 fastpathTV.EncMapIntfIntV(v, e)
427 case *map[interface{}]int:
428 fastpathTV.EncMapIntfIntV(*v, e)
429
430 case map[interface{}]int8:
431 fastpathTV.EncMapIntfInt8V(v, e)
432 case *map[interface{}]int8:
433 fastpathTV.EncMapIntfInt8V(*v, e)
434
435 case map[interface{}]int16:
436 fastpathTV.EncMapIntfInt16V(v, e)
437 case *map[interface{}]int16:
438 fastpathTV.EncMapIntfInt16V(*v, e)
439
440 case map[interface{}]int32:
441 fastpathTV.EncMapIntfInt32V(v, e)
442 case *map[interface{}]int32:
443 fastpathTV.EncMapIntfInt32V(*v, e)
444
445 case map[interface{}]int64:
446 fastpathTV.EncMapIntfInt64V(v, e)
447 case *map[interface{}]int64:
448 fastpathTV.EncMapIntfInt64V(*v, e)
449
450 case map[interface{}]float32:
451 fastpathTV.EncMapIntfFloat32V(v, e)
452 case *map[interface{}]float32:
453 fastpathTV.EncMapIntfFloat32V(*v, e)
454
455 case map[interface{}]float64:
456 fastpathTV.EncMapIntfFloat64V(v, e)
457 case *map[interface{}]float64:
458 fastpathTV.EncMapIntfFloat64V(*v, e)
459
460 case map[interface{}]bool:
461 fastpathTV.EncMapIntfBoolV(v, e)
462 case *map[interface{}]bool:
463 fastpathTV.EncMapIntfBoolV(*v, e)
464
465 case []string:
466 fastpathTV.EncSliceStringV(v, e)
467 case *[]string:
468 fastpathTV.EncSliceStringV(*v, e)
469
470 case map[string]interface{}:
471 fastpathTV.EncMapStringIntfV(v, e)
472 case *map[string]interface{}:
473 fastpathTV.EncMapStringIntfV(*v, e)
474
475 case map[string]string:
476 fastpathTV.EncMapStringStringV(v, e)
477 case *map[string]string:
478 fastpathTV.EncMapStringStringV(*v, e)
479
480 case map[string]uint:
481 fastpathTV.EncMapStringUintV(v, e)
482 case *map[string]uint:
483 fastpathTV.EncMapStringUintV(*v, e)
484
485 case map[string]uint8:
486 fastpathTV.EncMapStringUint8V(v, e)
487 case *map[string]uint8:
488 fastpathTV.EncMapStringUint8V(*v, e)
489
490 case map[string]uint16:
491 fastpathTV.EncMapStringUint16V(v, e)
492 case *map[string]uint16:
493 fastpathTV.EncMapStringUint16V(*v, e)
494
495 case map[string]uint32:
496 fastpathTV.EncMapStringUint32V(v, e)
497 case *map[string]uint32:
498 fastpathTV.EncMapStringUint32V(*v, e)
499
500 case map[string]uint64:
501 fastpathTV.EncMapStringUint64V(v, e)
502 case *map[string]uint64:
503 fastpathTV.EncMapStringUint64V(*v, e)
504
505 case map[string]uintptr:
506 fastpathTV.EncMapStringUintptrV(v, e)
507 case *map[string]uintptr:
508 fastpathTV.EncMapStringUintptrV(*v, e)
509
510 case map[string]int:
511 fastpathTV.EncMapStringIntV(v, e)
512 case *map[string]int:
513 fastpathTV.EncMapStringIntV(*v, e)
514
515 case map[string]int8:
516 fastpathTV.EncMapStringInt8V(v, e)
517 case *map[string]int8:
518 fastpathTV.EncMapStringInt8V(*v, e)
519
520 case map[string]int16:
521 fastpathTV.EncMapStringInt16V(v, e)
522 case *map[string]int16:
523 fastpathTV.EncMapStringInt16V(*v, e)
524
525 case map[string]int32:
526 fastpathTV.EncMapStringInt32V(v, e)
527 case *map[string]int32:
528 fastpathTV.EncMapStringInt32V(*v, e)
529
530 case map[string]int64:
531 fastpathTV.EncMapStringInt64V(v, e)
532 case *map[string]int64:
533 fastpathTV.EncMapStringInt64V(*v, e)
534
535 case map[string]float32:
536 fastpathTV.EncMapStringFloat32V(v, e)
537 case *map[string]float32:
538 fastpathTV.EncMapStringFloat32V(*v, e)
539
540 case map[string]float64:
541 fastpathTV.EncMapStringFloat64V(v, e)
542 case *map[string]float64:
543 fastpathTV.EncMapStringFloat64V(*v, e)
544
545 case map[string]bool:
546 fastpathTV.EncMapStringBoolV(v, e)
547 case *map[string]bool:
548 fastpathTV.EncMapStringBoolV(*v, e)
549
550 case []float32:
551 fastpathTV.EncSliceFloat32V(v, e)
552 case *[]float32:
553 fastpathTV.EncSliceFloat32V(*v, e)
554
555 case map[float32]interface{}:
556 fastpathTV.EncMapFloat32IntfV(v, e)
557 case *map[float32]interface{}:
558 fastpathTV.EncMapFloat32IntfV(*v, e)
559
560 case map[float32]string:
561 fastpathTV.EncMapFloat32StringV(v, e)
562 case *map[float32]string:
563 fastpathTV.EncMapFloat32StringV(*v, e)
564
565 case map[float32]uint:
566 fastpathTV.EncMapFloat32UintV(v, e)
567 case *map[float32]uint:
568 fastpathTV.EncMapFloat32UintV(*v, e)
569
570 case map[float32]uint8:
571 fastpathTV.EncMapFloat32Uint8V(v, e)
572 case *map[float32]uint8:
573 fastpathTV.EncMapFloat32Uint8V(*v, e)
574
575 case map[float32]uint16:
576 fastpathTV.EncMapFloat32Uint16V(v, e)
577 case *map[float32]uint16:
578 fastpathTV.EncMapFloat32Uint16V(*v, e)
579
580 case map[float32]uint32:
581 fastpathTV.EncMapFloat32Uint32V(v, e)
582 case *map[float32]uint32:
583 fastpathTV.EncMapFloat32Uint32V(*v, e)
584
585 case map[float32]uint64:
586 fastpathTV.EncMapFloat32Uint64V(v, e)
587 case *map[float32]uint64:
588 fastpathTV.EncMapFloat32Uint64V(*v, e)
589
590 case map[float32]uintptr:
591 fastpathTV.EncMapFloat32UintptrV(v, e)
592 case *map[float32]uintptr:
593 fastpathTV.EncMapFloat32UintptrV(*v, e)
594
595 case map[float32]int:
596 fastpathTV.EncMapFloat32IntV(v, e)
597 case *map[float32]int:
598 fastpathTV.EncMapFloat32IntV(*v, e)
599
600 case map[float32]int8:
601 fastpathTV.EncMapFloat32Int8V(v, e)
602 case *map[float32]int8:
603 fastpathTV.EncMapFloat32Int8V(*v, e)
604
605 case map[float32]int16:
606 fastpathTV.EncMapFloat32Int16V(v, e)
607 case *map[float32]int16:
608 fastpathTV.EncMapFloat32Int16V(*v, e)
609
610 case map[float32]int32:
611 fastpathTV.EncMapFloat32Int32V(v, e)
612 case *map[float32]int32:
613 fastpathTV.EncMapFloat32Int32V(*v, e)
614
615 case map[float32]int64:
616 fastpathTV.EncMapFloat32Int64V(v, e)
617 case *map[float32]int64:
618 fastpathTV.EncMapFloat32Int64V(*v, e)
619
620 case map[float32]float32:
621 fastpathTV.EncMapFloat32Float32V(v, e)
622 case *map[float32]float32:
623 fastpathTV.EncMapFloat32Float32V(*v, e)
624
625 case map[float32]float64:
626 fastpathTV.EncMapFloat32Float64V(v, e)
627 case *map[float32]float64:
628 fastpathTV.EncMapFloat32Float64V(*v, e)
629
630 case map[float32]bool:
631 fastpathTV.EncMapFloat32BoolV(v, e)
632 case *map[float32]bool:
633 fastpathTV.EncMapFloat32BoolV(*v, e)
634
635 case []float64:
636 fastpathTV.EncSliceFloat64V(v, e)
637 case *[]float64:
638 fastpathTV.EncSliceFloat64V(*v, e)
639
640 case map[float64]interface{}:
641 fastpathTV.EncMapFloat64IntfV(v, e)
642 case *map[float64]interface{}:
643 fastpathTV.EncMapFloat64IntfV(*v, e)
644
645 case map[float64]string:
646 fastpathTV.EncMapFloat64StringV(v, e)
647 case *map[float64]string:
648 fastpathTV.EncMapFloat64StringV(*v, e)
649
650 case map[float64]uint:
651 fastpathTV.EncMapFloat64UintV(v, e)
652 case *map[float64]uint:
653 fastpathTV.EncMapFloat64UintV(*v, e)
654
655 case map[float64]uint8:
656 fastpathTV.EncMapFloat64Uint8V(v, e)
657 case *map[float64]uint8:
658 fastpathTV.EncMapFloat64Uint8V(*v, e)
659
660 case map[float64]uint16:
661 fastpathTV.EncMapFloat64Uint16V(v, e)
662 case *map[float64]uint16:
663 fastpathTV.EncMapFloat64Uint16V(*v, e)
664
665 case map[float64]uint32:
666 fastpathTV.EncMapFloat64Uint32V(v, e)
667 case *map[float64]uint32:
668 fastpathTV.EncMapFloat64Uint32V(*v, e)
669
670 case map[float64]uint64:
671 fastpathTV.EncMapFloat64Uint64V(v, e)
672 case *map[float64]uint64:
673 fastpathTV.EncMapFloat64Uint64V(*v, e)
674
675 case map[float64]uintptr:
676 fastpathTV.EncMapFloat64UintptrV(v, e)
677 case *map[float64]uintptr:
678 fastpathTV.EncMapFloat64UintptrV(*v, e)
679
680 case map[float64]int:
681 fastpathTV.EncMapFloat64IntV(v, e)
682 case *map[float64]int:
683 fastpathTV.EncMapFloat64IntV(*v, e)
684
685 case map[float64]int8:
686 fastpathTV.EncMapFloat64Int8V(v, e)
687 case *map[float64]int8:
688 fastpathTV.EncMapFloat64Int8V(*v, e)
689
690 case map[float64]int16:
691 fastpathTV.EncMapFloat64Int16V(v, e)
692 case *map[float64]int16:
693 fastpathTV.EncMapFloat64Int16V(*v, e)
694
695 case map[float64]int32:
696 fastpathTV.EncMapFloat64Int32V(v, e)
697 case *map[float64]int32:
698 fastpathTV.EncMapFloat64Int32V(*v, e)
699
700 case map[float64]int64:
701 fastpathTV.EncMapFloat64Int64V(v, e)
702 case *map[float64]int64:
703 fastpathTV.EncMapFloat64Int64V(*v, e)
704
705 case map[float64]float32:
706 fastpathTV.EncMapFloat64Float32V(v, e)
707 case *map[float64]float32:
708 fastpathTV.EncMapFloat64Float32V(*v, e)
709
710 case map[float64]float64:
711 fastpathTV.EncMapFloat64Float64V(v, e)
712 case *map[float64]float64:
713 fastpathTV.EncMapFloat64Float64V(*v, e)
714
715 case map[float64]bool:
716 fastpathTV.EncMapFloat64BoolV(v, e)
717 case *map[float64]bool:
718 fastpathTV.EncMapFloat64BoolV(*v, e)
719
720 case []uint:
721 fastpathTV.EncSliceUintV(v, e)
722 case *[]uint:
723 fastpathTV.EncSliceUintV(*v, e)
724
725 case map[uint]interface{}:
726 fastpathTV.EncMapUintIntfV(v, e)
727 case *map[uint]interface{}:
728 fastpathTV.EncMapUintIntfV(*v, e)
729
730 case map[uint]string:
731 fastpathTV.EncMapUintStringV(v, e)
732 case *map[uint]string:
733 fastpathTV.EncMapUintStringV(*v, e)
734
735 case map[uint]uint:
736 fastpathTV.EncMapUintUintV(v, e)
737 case *map[uint]uint:
738 fastpathTV.EncMapUintUintV(*v, e)
739
740 case map[uint]uint8:
741 fastpathTV.EncMapUintUint8V(v, e)
742 case *map[uint]uint8:
743 fastpathTV.EncMapUintUint8V(*v, e)
744
745 case map[uint]uint16:
746 fastpathTV.EncMapUintUint16V(v, e)
747 case *map[uint]uint16:
748 fastpathTV.EncMapUintUint16V(*v, e)
749
750 case map[uint]uint32:
751 fastpathTV.EncMapUintUint32V(v, e)
752 case *map[uint]uint32:
753 fastpathTV.EncMapUintUint32V(*v, e)
754
755 case map[uint]uint64:
756 fastpathTV.EncMapUintUint64V(v, e)
757 case *map[uint]uint64:
758 fastpathTV.EncMapUintUint64V(*v, e)
759
760 case map[uint]uintptr:
761 fastpathTV.EncMapUintUintptrV(v, e)
762 case *map[uint]uintptr:
763 fastpathTV.EncMapUintUintptrV(*v, e)
764
765 case map[uint]int:
766 fastpathTV.EncMapUintIntV(v, e)
767 case *map[uint]int:
768 fastpathTV.EncMapUintIntV(*v, e)
769
770 case map[uint]int8:
771 fastpathTV.EncMapUintInt8V(v, e)
772 case *map[uint]int8:
773 fastpathTV.EncMapUintInt8V(*v, e)
774
775 case map[uint]int16:
776 fastpathTV.EncMapUintInt16V(v, e)
777 case *map[uint]int16:
778 fastpathTV.EncMapUintInt16V(*v, e)
779
780 case map[uint]int32:
781 fastpathTV.EncMapUintInt32V(v, e)
782 case *map[uint]int32:
783 fastpathTV.EncMapUintInt32V(*v, e)
784
785 case map[uint]int64:
786 fastpathTV.EncMapUintInt64V(v, e)
787 case *map[uint]int64:
788 fastpathTV.EncMapUintInt64V(*v, e)
789
790 case map[uint]float32:
791 fastpathTV.EncMapUintFloat32V(v, e)
792 case *map[uint]float32:
793 fastpathTV.EncMapUintFloat32V(*v, e)
794
795 case map[uint]float64:
796 fastpathTV.EncMapUintFloat64V(v, e)
797 case *map[uint]float64:
798 fastpathTV.EncMapUintFloat64V(*v, e)
799
800 case map[uint]bool:
801 fastpathTV.EncMapUintBoolV(v, e)
802 case *map[uint]bool:
803 fastpathTV.EncMapUintBoolV(*v, e)
804
805 case map[uint8]interface{}:
806 fastpathTV.EncMapUint8IntfV(v, e)
807 case *map[uint8]interface{}:
808 fastpathTV.EncMapUint8IntfV(*v, e)
809
810 case map[uint8]string:
811 fastpathTV.EncMapUint8StringV(v, e)
812 case *map[uint8]string:
813 fastpathTV.EncMapUint8StringV(*v, e)
814
815 case map[uint8]uint:
816 fastpathTV.EncMapUint8UintV(v, e)
817 case *map[uint8]uint:
818 fastpathTV.EncMapUint8UintV(*v, e)
819
820 case map[uint8]uint8:
821 fastpathTV.EncMapUint8Uint8V(v, e)
822 case *map[uint8]uint8:
823 fastpathTV.EncMapUint8Uint8V(*v, e)
824
825 case map[uint8]uint16:
826 fastpathTV.EncMapUint8Uint16V(v, e)
827 case *map[uint8]uint16:
828 fastpathTV.EncMapUint8Uint16V(*v, e)
829
830 case map[uint8]uint32:
831 fastpathTV.EncMapUint8Uint32V(v, e)
832 case *map[uint8]uint32:
833 fastpathTV.EncMapUint8Uint32V(*v, e)
834
835 case map[uint8]uint64:
836 fastpathTV.EncMapUint8Uint64V(v, e)
837 case *map[uint8]uint64:
838 fastpathTV.EncMapUint8Uint64V(*v, e)
839
840 case map[uint8]uintptr:
841 fastpathTV.EncMapUint8UintptrV(v, e)
842 case *map[uint8]uintptr:
843 fastpathTV.EncMapUint8UintptrV(*v, e)
844
845 case map[uint8]int:
846 fastpathTV.EncMapUint8IntV(v, e)
847 case *map[uint8]int:
848 fastpathTV.EncMapUint8IntV(*v, e)
849
850 case map[uint8]int8:
851 fastpathTV.EncMapUint8Int8V(v, e)
852 case *map[uint8]int8:
853 fastpathTV.EncMapUint8Int8V(*v, e)
854
855 case map[uint8]int16:
856 fastpathTV.EncMapUint8Int16V(v, e)
857 case *map[uint8]int16:
858 fastpathTV.EncMapUint8Int16V(*v, e)
859
860 case map[uint8]int32:
861 fastpathTV.EncMapUint8Int32V(v, e)
862 case *map[uint8]int32:
863 fastpathTV.EncMapUint8Int32V(*v, e)
864
865 case map[uint8]int64:
866 fastpathTV.EncMapUint8Int64V(v, e)
867 case *map[uint8]int64:
868 fastpathTV.EncMapUint8Int64V(*v, e)
869
870 case map[uint8]float32:
871 fastpathTV.EncMapUint8Float32V(v, e)
872 case *map[uint8]float32:
873 fastpathTV.EncMapUint8Float32V(*v, e)
874
875 case map[uint8]float64:
876 fastpathTV.EncMapUint8Float64V(v, e)
877 case *map[uint8]float64:
878 fastpathTV.EncMapUint8Float64V(*v, e)
879
880 case map[uint8]bool:
881 fastpathTV.EncMapUint8BoolV(v, e)
882 case *map[uint8]bool:
883 fastpathTV.EncMapUint8BoolV(*v, e)
884
885 case []uint16:
886 fastpathTV.EncSliceUint16V(v, e)
887 case *[]uint16:
888 fastpathTV.EncSliceUint16V(*v, e)
889
890 case map[uint16]interface{}:
891 fastpathTV.EncMapUint16IntfV(v, e)
892 case *map[uint16]interface{}:
893 fastpathTV.EncMapUint16IntfV(*v, e)
894
895 case map[uint16]string:
896 fastpathTV.EncMapUint16StringV(v, e)
897 case *map[uint16]string:
898 fastpathTV.EncMapUint16StringV(*v, e)
899
900 case map[uint16]uint:
901 fastpathTV.EncMapUint16UintV(v, e)
902 case *map[uint16]uint:
903 fastpathTV.EncMapUint16UintV(*v, e)
904
905 case map[uint16]uint8:
906 fastpathTV.EncMapUint16Uint8V(v, e)
907 case *map[uint16]uint8:
908 fastpathTV.EncMapUint16Uint8V(*v, e)
909
910 case map[uint16]uint16:
911 fastpathTV.EncMapUint16Uint16V(v, e)
912 case *map[uint16]uint16:
913 fastpathTV.EncMapUint16Uint16V(*v, e)
914
915 case map[uint16]uint32:
916 fastpathTV.EncMapUint16Uint32V(v, e)
917 case *map[uint16]uint32:
918 fastpathTV.EncMapUint16Uint32V(*v, e)
919
920 case map[uint16]uint64:
921 fastpathTV.EncMapUint16Uint64V(v, e)
922 case *map[uint16]uint64:
923 fastpathTV.EncMapUint16Uint64V(*v, e)
924
925 case map[uint16]uintptr:
926 fastpathTV.EncMapUint16UintptrV(v, e)
927 case *map[uint16]uintptr:
928 fastpathTV.EncMapUint16UintptrV(*v, e)
929
930 case map[uint16]int:
931 fastpathTV.EncMapUint16IntV(v, e)
932 case *map[uint16]int:
933 fastpathTV.EncMapUint16IntV(*v, e)
934
935 case map[uint16]int8:
936 fastpathTV.EncMapUint16Int8V(v, e)
937 case *map[uint16]int8:
938 fastpathTV.EncMapUint16Int8V(*v, e)
939
940 case map[uint16]int16:
941 fastpathTV.EncMapUint16Int16V(v, e)
942 case *map[uint16]int16:
943 fastpathTV.EncMapUint16Int16V(*v, e)
944
945 case map[uint16]int32:
946 fastpathTV.EncMapUint16Int32V(v, e)
947 case *map[uint16]int32:
948 fastpathTV.EncMapUint16Int32V(*v, e)
949
950 case map[uint16]int64:
951 fastpathTV.EncMapUint16Int64V(v, e)
952 case *map[uint16]int64:
953 fastpathTV.EncMapUint16Int64V(*v, e)
954
955 case map[uint16]float32:
956 fastpathTV.EncMapUint16Float32V(v, e)
957 case *map[uint16]float32:
958 fastpathTV.EncMapUint16Float32V(*v, e)
959
960 case map[uint16]float64:
961 fastpathTV.EncMapUint16Float64V(v, e)
962 case *map[uint16]float64:
963 fastpathTV.EncMapUint16Float64V(*v, e)
964
965 case map[uint16]bool:
966 fastpathTV.EncMapUint16BoolV(v, e)
967 case *map[uint16]bool:
968 fastpathTV.EncMapUint16BoolV(*v, e)
969
970 case []uint32:
971 fastpathTV.EncSliceUint32V(v, e)
972 case *[]uint32:
973 fastpathTV.EncSliceUint32V(*v, e)
974
975 case map[uint32]interface{}:
976 fastpathTV.EncMapUint32IntfV(v, e)
977 case *map[uint32]interface{}:
978 fastpathTV.EncMapUint32IntfV(*v, e)
979
980 case map[uint32]string:
981 fastpathTV.EncMapUint32StringV(v, e)
982 case *map[uint32]string:
983 fastpathTV.EncMapUint32StringV(*v, e)
984
985 case map[uint32]uint:
986 fastpathTV.EncMapUint32UintV(v, e)
987 case *map[uint32]uint:
988 fastpathTV.EncMapUint32UintV(*v, e)
989
990 case map[uint32]uint8:
991 fastpathTV.EncMapUint32Uint8V(v, e)
992 case *map[uint32]uint8:
993 fastpathTV.EncMapUint32Uint8V(*v, e)
994
995 case map[uint32]uint16:
996 fastpathTV.EncMapUint32Uint16V(v, e)
997 case *map[uint32]uint16:
998 fastpathTV.EncMapUint32Uint16V(*v, e)
999
1000 case map[uint32]uint32:
1001 fastpathTV.EncMapUint32Uint32V(v, e)
1002 case *map[uint32]uint32:
1003 fastpathTV.EncMapUint32Uint32V(*v, e)
1004
1005 case map[uint32]uint64:
1006 fastpathTV.EncMapUint32Uint64V(v, e)
1007 case *map[uint32]uint64:
1008 fastpathTV.EncMapUint32Uint64V(*v, e)
1009
1010 case map[uint32]uintptr:
1011 fastpathTV.EncMapUint32UintptrV(v, e)
1012 case *map[uint32]uintptr:
1013 fastpathTV.EncMapUint32UintptrV(*v, e)
1014
1015 case map[uint32]int:
1016 fastpathTV.EncMapUint32IntV(v, e)
1017 case *map[uint32]int:
1018 fastpathTV.EncMapUint32IntV(*v, e)
1019
1020 case map[uint32]int8:
1021 fastpathTV.EncMapUint32Int8V(v, e)
1022 case *map[uint32]int8:
1023 fastpathTV.EncMapUint32Int8V(*v, e)
1024
1025 case map[uint32]int16:
1026 fastpathTV.EncMapUint32Int16V(v, e)
1027 case *map[uint32]int16:
1028 fastpathTV.EncMapUint32Int16V(*v, e)
1029
1030 case map[uint32]int32:
1031 fastpathTV.EncMapUint32Int32V(v, e)
1032 case *map[uint32]int32:
1033 fastpathTV.EncMapUint32Int32V(*v, e)
1034
1035 case map[uint32]int64:
1036 fastpathTV.EncMapUint32Int64V(v, e)
1037 case *map[uint32]int64:
1038 fastpathTV.EncMapUint32Int64V(*v, e)
1039
1040 case map[uint32]float32:
1041 fastpathTV.EncMapUint32Float32V(v, e)
1042 case *map[uint32]float32:
1043 fastpathTV.EncMapUint32Float32V(*v, e)
1044
1045 case map[uint32]float64:
1046 fastpathTV.EncMapUint32Float64V(v, e)
1047 case *map[uint32]float64:
1048 fastpathTV.EncMapUint32Float64V(*v, e)
1049
1050 case map[uint32]bool:
1051 fastpathTV.EncMapUint32BoolV(v, e)
1052 case *map[uint32]bool:
1053 fastpathTV.EncMapUint32BoolV(*v, e)
1054
1055 case []uint64:
1056 fastpathTV.EncSliceUint64V(v, e)
1057 case *[]uint64:
1058 fastpathTV.EncSliceUint64V(*v, e)
1059
1060 case map[uint64]interface{}:
1061 fastpathTV.EncMapUint64IntfV(v, e)
1062 case *map[uint64]interface{}:
1063 fastpathTV.EncMapUint64IntfV(*v, e)
1064
1065 case map[uint64]string:
1066 fastpathTV.EncMapUint64StringV(v, e)
1067 case *map[uint64]string:
1068 fastpathTV.EncMapUint64StringV(*v, e)
1069
1070 case map[uint64]uint:
1071 fastpathTV.EncMapUint64UintV(v, e)
1072 case *map[uint64]uint:
1073 fastpathTV.EncMapUint64UintV(*v, e)
1074
1075 case map[uint64]uint8:
1076 fastpathTV.EncMapUint64Uint8V(v, e)
1077 case *map[uint64]uint8:
1078 fastpathTV.EncMapUint64Uint8V(*v, e)
1079
1080 case map[uint64]uint16:
1081 fastpathTV.EncMapUint64Uint16V(v, e)
1082 case *map[uint64]uint16:
1083 fastpathTV.EncMapUint64Uint16V(*v, e)
1084
1085 case map[uint64]uint32:
1086 fastpathTV.EncMapUint64Uint32V(v, e)
1087 case *map[uint64]uint32:
1088 fastpathTV.EncMapUint64Uint32V(*v, e)
1089
1090 case map[uint64]uint64:
1091 fastpathTV.EncMapUint64Uint64V(v, e)
1092 case *map[uint64]uint64:
1093 fastpathTV.EncMapUint64Uint64V(*v, e)
1094
1095 case map[uint64]uintptr:
1096 fastpathTV.EncMapUint64UintptrV(v, e)
1097 case *map[uint64]uintptr:
1098 fastpathTV.EncMapUint64UintptrV(*v, e)
1099
1100 case map[uint64]int:
1101 fastpathTV.EncMapUint64IntV(v, e)
1102 case *map[uint64]int:
1103 fastpathTV.EncMapUint64IntV(*v, e)
1104
1105 case map[uint64]int8:
1106 fastpathTV.EncMapUint64Int8V(v, e)
1107 case *map[uint64]int8:
1108 fastpathTV.EncMapUint64Int8V(*v, e)
1109
1110 case map[uint64]int16:
1111 fastpathTV.EncMapUint64Int16V(v, e)
1112 case *map[uint64]int16:
1113 fastpathTV.EncMapUint64Int16V(*v, e)
1114
1115 case map[uint64]int32:
1116 fastpathTV.EncMapUint64Int32V(v, e)
1117 case *map[uint64]int32:
1118 fastpathTV.EncMapUint64Int32V(*v, e)
1119
1120 case map[uint64]int64:
1121 fastpathTV.EncMapUint64Int64V(v, e)
1122 case *map[uint64]int64:
1123 fastpathTV.EncMapUint64Int64V(*v, e)
1124
1125 case map[uint64]float32:
1126 fastpathTV.EncMapUint64Float32V(v, e)
1127 case *map[uint64]float32:
1128 fastpathTV.EncMapUint64Float32V(*v, e)
1129
1130 case map[uint64]float64:
1131 fastpathTV.EncMapUint64Float64V(v, e)
1132 case *map[uint64]float64:
1133 fastpathTV.EncMapUint64Float64V(*v, e)
1134
1135 case map[uint64]bool:
1136 fastpathTV.EncMapUint64BoolV(v, e)
1137 case *map[uint64]bool:
1138 fastpathTV.EncMapUint64BoolV(*v, e)
1139
1140 case []uintptr:
1141 fastpathTV.EncSliceUintptrV(v, e)
1142 case *[]uintptr:
1143 fastpathTV.EncSliceUintptrV(*v, e)
1144
1145 case map[uintptr]interface{}:
1146 fastpathTV.EncMapUintptrIntfV(v, e)
1147 case *map[uintptr]interface{}:
1148 fastpathTV.EncMapUintptrIntfV(*v, e)
1149
1150 case map[uintptr]string:
1151 fastpathTV.EncMapUintptrStringV(v, e)
1152 case *map[uintptr]string:
1153 fastpathTV.EncMapUintptrStringV(*v, e)
1154
1155 case map[uintptr]uint:
1156 fastpathTV.EncMapUintptrUintV(v, e)
1157 case *map[uintptr]uint:
1158 fastpathTV.EncMapUintptrUintV(*v, e)
1159
1160 case map[uintptr]uint8:
1161 fastpathTV.EncMapUintptrUint8V(v, e)
1162 case *map[uintptr]uint8:
1163 fastpathTV.EncMapUintptrUint8V(*v, e)
1164
1165 case map[uintptr]uint16:
1166 fastpathTV.EncMapUintptrUint16V(v, e)
1167 case *map[uintptr]uint16:
1168 fastpathTV.EncMapUintptrUint16V(*v, e)
1169
1170 case map[uintptr]uint32:
1171 fastpathTV.EncMapUintptrUint32V(v, e)
1172 case *map[uintptr]uint32:
1173 fastpathTV.EncMapUintptrUint32V(*v, e)
1174
1175 case map[uintptr]uint64:
1176 fastpathTV.EncMapUintptrUint64V(v, e)
1177 case *map[uintptr]uint64:
1178 fastpathTV.EncMapUintptrUint64V(*v, e)
1179
1180 case map[uintptr]uintptr:
1181 fastpathTV.EncMapUintptrUintptrV(v, e)
1182 case *map[uintptr]uintptr:
1183 fastpathTV.EncMapUintptrUintptrV(*v, e)
1184
1185 case map[uintptr]int:
1186 fastpathTV.EncMapUintptrIntV(v, e)
1187 case *map[uintptr]int:
1188 fastpathTV.EncMapUintptrIntV(*v, e)
1189
1190 case map[uintptr]int8:
1191 fastpathTV.EncMapUintptrInt8V(v, e)
1192 case *map[uintptr]int8:
1193 fastpathTV.EncMapUintptrInt8V(*v, e)
1194
1195 case map[uintptr]int16:
1196 fastpathTV.EncMapUintptrInt16V(v, e)
1197 case *map[uintptr]int16:
1198 fastpathTV.EncMapUintptrInt16V(*v, e)
1199
1200 case map[uintptr]int32:
1201 fastpathTV.EncMapUintptrInt32V(v, e)
1202 case *map[uintptr]int32:
1203 fastpathTV.EncMapUintptrInt32V(*v, e)
1204
1205 case map[uintptr]int64:
1206 fastpathTV.EncMapUintptrInt64V(v, e)
1207 case *map[uintptr]int64:
1208 fastpathTV.EncMapUintptrInt64V(*v, e)
1209
1210 case map[uintptr]float32:
1211 fastpathTV.EncMapUintptrFloat32V(v, e)
1212 case *map[uintptr]float32:
1213 fastpathTV.EncMapUintptrFloat32V(*v, e)
1214
1215 case map[uintptr]float64:
1216 fastpathTV.EncMapUintptrFloat64V(v, e)
1217 case *map[uintptr]float64:
1218 fastpathTV.EncMapUintptrFloat64V(*v, e)
1219
1220 case map[uintptr]bool:
1221 fastpathTV.EncMapUintptrBoolV(v, e)
1222 case *map[uintptr]bool:
1223 fastpathTV.EncMapUintptrBoolV(*v, e)
1224
1225 case []int:
1226 fastpathTV.EncSliceIntV(v, e)
1227 case *[]int:
1228 fastpathTV.EncSliceIntV(*v, e)
1229
1230 case map[int]interface{}:
1231 fastpathTV.EncMapIntIntfV(v, e)
1232 case *map[int]interface{}:
1233 fastpathTV.EncMapIntIntfV(*v, e)
1234
1235 case map[int]string:
1236 fastpathTV.EncMapIntStringV(v, e)
1237 case *map[int]string:
1238 fastpathTV.EncMapIntStringV(*v, e)
1239
1240 case map[int]uint:
1241 fastpathTV.EncMapIntUintV(v, e)
1242 case *map[int]uint:
1243 fastpathTV.EncMapIntUintV(*v, e)
1244
1245 case map[int]uint8:
1246 fastpathTV.EncMapIntUint8V(v, e)
1247 case *map[int]uint8:
1248 fastpathTV.EncMapIntUint8V(*v, e)
1249
1250 case map[int]uint16:
1251 fastpathTV.EncMapIntUint16V(v, e)
1252 case *map[int]uint16:
1253 fastpathTV.EncMapIntUint16V(*v, e)
1254
1255 case map[int]uint32:
1256 fastpathTV.EncMapIntUint32V(v, e)
1257 case *map[int]uint32:
1258 fastpathTV.EncMapIntUint32V(*v, e)
1259
1260 case map[int]uint64:
1261 fastpathTV.EncMapIntUint64V(v, e)
1262 case *map[int]uint64:
1263 fastpathTV.EncMapIntUint64V(*v, e)
1264
1265 case map[int]uintptr:
1266 fastpathTV.EncMapIntUintptrV(v, e)
1267 case *map[int]uintptr:
1268 fastpathTV.EncMapIntUintptrV(*v, e)
1269
1270 case map[int]int:
1271 fastpathTV.EncMapIntIntV(v, e)
1272 case *map[int]int:
1273 fastpathTV.EncMapIntIntV(*v, e)
1274
1275 case map[int]int8:
1276 fastpathTV.EncMapIntInt8V(v, e)
1277 case *map[int]int8:
1278 fastpathTV.EncMapIntInt8V(*v, e)
1279
1280 case map[int]int16:
1281 fastpathTV.EncMapIntInt16V(v, e)
1282 case *map[int]int16:
1283 fastpathTV.EncMapIntInt16V(*v, e)
1284
1285 case map[int]int32:
1286 fastpathTV.EncMapIntInt32V(v, e)
1287 case *map[int]int32:
1288 fastpathTV.EncMapIntInt32V(*v, e)
1289
1290 case map[int]int64:
1291 fastpathTV.EncMapIntInt64V(v, e)
1292 case *map[int]int64:
1293 fastpathTV.EncMapIntInt64V(*v, e)
1294
1295 case map[int]float32:
1296 fastpathTV.EncMapIntFloat32V(v, e)
1297 case *map[int]float32:
1298 fastpathTV.EncMapIntFloat32V(*v, e)
1299
1300 case map[int]float64:
1301 fastpathTV.EncMapIntFloat64V(v, e)
1302 case *map[int]float64:
1303 fastpathTV.EncMapIntFloat64V(*v, e)
1304
1305 case map[int]bool:
1306 fastpathTV.EncMapIntBoolV(v, e)
1307 case *map[int]bool:
1308 fastpathTV.EncMapIntBoolV(*v, e)
1309
1310 case []int8:
1311 fastpathTV.EncSliceInt8V(v, e)
1312 case *[]int8:
1313 fastpathTV.EncSliceInt8V(*v, e)
1314
1315 case map[int8]interface{}:
1316 fastpathTV.EncMapInt8IntfV(v, e)
1317 case *map[int8]interface{}:
1318 fastpathTV.EncMapInt8IntfV(*v, e)
1319
1320 case map[int8]string:
1321 fastpathTV.EncMapInt8StringV(v, e)
1322 case *map[int8]string:
1323 fastpathTV.EncMapInt8StringV(*v, e)
1324
1325 case map[int8]uint:
1326 fastpathTV.EncMapInt8UintV(v, e)
1327 case *map[int8]uint:
1328 fastpathTV.EncMapInt8UintV(*v, e)
1329
1330 case map[int8]uint8:
1331 fastpathTV.EncMapInt8Uint8V(v, e)
1332 case *map[int8]uint8:
1333 fastpathTV.EncMapInt8Uint8V(*v, e)
1334
1335 case map[int8]uint16:
1336 fastpathTV.EncMapInt8Uint16V(v, e)
1337 case *map[int8]uint16:
1338 fastpathTV.EncMapInt8Uint16V(*v, e)
1339
1340 case map[int8]uint32:
1341 fastpathTV.EncMapInt8Uint32V(v, e)
1342 case *map[int8]uint32:
1343 fastpathTV.EncMapInt8Uint32V(*v, e)
1344
1345 case map[int8]uint64:
1346 fastpathTV.EncMapInt8Uint64V(v, e)
1347 case *map[int8]uint64:
1348 fastpathTV.EncMapInt8Uint64V(*v, e)
1349
1350 case map[int8]uintptr:
1351 fastpathTV.EncMapInt8UintptrV(v, e)
1352 case *map[int8]uintptr:
1353 fastpathTV.EncMapInt8UintptrV(*v, e)
1354
1355 case map[int8]int:
1356 fastpathTV.EncMapInt8IntV(v, e)
1357 case *map[int8]int:
1358 fastpathTV.EncMapInt8IntV(*v, e)
1359
1360 case map[int8]int8:
1361 fastpathTV.EncMapInt8Int8V(v, e)
1362 case *map[int8]int8:
1363 fastpathTV.EncMapInt8Int8V(*v, e)
1364
1365 case map[int8]int16:
1366 fastpathTV.EncMapInt8Int16V(v, e)
1367 case *map[int8]int16:
1368 fastpathTV.EncMapInt8Int16V(*v, e)
1369
1370 case map[int8]int32:
1371 fastpathTV.EncMapInt8Int32V(v, e)
1372 case *map[int8]int32:
1373 fastpathTV.EncMapInt8Int32V(*v, e)
1374
1375 case map[int8]int64:
1376 fastpathTV.EncMapInt8Int64V(v, e)
1377 case *map[int8]int64:
1378 fastpathTV.EncMapInt8Int64V(*v, e)
1379
1380 case map[int8]float32:
1381 fastpathTV.EncMapInt8Float32V(v, e)
1382 case *map[int8]float32:
1383 fastpathTV.EncMapInt8Float32V(*v, e)
1384
1385 case map[int8]float64:
1386 fastpathTV.EncMapInt8Float64V(v, e)
1387 case *map[int8]float64:
1388 fastpathTV.EncMapInt8Float64V(*v, e)
1389
1390 case map[int8]bool:
1391 fastpathTV.EncMapInt8BoolV(v, e)
1392 case *map[int8]bool:
1393 fastpathTV.EncMapInt8BoolV(*v, e)
1394
1395 case []int16:
1396 fastpathTV.EncSliceInt16V(v, e)
1397 case *[]int16:
1398 fastpathTV.EncSliceInt16V(*v, e)
1399
1400 case map[int16]interface{}:
1401 fastpathTV.EncMapInt16IntfV(v, e)
1402 case *map[int16]interface{}:
1403 fastpathTV.EncMapInt16IntfV(*v, e)
1404
1405 case map[int16]string:
1406 fastpathTV.EncMapInt16StringV(v, e)
1407 case *map[int16]string:
1408 fastpathTV.EncMapInt16StringV(*v, e)
1409
1410 case map[int16]uint:
1411 fastpathTV.EncMapInt16UintV(v, e)
1412 case *map[int16]uint:
1413 fastpathTV.EncMapInt16UintV(*v, e)
1414
1415 case map[int16]uint8:
1416 fastpathTV.EncMapInt16Uint8V(v, e)
1417 case *map[int16]uint8:
1418 fastpathTV.EncMapInt16Uint8V(*v, e)
1419
1420 case map[int16]uint16:
1421 fastpathTV.EncMapInt16Uint16V(v, e)
1422 case *map[int16]uint16:
1423 fastpathTV.EncMapInt16Uint16V(*v, e)
1424
1425 case map[int16]uint32:
1426 fastpathTV.EncMapInt16Uint32V(v, e)
1427 case *map[int16]uint32:
1428 fastpathTV.EncMapInt16Uint32V(*v, e)
1429
1430 case map[int16]uint64:
1431 fastpathTV.EncMapInt16Uint64V(v, e)
1432 case *map[int16]uint64:
1433 fastpathTV.EncMapInt16Uint64V(*v, e)
1434
1435 case map[int16]uintptr:
1436 fastpathTV.EncMapInt16UintptrV(v, e)
1437 case *map[int16]uintptr:
1438 fastpathTV.EncMapInt16UintptrV(*v, e)
1439
1440 case map[int16]int:
1441 fastpathTV.EncMapInt16IntV(v, e)
1442 case *map[int16]int:
1443 fastpathTV.EncMapInt16IntV(*v, e)
1444
1445 case map[int16]int8:
1446 fastpathTV.EncMapInt16Int8V(v, e)
1447 case *map[int16]int8:
1448 fastpathTV.EncMapInt16Int8V(*v, e)
1449
1450 case map[int16]int16:
1451 fastpathTV.EncMapInt16Int16V(v, e)
1452 case *map[int16]int16:
1453 fastpathTV.EncMapInt16Int16V(*v, e)
1454
1455 case map[int16]int32:
1456 fastpathTV.EncMapInt16Int32V(v, e)
1457 case *map[int16]int32:
1458 fastpathTV.EncMapInt16Int32V(*v, e)
1459
1460 case map[int16]int64:
1461 fastpathTV.EncMapInt16Int64V(v, e)
1462 case *map[int16]int64:
1463 fastpathTV.EncMapInt16Int64V(*v, e)
1464
1465 case map[int16]float32:
1466 fastpathTV.EncMapInt16Float32V(v, e)
1467 case *map[int16]float32:
1468 fastpathTV.EncMapInt16Float32V(*v, e)
1469
1470 case map[int16]float64:
1471 fastpathTV.EncMapInt16Float64V(v, e)
1472 case *map[int16]float64:
1473 fastpathTV.EncMapInt16Float64V(*v, e)
1474
1475 case map[int16]bool:
1476 fastpathTV.EncMapInt16BoolV(v, e)
1477 case *map[int16]bool:
1478 fastpathTV.EncMapInt16BoolV(*v, e)
1479
1480 case []int32:
1481 fastpathTV.EncSliceInt32V(v, e)
1482 case *[]int32:
1483 fastpathTV.EncSliceInt32V(*v, e)
1484
1485 case map[int32]interface{}:
1486 fastpathTV.EncMapInt32IntfV(v, e)
1487 case *map[int32]interface{}:
1488 fastpathTV.EncMapInt32IntfV(*v, e)
1489
1490 case map[int32]string:
1491 fastpathTV.EncMapInt32StringV(v, e)
1492 case *map[int32]string:
1493 fastpathTV.EncMapInt32StringV(*v, e)
1494
1495 case map[int32]uint:
1496 fastpathTV.EncMapInt32UintV(v, e)
1497 case *map[int32]uint:
1498 fastpathTV.EncMapInt32UintV(*v, e)
1499
1500 case map[int32]uint8:
1501 fastpathTV.EncMapInt32Uint8V(v, e)
1502 case *map[int32]uint8:
1503 fastpathTV.EncMapInt32Uint8V(*v, e)
1504
1505 case map[int32]uint16:
1506 fastpathTV.EncMapInt32Uint16V(v, e)
1507 case *map[int32]uint16:
1508 fastpathTV.EncMapInt32Uint16V(*v, e)
1509
1510 case map[int32]uint32:
1511 fastpathTV.EncMapInt32Uint32V(v, e)
1512 case *map[int32]uint32:
1513 fastpathTV.EncMapInt32Uint32V(*v, e)
1514
1515 case map[int32]uint64:
1516 fastpathTV.EncMapInt32Uint64V(v, e)
1517 case *map[int32]uint64:
1518 fastpathTV.EncMapInt32Uint64V(*v, e)
1519
1520 case map[int32]uintptr:
1521 fastpathTV.EncMapInt32UintptrV(v, e)
1522 case *map[int32]uintptr:
1523 fastpathTV.EncMapInt32UintptrV(*v, e)
1524
1525 case map[int32]int:
1526 fastpathTV.EncMapInt32IntV(v, e)
1527 case *map[int32]int:
1528 fastpathTV.EncMapInt32IntV(*v, e)
1529
1530 case map[int32]int8:
1531 fastpathTV.EncMapInt32Int8V(v, e)
1532 case *map[int32]int8:
1533 fastpathTV.EncMapInt32Int8V(*v, e)
1534
1535 case map[int32]int16:
1536 fastpathTV.EncMapInt32Int16V(v, e)
1537 case *map[int32]int16:
1538 fastpathTV.EncMapInt32Int16V(*v, e)
1539
1540 case map[int32]int32:
1541 fastpathTV.EncMapInt32Int32V(v, e)
1542 case *map[int32]int32:
1543 fastpathTV.EncMapInt32Int32V(*v, e)
1544
1545 case map[int32]int64:
1546 fastpathTV.EncMapInt32Int64V(v, e)
1547 case *map[int32]int64:
1548 fastpathTV.EncMapInt32Int64V(*v, e)
1549
1550 case map[int32]float32:
1551 fastpathTV.EncMapInt32Float32V(v, e)
1552 case *map[int32]float32:
1553 fastpathTV.EncMapInt32Float32V(*v, e)
1554
1555 case map[int32]float64:
1556 fastpathTV.EncMapInt32Float64V(v, e)
1557 case *map[int32]float64:
1558 fastpathTV.EncMapInt32Float64V(*v, e)
1559
1560 case map[int32]bool:
1561 fastpathTV.EncMapInt32BoolV(v, e)
1562 case *map[int32]bool:
1563 fastpathTV.EncMapInt32BoolV(*v, e)
1564
1565 case []int64:
1566 fastpathTV.EncSliceInt64V(v, e)
1567 case *[]int64:
1568 fastpathTV.EncSliceInt64V(*v, e)
1569
1570 case map[int64]interface{}:
1571 fastpathTV.EncMapInt64IntfV(v, e)
1572 case *map[int64]interface{}:
1573 fastpathTV.EncMapInt64IntfV(*v, e)
1574
1575 case map[int64]string:
1576 fastpathTV.EncMapInt64StringV(v, e)
1577 case *map[int64]string:
1578 fastpathTV.EncMapInt64StringV(*v, e)
1579
1580 case map[int64]uint:
1581 fastpathTV.EncMapInt64UintV(v, e)
1582 case *map[int64]uint:
1583 fastpathTV.EncMapInt64UintV(*v, e)
1584
1585 case map[int64]uint8:
1586 fastpathTV.EncMapInt64Uint8V(v, e)
1587 case *map[int64]uint8:
1588 fastpathTV.EncMapInt64Uint8V(*v, e)
1589
1590 case map[int64]uint16:
1591 fastpathTV.EncMapInt64Uint16V(v, e)
1592 case *map[int64]uint16:
1593 fastpathTV.EncMapInt64Uint16V(*v, e)
1594
1595 case map[int64]uint32:
1596 fastpathTV.EncMapInt64Uint32V(v, e)
1597 case *map[int64]uint32:
1598 fastpathTV.EncMapInt64Uint32V(*v, e)
1599
1600 case map[int64]uint64:
1601 fastpathTV.EncMapInt64Uint64V(v, e)
1602 case *map[int64]uint64:
1603 fastpathTV.EncMapInt64Uint64V(*v, e)
1604
1605 case map[int64]uintptr:
1606 fastpathTV.EncMapInt64UintptrV(v, e)
1607 case *map[int64]uintptr:
1608 fastpathTV.EncMapInt64UintptrV(*v, e)
1609
1610 case map[int64]int:
1611 fastpathTV.EncMapInt64IntV(v, e)
1612 case *map[int64]int:
1613 fastpathTV.EncMapInt64IntV(*v, e)
1614
1615 case map[int64]int8:
1616 fastpathTV.EncMapInt64Int8V(v, e)
1617 case *map[int64]int8:
1618 fastpathTV.EncMapInt64Int8V(*v, e)
1619
1620 case map[int64]int16:
1621 fastpathTV.EncMapInt64Int16V(v, e)
1622 case *map[int64]int16:
1623 fastpathTV.EncMapInt64Int16V(*v, e)
1624
1625 case map[int64]int32:
1626 fastpathTV.EncMapInt64Int32V(v, e)
1627 case *map[int64]int32:
1628 fastpathTV.EncMapInt64Int32V(*v, e)
1629
1630 case map[int64]int64:
1631 fastpathTV.EncMapInt64Int64V(v, e)
1632 case *map[int64]int64:
1633 fastpathTV.EncMapInt64Int64V(*v, e)
1634
1635 case map[int64]float32:
1636 fastpathTV.EncMapInt64Float32V(v, e)
1637 case *map[int64]float32:
1638 fastpathTV.EncMapInt64Float32V(*v, e)
1639
1640 case map[int64]float64:
1641 fastpathTV.EncMapInt64Float64V(v, e)
1642 case *map[int64]float64:
1643 fastpathTV.EncMapInt64Float64V(*v, e)
1644
1645 case map[int64]bool:
1646 fastpathTV.EncMapInt64BoolV(v, e)
1647 case *map[int64]bool:
1648 fastpathTV.EncMapInt64BoolV(*v, e)
1649
1650 case []bool:
1651 fastpathTV.EncSliceBoolV(v, e)
1652 case *[]bool:
1653 fastpathTV.EncSliceBoolV(*v, e)
1654
1655 case map[bool]interface{}:
1656 fastpathTV.EncMapBoolIntfV(v, e)
1657 case *map[bool]interface{}:
1658 fastpathTV.EncMapBoolIntfV(*v, e)
1659
1660 case map[bool]string:
1661 fastpathTV.EncMapBoolStringV(v, e)
1662 case *map[bool]string:
1663 fastpathTV.EncMapBoolStringV(*v, e)
1664
1665 case map[bool]uint:
1666 fastpathTV.EncMapBoolUintV(v, e)
1667 case *map[bool]uint:
1668 fastpathTV.EncMapBoolUintV(*v, e)
1669
1670 case map[bool]uint8:
1671 fastpathTV.EncMapBoolUint8V(v, e)
1672 case *map[bool]uint8:
1673 fastpathTV.EncMapBoolUint8V(*v, e)
1674
1675 case map[bool]uint16:
1676 fastpathTV.EncMapBoolUint16V(v, e)
1677 case *map[bool]uint16:
1678 fastpathTV.EncMapBoolUint16V(*v, e)
1679
1680 case map[bool]uint32:
1681 fastpathTV.EncMapBoolUint32V(v, e)
1682 case *map[bool]uint32:
1683 fastpathTV.EncMapBoolUint32V(*v, e)
1684
1685 case map[bool]uint64:
1686 fastpathTV.EncMapBoolUint64V(v, e)
1687 case *map[bool]uint64:
1688 fastpathTV.EncMapBoolUint64V(*v, e)
1689
1690 case map[bool]uintptr:
1691 fastpathTV.EncMapBoolUintptrV(v, e)
1692 case *map[bool]uintptr:
1693 fastpathTV.EncMapBoolUintptrV(*v, e)
1694
1695 case map[bool]int:
1696 fastpathTV.EncMapBoolIntV(v, e)
1697 case *map[bool]int:
1698 fastpathTV.EncMapBoolIntV(*v, e)
1699
1700 case map[bool]int8:
1701 fastpathTV.EncMapBoolInt8V(v, e)
1702 case *map[bool]int8:
1703 fastpathTV.EncMapBoolInt8V(*v, e)
1704
1705 case map[bool]int16:
1706 fastpathTV.EncMapBoolInt16V(v, e)
1707 case *map[bool]int16:
1708 fastpathTV.EncMapBoolInt16V(*v, e)
1709
1710 case map[bool]int32:
1711 fastpathTV.EncMapBoolInt32V(v, e)
1712 case *map[bool]int32:
1713 fastpathTV.EncMapBoolInt32V(*v, e)
1714
1715 case map[bool]int64:
1716 fastpathTV.EncMapBoolInt64V(v, e)
1717 case *map[bool]int64:
1718 fastpathTV.EncMapBoolInt64V(*v, e)
1719
1720 case map[bool]float32:
1721 fastpathTV.EncMapBoolFloat32V(v, e)
1722 case *map[bool]float32:
1723 fastpathTV.EncMapBoolFloat32V(*v, e)
1724
1725 case map[bool]float64:
1726 fastpathTV.EncMapBoolFloat64V(v, e)
1727 case *map[bool]float64:
1728 fastpathTV.EncMapBoolFloat64V(*v, e)
1729
1730 case map[bool]bool:
1731 fastpathTV.EncMapBoolBoolV(v, e)
1732 case *map[bool]bool:
1733 fastpathTV.EncMapBoolBoolV(*v, e)
1734
1735 default:
1736 _ = v // TODO: workaround https://github.com/golang/go/issues/12927 (remove after go 1.6 release)
1737 return false
1738 }
1739 return true
1740 }
1741
1742 func fastpathEncodeTypeSwitchSlice(iv interface{}, e *Encoder) bool {
1743 switch v := iv.(type) {
1744
1745 case []interface{}:
1746 fastpathTV.EncSliceIntfV(v, e)
1747 case *[]interface{}:
1748 fastpathTV.EncSliceIntfV(*v, e)
1749
1750 case []string:
1751 fastpathTV.EncSliceStringV(v, e)
1752 case *[]string:
1753 fastpathTV.EncSliceStringV(*v, e)
1754
1755 case []float32:
1756 fastpathTV.EncSliceFloat32V(v, e)
1757 case *[]float32:
1758 fastpathTV.EncSliceFloat32V(*v, e)
1759
1760 case []float64:
1761 fastpathTV.EncSliceFloat64V(v, e)
1762 case *[]float64:
1763 fastpathTV.EncSliceFloat64V(*v, e)
1764
1765 case []uint:
1766 fastpathTV.EncSliceUintV(v, e)
1767 case *[]uint:
1768 fastpathTV.EncSliceUintV(*v, e)
1769
1770 case []uint16:
1771 fastpathTV.EncSliceUint16V(v, e)
1772 case *[]uint16:
1773 fastpathTV.EncSliceUint16V(*v, e)
1774
1775 case []uint32:
1776 fastpathTV.EncSliceUint32V(v, e)
1777 case *[]uint32:
1778 fastpathTV.EncSliceUint32V(*v, e)
1779
1780 case []uint64:
1781 fastpathTV.EncSliceUint64V(v, e)
1782 case *[]uint64:
1783 fastpathTV.EncSliceUint64V(*v, e)
1784
1785 case []uintptr:
1786 fastpathTV.EncSliceUintptrV(v, e)
1787 case *[]uintptr:
1788 fastpathTV.EncSliceUintptrV(*v, e)
1789
1790 case []int:
1791 fastpathTV.EncSliceIntV(v, e)
1792 case *[]int:
1793 fastpathTV.EncSliceIntV(*v, e)
1794
1795 case []int8:
1796 fastpathTV.EncSliceInt8V(v, e)
1797 case *[]int8:
1798 fastpathTV.EncSliceInt8V(*v, e)
1799
1800 case []int16:
1801 fastpathTV.EncSliceInt16V(v, e)
1802 case *[]int16:
1803 fastpathTV.EncSliceInt16V(*v, e)
1804
1805 case []int32:
1806 fastpathTV.EncSliceInt32V(v, e)
1807 case *[]int32:
1808 fastpathTV.EncSliceInt32V(*v, e)
1809
1810 case []int64:
1811 fastpathTV.EncSliceInt64V(v, e)
1812 case *[]int64:
1813 fastpathTV.EncSliceInt64V(*v, e)
1814
1815 case []bool:
1816 fastpathTV.EncSliceBoolV(v, e)
1817 case *[]bool:
1818 fastpathTV.EncSliceBoolV(*v, e)
1819
1820 default:
1821 _ = v // TODO: workaround https://github.com/golang/go/issues/12927 (remove after go 1.6 release)
1822 return false
1823 }
1824 return true
1825 }
1826
1827 func fastpathEncodeTypeSwitchMap(iv interface{}, e *Encoder) bool {
1828 switch v := iv.(type) {
1829
1830 case map[interface{}]interface{}:
1831 fastpathTV.EncMapIntfIntfV(v, e)
1832 case *map[interface{}]interface{}:
1833 fastpathTV.EncMapIntfIntfV(*v, e)
1834
1835 case map[interface{}]string:
1836 fastpathTV.EncMapIntfStringV(v, e)
1837 case *map[interface{}]string:
1838 fastpathTV.EncMapIntfStringV(*v, e)
1839
1840 case map[interface{}]uint:
1841 fastpathTV.EncMapIntfUintV(v, e)
1842 case *map[interface{}]uint:
1843 fastpathTV.EncMapIntfUintV(*v, e)
1844
1845 case map[interface{}]uint8:
1846 fastpathTV.EncMapIntfUint8V(v, e)
1847 case *map[interface{}]uint8:
1848 fastpathTV.EncMapIntfUint8V(*v, e)
1849
1850 case map[interface{}]uint16:
1851 fastpathTV.EncMapIntfUint16V(v, e)
1852 case *map[interface{}]uint16:
1853 fastpathTV.EncMapIntfUint16V(*v, e)
1854
1855 case map[interface{}]uint32:
1856 fastpathTV.EncMapIntfUint32V(v, e)
1857 case *map[interface{}]uint32:
1858 fastpathTV.EncMapIntfUint32V(*v, e)
1859
1860 case map[interface{}]uint64:
1861 fastpathTV.EncMapIntfUint64V(v, e)
1862 case *map[interface{}]uint64:
1863 fastpathTV.EncMapIntfUint64V(*v, e)
1864
1865 case map[interface{}]uintptr:
1866 fastpathTV.EncMapIntfUintptrV(v, e)
1867 case *map[interface{}]uintptr:
1868 fastpathTV.EncMapIntfUintptrV(*v, e)
1869
1870 case map[interface{}]int:
1871 fastpathTV.EncMapIntfIntV(v, e)
1872 case *map[interface{}]int:
1873 fastpathTV.EncMapIntfIntV(*v, e)
1874
1875 case map[interface{}]int8:
1876 fastpathTV.EncMapIntfInt8V(v, e)
1877 case *map[interface{}]int8:
1878 fastpathTV.EncMapIntfInt8V(*v, e)
1879
1880 case map[interface{}]int16:
1881 fastpathTV.EncMapIntfInt16V(v, e)
1882 case *map[interface{}]int16:
1883 fastpathTV.EncMapIntfInt16V(*v, e)
1884
1885 case map[interface{}]int32:
1886 fastpathTV.EncMapIntfInt32V(v, e)
1887 case *map[interface{}]int32:
1888 fastpathTV.EncMapIntfInt32V(*v, e)
1889
1890 case map[interface{}]int64:
1891 fastpathTV.EncMapIntfInt64V(v, e)
1892 case *map[interface{}]int64:
1893 fastpathTV.EncMapIntfInt64V(*v, e)
1894
1895 case map[interface{}]float32:
1896 fastpathTV.EncMapIntfFloat32V(v, e)
1897 case *map[interface{}]float32:
1898 fastpathTV.EncMapIntfFloat32V(*v, e)
1899
1900 case map[interface{}]float64:
1901 fastpathTV.EncMapIntfFloat64V(v, e)
1902 case *map[interface{}]float64:
1903 fastpathTV.EncMapIntfFloat64V(*v, e)
1904
1905 case map[interface{}]bool:
1906 fastpathTV.EncMapIntfBoolV(v, e)
1907 case *map[interface{}]bool:
1908 fastpathTV.EncMapIntfBoolV(*v, e)
1909
1910 case map[string]interface{}:
1911 fastpathTV.EncMapStringIntfV(v, e)
1912 case *map[string]interface{}:
1913 fastpathTV.EncMapStringIntfV(*v, e)
1914
1915 case map[string]string:
1916 fastpathTV.EncMapStringStringV(v, e)
1917 case *map[string]string:
1918 fastpathTV.EncMapStringStringV(*v, e)
1919
1920 case map[string]uint:
1921 fastpathTV.EncMapStringUintV(v, e)
1922 case *map[string]uint:
1923 fastpathTV.EncMapStringUintV(*v, e)
1924
1925 case map[string]uint8:
1926 fastpathTV.EncMapStringUint8V(v, e)
1927 case *map[string]uint8:
1928 fastpathTV.EncMapStringUint8V(*v, e)
1929
1930 case map[string]uint16:
1931 fastpathTV.EncMapStringUint16V(v, e)
1932 case *map[string]uint16:
1933 fastpathTV.EncMapStringUint16V(*v, e)
1934
1935 case map[string]uint32:
1936 fastpathTV.EncMapStringUint32V(v, e)
1937 case *map[string]uint32:
1938 fastpathTV.EncMapStringUint32V(*v, e)
1939
1940 case map[string]uint64:
1941 fastpathTV.EncMapStringUint64V(v, e)
1942 case *map[string]uint64:
1943 fastpathTV.EncMapStringUint64V(*v, e)
1944
1945 case map[string]uintptr:
1946 fastpathTV.EncMapStringUintptrV(v, e)
1947 case *map[string]uintptr:
1948 fastpathTV.EncMapStringUintptrV(*v, e)
1949
1950 case map[string]int:
1951 fastpathTV.EncMapStringIntV(v, e)
1952 case *map[string]int:
1953 fastpathTV.EncMapStringIntV(*v, e)
1954
1955 case map[string]int8:
1956 fastpathTV.EncMapStringInt8V(v, e)
1957 case *map[string]int8:
1958 fastpathTV.EncMapStringInt8V(*v, e)
1959
1960 case map[string]int16:
1961 fastpathTV.EncMapStringInt16V(v, e)
1962 case *map[string]int16:
1963 fastpathTV.EncMapStringInt16V(*v, e)
1964
1965 case map[string]int32:
1966 fastpathTV.EncMapStringInt32V(v, e)
1967 case *map[string]int32:
1968 fastpathTV.EncMapStringInt32V(*v, e)
1969
1970 case map[string]int64:
1971 fastpathTV.EncMapStringInt64V(v, e)
1972 case *map[string]int64:
1973 fastpathTV.EncMapStringInt64V(*v, e)
1974
1975 case map[string]float32:
1976 fastpathTV.EncMapStringFloat32V(v, e)
1977 case *map[string]float32:
1978 fastpathTV.EncMapStringFloat32V(*v, e)
1979
1980 case map[string]float64:
1981 fastpathTV.EncMapStringFloat64V(v, e)
1982 case *map[string]float64:
1983 fastpathTV.EncMapStringFloat64V(*v, e)
1984
1985 case map[string]bool:
1986 fastpathTV.EncMapStringBoolV(v, e)
1987 case *map[string]bool:
1988 fastpathTV.EncMapStringBoolV(*v, e)
1989
1990 case map[float32]interface{}:
1991 fastpathTV.EncMapFloat32IntfV(v, e)
1992 case *map[float32]interface{}:
1993 fastpathTV.EncMapFloat32IntfV(*v, e)
1994
1995 case map[float32]string:
1996 fastpathTV.EncMapFloat32StringV(v, e)
1997 case *map[float32]string:
1998 fastpathTV.EncMapFloat32StringV(*v, e)
1999
2000 case map[float32]uint:
2001 fastpathTV.EncMapFloat32UintV(v, e)
2002 case *map[float32]uint:
2003 fastpathTV.EncMapFloat32UintV(*v, e)
2004
2005 case map[float32]uint8:
2006 fastpathTV.EncMapFloat32Uint8V(v, e)
2007 case *map[float32]uint8:
2008 fastpathTV.EncMapFloat32Uint8V(*v, e)
2009
2010 case map[float32]uint16:
2011 fastpathTV.EncMapFloat32Uint16V(v, e)
2012 case *map[float32]uint16:
2013 fastpathTV.EncMapFloat32Uint16V(*v, e)
2014
2015 case map[float32]uint32:
2016 fastpathTV.EncMapFloat32Uint32V(v, e)
2017 case *map[float32]uint32:
2018 fastpathTV.EncMapFloat32Uint32V(*v, e)
2019
2020 case map[float32]uint64:
2021 fastpathTV.EncMapFloat32Uint64V(v, e)
2022 case *map[float32]uint64:
2023 fastpathTV.EncMapFloat32Uint64V(*v, e)
2024
2025 case map[float32]uintptr:
2026 fastpathTV.EncMapFloat32UintptrV(v, e)
2027 case *map[float32]uintptr:
2028 fastpathTV.EncMapFloat32UintptrV(*v, e)
2029
2030 case map[float32]int:
2031 fastpathTV.EncMapFloat32IntV(v, e)
2032 case *map[float32]int:
2033 fastpathTV.EncMapFloat32IntV(*v, e)
2034
2035 case map[float32]int8:
2036 fastpathTV.EncMapFloat32Int8V(v, e)
2037 case *map[float32]int8:
2038 fastpathTV.EncMapFloat32Int8V(*v, e)
2039
2040 case map[float32]int16:
2041 fastpathTV.EncMapFloat32Int16V(v, e)
2042 case *map[float32]int16:
2043 fastpathTV.EncMapFloat32Int16V(*v, e)
2044
2045 case map[float32]int32:
2046 fastpathTV.EncMapFloat32Int32V(v, e)
2047 case *map[float32]int32:
2048 fastpathTV.EncMapFloat32Int32V(*v, e)
2049
2050 case map[float32]int64:
2051 fastpathTV.EncMapFloat32Int64V(v, e)
2052 case *map[float32]int64:
2053 fastpathTV.EncMapFloat32Int64V(*v, e)
2054
2055 case map[float32]float32:
2056 fastpathTV.EncMapFloat32Float32V(v, e)
2057 case *map[float32]float32:
2058 fastpathTV.EncMapFloat32Float32V(*v, e)
2059
2060 case map[float32]float64:
2061 fastpathTV.EncMapFloat32Float64V(v, e)
2062 case *map[float32]float64:
2063 fastpathTV.EncMapFloat32Float64V(*v, e)
2064
2065 case map[float32]bool:
2066 fastpathTV.EncMapFloat32BoolV(v, e)
2067 case *map[float32]bool:
2068 fastpathTV.EncMapFloat32BoolV(*v, e)
2069
2070 case map[float64]interface{}:
2071 fastpathTV.EncMapFloat64IntfV(v, e)
2072 case *map[float64]interface{}:
2073 fastpathTV.EncMapFloat64IntfV(*v, e)
2074
2075 case map[float64]string:
2076 fastpathTV.EncMapFloat64StringV(v, e)
2077 case *map[float64]string:
2078 fastpathTV.EncMapFloat64StringV(*v, e)
2079
2080 case map[float64]uint:
2081 fastpathTV.EncMapFloat64UintV(v, e)
2082 case *map[float64]uint:
2083 fastpathTV.EncMapFloat64UintV(*v, e)
2084
2085 case map[float64]uint8:
2086 fastpathTV.EncMapFloat64Uint8V(v, e)
2087 case *map[float64]uint8:
2088 fastpathTV.EncMapFloat64Uint8V(*v, e)
2089
2090 case map[float64]uint16:
2091 fastpathTV.EncMapFloat64Uint16V(v, e)
2092 case *map[float64]uint16:
2093 fastpathTV.EncMapFloat64Uint16V(*v, e)
2094
2095 case map[float64]uint32:
2096 fastpathTV.EncMapFloat64Uint32V(v, e)
2097 case *map[float64]uint32:
2098 fastpathTV.EncMapFloat64Uint32V(*v, e)
2099
2100 case map[float64]uint64:
2101 fastpathTV.EncMapFloat64Uint64V(v, e)
2102 case *map[float64]uint64:
2103 fastpathTV.EncMapFloat64Uint64V(*v, e)
2104
2105 case map[float64]uintptr:
2106 fastpathTV.EncMapFloat64UintptrV(v, e)
2107 case *map[float64]uintptr:
2108 fastpathTV.EncMapFloat64UintptrV(*v, e)
2109
2110 case map[float64]int:
2111 fastpathTV.EncMapFloat64IntV(v, e)
2112 case *map[float64]int:
2113 fastpathTV.EncMapFloat64IntV(*v, e)
2114
2115 case map[float64]int8:
2116 fastpathTV.EncMapFloat64Int8V(v, e)
2117 case *map[float64]int8:
2118 fastpathTV.EncMapFloat64Int8V(*v, e)
2119
2120 case map[float64]int16:
2121 fastpathTV.EncMapFloat64Int16V(v, e)
2122 case *map[float64]int16:
2123 fastpathTV.EncMapFloat64Int16V(*v, e)
2124
2125 case map[float64]int32:
2126 fastpathTV.EncMapFloat64Int32V(v, e)
2127 case *map[float64]int32:
2128 fastpathTV.EncMapFloat64Int32V(*v, e)
2129
2130 case map[float64]int64:
2131 fastpathTV.EncMapFloat64Int64V(v, e)
2132 case *map[float64]int64:
2133 fastpathTV.EncMapFloat64Int64V(*v, e)
2134
2135 case map[float64]float32:
2136 fastpathTV.EncMapFloat64Float32V(v, e)
2137 case *map[float64]float32:
2138 fastpathTV.EncMapFloat64Float32V(*v, e)
2139
2140 case map[float64]float64:
2141 fastpathTV.EncMapFloat64Float64V(v, e)
2142 case *map[float64]float64:
2143 fastpathTV.EncMapFloat64Float64V(*v, e)
2144
2145 case map[float64]bool:
2146 fastpathTV.EncMapFloat64BoolV(v, e)
2147 case *map[float64]bool:
2148 fastpathTV.EncMapFloat64BoolV(*v, e)
2149
2150 case map[uint]interface{}:
2151 fastpathTV.EncMapUintIntfV(v, e)
2152 case *map[uint]interface{}:
2153 fastpathTV.EncMapUintIntfV(*v, e)
2154
2155 case map[uint]string:
2156 fastpathTV.EncMapUintStringV(v, e)
2157 case *map[uint]string:
2158 fastpathTV.EncMapUintStringV(*v, e)
2159
2160 case map[uint]uint:
2161 fastpathTV.EncMapUintUintV(v, e)
2162 case *map[uint]uint:
2163 fastpathTV.EncMapUintUintV(*v, e)
2164
2165 case map[uint]uint8:
2166 fastpathTV.EncMapUintUint8V(v, e)
2167 case *map[uint]uint8:
2168 fastpathTV.EncMapUintUint8V(*v, e)
2169
2170 case map[uint]uint16:
2171 fastpathTV.EncMapUintUint16V(v, e)
2172 case *map[uint]uint16:
2173 fastpathTV.EncMapUintUint16V(*v, e)
2174
2175 case map[uint]uint32:
2176 fastpathTV.EncMapUintUint32V(v, e)
2177 case *map[uint]uint32:
2178 fastpathTV.EncMapUintUint32V(*v, e)
2179
2180 case map[uint]uint64:
2181 fastpathTV.EncMapUintUint64V(v, e)
2182 case *map[uint]uint64:
2183 fastpathTV.EncMapUintUint64V(*v, e)
2184
2185 case map[uint]uintptr:
2186 fastpathTV.EncMapUintUintptrV(v, e)
2187 case *map[uint]uintptr:
2188 fastpathTV.EncMapUintUintptrV(*v, e)
2189
2190 case map[uint]int:
2191 fastpathTV.EncMapUintIntV(v, e)
2192 case *map[uint]int:
2193 fastpathTV.EncMapUintIntV(*v, e)
2194
2195 case map[uint]int8:
2196 fastpathTV.EncMapUintInt8V(v, e)
2197 case *map[uint]int8:
2198 fastpathTV.EncMapUintInt8V(*v, e)
2199
2200 case map[uint]int16:
2201 fastpathTV.EncMapUintInt16V(v, e)
2202 case *map[uint]int16:
2203 fastpathTV.EncMapUintInt16V(*v, e)
2204
2205 case map[uint]int32:
2206 fastpathTV.EncMapUintInt32V(v, e)
2207 case *map[uint]int32:
2208 fastpathTV.EncMapUintInt32V(*v, e)
2209
2210 case map[uint]int64:
2211 fastpathTV.EncMapUintInt64V(v, e)
2212 case *map[uint]int64:
2213 fastpathTV.EncMapUintInt64V(*v, e)
2214
2215 case map[uint]float32:
2216 fastpathTV.EncMapUintFloat32V(v, e)
2217 case *map[uint]float32:
2218 fastpathTV.EncMapUintFloat32V(*v, e)
2219
2220 case map[uint]float64:
2221 fastpathTV.EncMapUintFloat64V(v, e)
2222 case *map[uint]float64:
2223 fastpathTV.EncMapUintFloat64V(*v, e)
2224
2225 case map[uint]bool:
2226 fastpathTV.EncMapUintBoolV(v, e)
2227 case *map[uint]bool:
2228 fastpathTV.EncMapUintBoolV(*v, e)
2229
2230 case map[uint8]interface{}:
2231 fastpathTV.EncMapUint8IntfV(v, e)
2232 case *map[uint8]interface{}:
2233 fastpathTV.EncMapUint8IntfV(*v, e)
2234
2235 case map[uint8]string:
2236 fastpathTV.EncMapUint8StringV(v, e)
2237 case *map[uint8]string:
2238 fastpathTV.EncMapUint8StringV(*v, e)
2239
2240 case map[uint8]uint:
2241 fastpathTV.EncMapUint8UintV(v, e)
2242 case *map[uint8]uint:
2243 fastpathTV.EncMapUint8UintV(*v, e)
2244
2245 case map[uint8]uint8:
2246 fastpathTV.EncMapUint8Uint8V(v, e)
2247 case *map[uint8]uint8:
2248 fastpathTV.EncMapUint8Uint8V(*v, e)
2249
2250 case map[uint8]uint16:
2251 fastpathTV.EncMapUint8Uint16V(v, e)
2252 case *map[uint8]uint16:
2253 fastpathTV.EncMapUint8Uint16V(*v, e)
2254
2255 case map[uint8]uint32:
2256 fastpathTV.EncMapUint8Uint32V(v, e)
2257 case *map[uint8]uint32:
2258 fastpathTV.EncMapUint8Uint32V(*v, e)
2259
2260 case map[uint8]uint64:
2261 fastpathTV.EncMapUint8Uint64V(v, e)
2262 case *map[uint8]uint64:
2263 fastpathTV.EncMapUint8Uint64V(*v, e)
2264
2265 case map[uint8]uintptr:
2266 fastpathTV.EncMapUint8UintptrV(v, e)
2267 case *map[uint8]uintptr:
2268 fastpathTV.EncMapUint8UintptrV(*v, e)
2269
2270 case map[uint8]int:
2271 fastpathTV.EncMapUint8IntV(v, e)
2272 case *map[uint8]int:
2273 fastpathTV.EncMapUint8IntV(*v, e)
2274
2275 case map[uint8]int8:
2276 fastpathTV.EncMapUint8Int8V(v, e)
2277 case *map[uint8]int8:
2278 fastpathTV.EncMapUint8Int8V(*v, e)
2279
2280 case map[uint8]int16:
2281 fastpathTV.EncMapUint8Int16V(v, e)
2282 case *map[uint8]int16:
2283 fastpathTV.EncMapUint8Int16V(*v, e)
2284
2285 case map[uint8]int32:
2286 fastpathTV.EncMapUint8Int32V(v, e)
2287 case *map[uint8]int32:
2288 fastpathTV.EncMapUint8Int32V(*v, e)
2289
2290 case map[uint8]int64:
2291 fastpathTV.EncMapUint8Int64V(v, e)
2292 case *map[uint8]int64:
2293 fastpathTV.EncMapUint8Int64V(*v, e)
2294
2295 case map[uint8]float32:
2296 fastpathTV.EncMapUint8Float32V(v, e)
2297 case *map[uint8]float32:
2298 fastpathTV.EncMapUint8Float32V(*v, e)
2299
2300 case map[uint8]float64:
2301 fastpathTV.EncMapUint8Float64V(v, e)
2302 case *map[uint8]float64:
2303 fastpathTV.EncMapUint8Float64V(*v, e)
2304
2305 case map[uint8]bool:
2306 fastpathTV.EncMapUint8BoolV(v, e)
2307 case *map[uint8]bool:
2308 fastpathTV.EncMapUint8BoolV(*v, e)
2309
2310 case map[uint16]interface{}:
2311 fastpathTV.EncMapUint16IntfV(v, e)
2312 case *map[uint16]interface{}:
2313 fastpathTV.EncMapUint16IntfV(*v, e)
2314
2315 case map[uint16]string:
2316 fastpathTV.EncMapUint16StringV(v, e)
2317 case *map[uint16]string:
2318 fastpathTV.EncMapUint16StringV(*v, e)
2319
2320 case map[uint16]uint:
2321 fastpathTV.EncMapUint16UintV(v, e)
2322 case *map[uint16]uint:
2323 fastpathTV.EncMapUint16UintV(*v, e)
2324
2325 case map[uint16]uint8:
2326 fastpathTV.EncMapUint16Uint8V(v, e)
2327 case *map[uint16]uint8:
2328 fastpathTV.EncMapUint16Uint8V(*v, e)
2329
2330 case map[uint16]uint16:
2331 fastpathTV.EncMapUint16Uint16V(v, e)
2332 case *map[uint16]uint16:
2333 fastpathTV.EncMapUint16Uint16V(*v, e)
2334
2335 case map[uint16]uint32:
2336 fastpathTV.EncMapUint16Uint32V(v, e)
2337 case *map[uint16]uint32:
2338 fastpathTV.EncMapUint16Uint32V(*v, e)
2339
2340 case map[uint16]uint64:
2341 fastpathTV.EncMapUint16Uint64V(v, e)
2342 case *map[uint16]uint64:
2343 fastpathTV.EncMapUint16Uint64V(*v, e)
2344
2345 case map[uint16]uintptr:
2346 fastpathTV.EncMapUint16UintptrV(v, e)
2347 case *map[uint16]uintptr:
2348 fastpathTV.EncMapUint16UintptrV(*v, e)
2349
2350 case map[uint16]int:
2351 fastpathTV.EncMapUint16IntV(v, e)
2352 case *map[uint16]int:
2353 fastpathTV.EncMapUint16IntV(*v, e)
2354
2355 case map[uint16]int8:
2356 fastpathTV.EncMapUint16Int8V(v, e)
2357 case *map[uint16]int8:
2358 fastpathTV.EncMapUint16Int8V(*v, e)
2359
2360 case map[uint16]int16:
2361 fastpathTV.EncMapUint16Int16V(v, e)
2362 case *map[uint16]int16:
2363 fastpathTV.EncMapUint16Int16V(*v, e)
2364
2365 case map[uint16]int32:
2366 fastpathTV.EncMapUint16Int32V(v, e)
2367 case *map[uint16]int32:
2368 fastpathTV.EncMapUint16Int32V(*v, e)
2369
2370 case map[uint16]int64:
2371 fastpathTV.EncMapUint16Int64V(v, e)
2372 case *map[uint16]int64:
2373 fastpathTV.EncMapUint16Int64V(*v, e)
2374
2375 case map[uint16]float32:
2376 fastpathTV.EncMapUint16Float32V(v, e)
2377 case *map[uint16]float32:
2378 fastpathTV.EncMapUint16Float32V(*v, e)
2379
2380 case map[uint16]float64:
2381 fastpathTV.EncMapUint16Float64V(v, e)
2382 case *map[uint16]float64:
2383 fastpathTV.EncMapUint16Float64V(*v, e)
2384
2385 case map[uint16]bool:
2386 fastpathTV.EncMapUint16BoolV(v, e)
2387 case *map[uint16]bool:
2388 fastpathTV.EncMapUint16BoolV(*v, e)
2389
2390 case map[uint32]interface{}:
2391 fastpathTV.EncMapUint32IntfV(v, e)
2392 case *map[uint32]interface{}:
2393 fastpathTV.EncMapUint32IntfV(*v, e)
2394
2395 case map[uint32]string:
2396 fastpathTV.EncMapUint32StringV(v, e)
2397 case *map[uint32]string:
2398 fastpathTV.EncMapUint32StringV(*v, e)
2399
2400 case map[uint32]uint:
2401 fastpathTV.EncMapUint32UintV(v, e)
2402 case *map[uint32]uint:
2403 fastpathTV.EncMapUint32UintV(*v, e)
2404
2405 case map[uint32]uint8:
2406 fastpathTV.EncMapUint32Uint8V(v, e)
2407 case *map[uint32]uint8:
2408 fastpathTV.EncMapUint32Uint8V(*v, e)
2409
2410 case map[uint32]uint16:
2411 fastpathTV.EncMapUint32Uint16V(v, e)
2412 case *map[uint32]uint16:
2413 fastpathTV.EncMapUint32Uint16V(*v, e)
2414
2415 case map[uint32]uint32:
2416 fastpathTV.EncMapUint32Uint32V(v, e)
2417 case *map[uint32]uint32:
2418 fastpathTV.EncMapUint32Uint32V(*v, e)
2419
2420 case map[uint32]uint64:
2421 fastpathTV.EncMapUint32Uint64V(v, e)
2422 case *map[uint32]uint64:
2423 fastpathTV.EncMapUint32Uint64V(*v, e)
2424
2425 case map[uint32]uintptr:
2426 fastpathTV.EncMapUint32UintptrV(v, e)
2427 case *map[uint32]uintptr:
2428 fastpathTV.EncMapUint32UintptrV(*v, e)
2429
2430 case map[uint32]int:
2431 fastpathTV.EncMapUint32IntV(v, e)
2432 case *map[uint32]int:
2433 fastpathTV.EncMapUint32IntV(*v, e)
2434
2435 case map[uint32]int8:
2436 fastpathTV.EncMapUint32Int8V(v, e)
2437 case *map[uint32]int8:
2438 fastpathTV.EncMapUint32Int8V(*v, e)
2439
2440 case map[uint32]int16:
2441 fastpathTV.EncMapUint32Int16V(v, e)
2442 case *map[uint32]int16:
2443 fastpathTV.EncMapUint32Int16V(*v, e)
2444
2445 case map[uint32]int32:
2446 fastpathTV.EncMapUint32Int32V(v, e)
2447 case *map[uint32]int32:
2448 fastpathTV.EncMapUint32Int32V(*v, e)
2449
2450 case map[uint32]int64:
2451 fastpathTV.EncMapUint32Int64V(v, e)
2452 case *map[uint32]int64:
2453 fastpathTV.EncMapUint32Int64V(*v, e)
2454
2455 case map[uint32]float32:
2456 fastpathTV.EncMapUint32Float32V(v, e)
2457 case *map[uint32]float32:
2458 fastpathTV.EncMapUint32Float32V(*v, e)
2459
2460 case map[uint32]float64:
2461 fastpathTV.EncMapUint32Float64V(v, e)
2462 case *map[uint32]float64:
2463 fastpathTV.EncMapUint32Float64V(*v, e)
2464
2465 case map[uint32]bool:
2466 fastpathTV.EncMapUint32BoolV(v, e)
2467 case *map[uint32]bool:
2468 fastpathTV.EncMapUint32BoolV(*v, e)
2469
2470 case map[uint64]interface{}:
2471 fastpathTV.EncMapUint64IntfV(v, e)
2472 case *map[uint64]interface{}:
2473 fastpathTV.EncMapUint64IntfV(*v, e)
2474
2475 case map[uint64]string:
2476 fastpathTV.EncMapUint64StringV(v, e)
2477 case *map[uint64]string:
2478 fastpathTV.EncMapUint64StringV(*v, e)
2479
2480 case map[uint64]uint:
2481 fastpathTV.EncMapUint64UintV(v, e)
2482 case *map[uint64]uint:
2483 fastpathTV.EncMapUint64UintV(*v, e)
2484
2485 case map[uint64]uint8:
2486 fastpathTV.EncMapUint64Uint8V(v, e)
2487 case *map[uint64]uint8:
2488 fastpathTV.EncMapUint64Uint8V(*v, e)
2489
2490 case map[uint64]uint16:
2491 fastpathTV.EncMapUint64Uint16V(v, e)
2492 case *map[uint64]uint16:
2493 fastpathTV.EncMapUint64Uint16V(*v, e)
2494
2495 case map[uint64]uint32:
2496 fastpathTV.EncMapUint64Uint32V(v, e)
2497 case *map[uint64]uint32:
2498 fastpathTV.EncMapUint64Uint32V(*v, e)
2499
2500 case map[uint64]uint64:
2501 fastpathTV.EncMapUint64Uint64V(v, e)
2502 case *map[uint64]uint64:
2503 fastpathTV.EncMapUint64Uint64V(*v, e)
2504
2505 case map[uint64]uintptr:
2506 fastpathTV.EncMapUint64UintptrV(v, e)
2507 case *map[uint64]uintptr:
2508 fastpathTV.EncMapUint64UintptrV(*v, e)
2509
2510 case map[uint64]int:
2511 fastpathTV.EncMapUint64IntV(v, e)
2512 case *map[uint64]int:
2513 fastpathTV.EncMapUint64IntV(*v, e)
2514
2515 case map[uint64]int8:
2516 fastpathTV.EncMapUint64Int8V(v, e)
2517 case *map[uint64]int8:
2518 fastpathTV.EncMapUint64Int8V(*v, e)
2519
2520 case map[uint64]int16:
2521 fastpathTV.EncMapUint64Int16V(v, e)
2522 case *map[uint64]int16:
2523 fastpathTV.EncMapUint64Int16V(*v, e)
2524
2525 case map[uint64]int32:
2526 fastpathTV.EncMapUint64Int32V(v, e)
2527 case *map[uint64]int32:
2528 fastpathTV.EncMapUint64Int32V(*v, e)
2529
2530 case map[uint64]int64:
2531 fastpathTV.EncMapUint64Int64V(v, e)
2532 case *map[uint64]int64:
2533 fastpathTV.EncMapUint64Int64V(*v, e)
2534
2535 case map[uint64]float32:
2536 fastpathTV.EncMapUint64Float32V(v, e)
2537 case *map[uint64]float32:
2538 fastpathTV.EncMapUint64Float32V(*v, e)
2539
2540 case map[uint64]float64:
2541 fastpathTV.EncMapUint64Float64V(v, e)
2542 case *map[uint64]float64:
2543 fastpathTV.EncMapUint64Float64V(*v, e)
2544
2545 case map[uint64]bool:
2546 fastpathTV.EncMapUint64BoolV(v, e)
2547 case *map[uint64]bool:
2548 fastpathTV.EncMapUint64BoolV(*v, e)
2549
2550 case map[uintptr]interface{}:
2551 fastpathTV.EncMapUintptrIntfV(v, e)
2552 case *map[uintptr]interface{}:
2553 fastpathTV.EncMapUintptrIntfV(*v, e)
2554
2555 case map[uintptr]string:
2556 fastpathTV.EncMapUintptrStringV(v, e)
2557 case *map[uintptr]string:
2558 fastpathTV.EncMapUintptrStringV(*v, e)
2559
2560 case map[uintptr]uint:
2561 fastpathTV.EncMapUintptrUintV(v, e)
2562 case *map[uintptr]uint:
2563 fastpathTV.EncMapUintptrUintV(*v, e)
2564
2565 case map[uintptr]uint8:
2566 fastpathTV.EncMapUintptrUint8V(v, e)
2567 case *map[uintptr]uint8:
2568 fastpathTV.EncMapUintptrUint8V(*v, e)
2569
2570 case map[uintptr]uint16:
2571 fastpathTV.EncMapUintptrUint16V(v, e)
2572 case *map[uintptr]uint16:
2573 fastpathTV.EncMapUintptrUint16V(*v, e)
2574
2575 case map[uintptr]uint32:
2576 fastpathTV.EncMapUintptrUint32V(v, e)
2577 case *map[uintptr]uint32:
2578 fastpathTV.EncMapUintptrUint32V(*v, e)
2579
2580 case map[uintptr]uint64:
2581 fastpathTV.EncMapUintptrUint64V(v, e)
2582 case *map[uintptr]uint64:
2583 fastpathTV.EncMapUintptrUint64V(*v, e)
2584
2585 case map[uintptr]uintptr:
2586 fastpathTV.EncMapUintptrUintptrV(v, e)
2587 case *map[uintptr]uintptr:
2588 fastpathTV.EncMapUintptrUintptrV(*v, e)
2589
2590 case map[uintptr]int:
2591 fastpathTV.EncMapUintptrIntV(v, e)
2592 case *map[uintptr]int:
2593 fastpathTV.EncMapUintptrIntV(*v, e)
2594
2595 case map[uintptr]int8:
2596 fastpathTV.EncMapUintptrInt8V(v, e)
2597 case *map[uintptr]int8:
2598 fastpathTV.EncMapUintptrInt8V(*v, e)
2599
2600 case map[uintptr]int16:
2601 fastpathTV.EncMapUintptrInt16V(v, e)
2602 case *map[uintptr]int16:
2603 fastpathTV.EncMapUintptrInt16V(*v, e)
2604
2605 case map[uintptr]int32:
2606 fastpathTV.EncMapUintptrInt32V(v, e)
2607 case *map[uintptr]int32:
2608 fastpathTV.EncMapUintptrInt32V(*v, e)
2609
2610 case map[uintptr]int64:
2611 fastpathTV.EncMapUintptrInt64V(v, e)
2612 case *map[uintptr]int64:
2613 fastpathTV.EncMapUintptrInt64V(*v, e)
2614
2615 case map[uintptr]float32:
2616 fastpathTV.EncMapUintptrFloat32V(v, e)
2617 case *map[uintptr]float32:
2618 fastpathTV.EncMapUintptrFloat32V(*v, e)
2619
2620 case map[uintptr]float64:
2621 fastpathTV.EncMapUintptrFloat64V(v, e)
2622 case *map[uintptr]float64:
2623 fastpathTV.EncMapUintptrFloat64V(*v, e)
2624
2625 case map[uintptr]bool:
2626 fastpathTV.EncMapUintptrBoolV(v, e)
2627 case *map[uintptr]bool:
2628 fastpathTV.EncMapUintptrBoolV(*v, e)
2629
2630 case map[int]interface{}:
2631 fastpathTV.EncMapIntIntfV(v, e)
2632 case *map[int]interface{}:
2633 fastpathTV.EncMapIntIntfV(*v, e)
2634
2635 case map[int]string:
2636 fastpathTV.EncMapIntStringV(v, e)
2637 case *map[int]string:
2638 fastpathTV.EncMapIntStringV(*v, e)
2639
2640 case map[int]uint:
2641 fastpathTV.EncMapIntUintV(v, e)
2642 case *map[int]uint:
2643 fastpathTV.EncMapIntUintV(*v, e)
2644
2645 case map[int]uint8:
2646 fastpathTV.EncMapIntUint8V(v, e)
2647 case *map[int]uint8:
2648 fastpathTV.EncMapIntUint8V(*v, e)
2649
2650 case map[int]uint16:
2651 fastpathTV.EncMapIntUint16V(v, e)
2652 case *map[int]uint16:
2653 fastpathTV.EncMapIntUint16V(*v, e)
2654
2655 case map[int]uint32:
2656 fastpathTV.EncMapIntUint32V(v, e)
2657 case *map[int]uint32:
2658 fastpathTV.EncMapIntUint32V(*v, e)
2659
2660 case map[int]uint64:
2661 fastpathTV.EncMapIntUint64V(v, e)
2662 case *map[int]uint64:
2663 fastpathTV.EncMapIntUint64V(*v, e)
2664
2665 case map[int]uintptr:
2666 fastpathTV.EncMapIntUintptrV(v, e)
2667 case *map[int]uintptr:
2668 fastpathTV.EncMapIntUintptrV(*v, e)
2669
2670 case map[int]int:
2671 fastpathTV.EncMapIntIntV(v, e)
2672 case *map[int]int:
2673 fastpathTV.EncMapIntIntV(*v, e)
2674
2675 case map[int]int8:
2676 fastpathTV.EncMapIntInt8V(v, e)
2677 case *map[int]int8:
2678 fastpathTV.EncMapIntInt8V(*v, e)
2679
2680 case map[int]int16:
2681 fastpathTV.EncMapIntInt16V(v, e)
2682 case *map[int]int16:
2683 fastpathTV.EncMapIntInt16V(*v, e)
2684
2685 case map[int]int32:
2686 fastpathTV.EncMapIntInt32V(v, e)
2687 case *map[int]int32:
2688 fastpathTV.EncMapIntInt32V(*v, e)
2689
2690 case map[int]int64:
2691 fastpathTV.EncMapIntInt64V(v, e)
2692 case *map[int]int64:
2693 fastpathTV.EncMapIntInt64V(*v, e)
2694
2695 case map[int]float32:
2696 fastpathTV.EncMapIntFloat32V(v, e)
2697 case *map[int]float32:
2698 fastpathTV.EncMapIntFloat32V(*v, e)
2699
2700 case map[int]float64:
2701 fastpathTV.EncMapIntFloat64V(v, e)
2702 case *map[int]float64:
2703 fastpathTV.EncMapIntFloat64V(*v, e)
2704
2705 case map[int]bool:
2706 fastpathTV.EncMapIntBoolV(v, e)
2707 case *map[int]bool:
2708 fastpathTV.EncMapIntBoolV(*v, e)
2709
2710 case map[int8]interface{}:
2711 fastpathTV.EncMapInt8IntfV(v, e)
2712 case *map[int8]interface{}:
2713 fastpathTV.EncMapInt8IntfV(*v, e)
2714
2715 case map[int8]string:
2716 fastpathTV.EncMapInt8StringV(v, e)
2717 case *map[int8]string:
2718 fastpathTV.EncMapInt8StringV(*v, e)
2719
2720 case map[int8]uint:
2721 fastpathTV.EncMapInt8UintV(v, e)
2722 case *map[int8]uint:
2723 fastpathTV.EncMapInt8UintV(*v, e)
2724
2725 case map[int8]uint8:
2726 fastpathTV.EncMapInt8Uint8V(v, e)
2727 case *map[int8]uint8:
2728 fastpathTV.EncMapInt8Uint8V(*v, e)
2729
2730 case map[int8]uint16:
2731 fastpathTV.EncMapInt8Uint16V(v, e)
2732 case *map[int8]uint16:
2733 fastpathTV.EncMapInt8Uint16V(*v, e)
2734
2735 case map[int8]uint32:
2736 fastpathTV.EncMapInt8Uint32V(v, e)
2737 case *map[int8]uint32:
2738 fastpathTV.EncMapInt8Uint32V(*v, e)
2739
2740 case map[int8]uint64:
2741 fastpathTV.EncMapInt8Uint64V(v, e)
2742 case *map[int8]uint64:
2743 fastpathTV.EncMapInt8Uint64V(*v, e)
2744
2745 case map[int8]uintptr:
2746 fastpathTV.EncMapInt8UintptrV(v, e)
2747 case *map[int8]uintptr:
2748 fastpathTV.EncMapInt8UintptrV(*v, e)
2749
2750 case map[int8]int:
2751 fastpathTV.EncMapInt8IntV(v, e)
2752 case *map[int8]int:
2753 fastpathTV.EncMapInt8IntV(*v, e)
2754
2755 case map[int8]int8:
2756 fastpathTV.EncMapInt8Int8V(v, e)
2757 case *map[int8]int8:
2758 fastpathTV.EncMapInt8Int8V(*v, e)
2759
2760 case map[int8]int16:
2761 fastpathTV.EncMapInt8Int16V(v, e)
2762 case *map[int8]int16:
2763 fastpathTV.EncMapInt8Int16V(*v, e)
2764
2765 case map[int8]int32:
2766 fastpathTV.EncMapInt8Int32V(v, e)
2767 case *map[int8]int32:
2768 fastpathTV.EncMapInt8Int32V(*v, e)
2769
2770 case map[int8]int64:
2771 fastpathTV.EncMapInt8Int64V(v, e)
2772 case *map[int8]int64:
2773 fastpathTV.EncMapInt8Int64V(*v, e)
2774
2775 case map[int8]float32:
2776 fastpathTV.EncMapInt8Float32V(v, e)
2777 case *map[int8]float32:
2778 fastpathTV.EncMapInt8Float32V(*v, e)
2779
2780 case map[int8]float64:
2781 fastpathTV.EncMapInt8Float64V(v, e)
2782 case *map[int8]float64:
2783 fastpathTV.EncMapInt8Float64V(*v, e)
2784
2785 case map[int8]bool:
2786 fastpathTV.EncMapInt8BoolV(v, e)
2787 case *map[int8]bool:
2788 fastpathTV.EncMapInt8BoolV(*v, e)
2789
2790 case map[int16]interface{}:
2791 fastpathTV.EncMapInt16IntfV(v, e)
2792 case *map[int16]interface{}:
2793 fastpathTV.EncMapInt16IntfV(*v, e)
2794
2795 case map[int16]string:
2796 fastpathTV.EncMapInt16StringV(v, e)
2797 case *map[int16]string:
2798 fastpathTV.EncMapInt16StringV(*v, e)
2799
2800 case map[int16]uint:
2801 fastpathTV.EncMapInt16UintV(v, e)
2802 case *map[int16]uint:
2803 fastpathTV.EncMapInt16UintV(*v, e)
2804
2805 case map[int16]uint8:
2806 fastpathTV.EncMapInt16Uint8V(v, e)
2807 case *map[int16]uint8:
2808 fastpathTV.EncMapInt16Uint8V(*v, e)
2809
2810 case map[int16]uint16:
2811 fastpathTV.EncMapInt16Uint16V(v, e)
2812 case *map[int16]uint16:
2813 fastpathTV.EncMapInt16Uint16V(*v, e)
2814
2815 case map[int16]uint32:
2816 fastpathTV.EncMapInt16Uint32V(v, e)
2817 case *map[int16]uint32:
2818 fastpathTV.EncMapInt16Uint32V(*v, e)
2819
2820 case map[int16]uint64:
2821 fastpathTV.EncMapInt16Uint64V(v, e)
2822 case *map[int16]uint64:
2823 fastpathTV.EncMapInt16Uint64V(*v, e)
2824
2825 case map[int16]uintptr:
2826 fastpathTV.EncMapInt16UintptrV(v, e)
2827 case *map[int16]uintptr:
2828 fastpathTV.EncMapInt16UintptrV(*v, e)
2829
2830 case map[int16]int:
2831 fastpathTV.EncMapInt16IntV(v, e)
2832 case *map[int16]int:
2833 fastpathTV.EncMapInt16IntV(*v, e)
2834
2835 case map[int16]int8:
2836 fastpathTV.EncMapInt16Int8V(v, e)
2837 case *map[int16]int8:
2838 fastpathTV.EncMapInt16Int8V(*v, e)
2839
2840 case map[int16]int16:
2841 fastpathTV.EncMapInt16Int16V(v, e)
2842 case *map[int16]int16:
2843 fastpathTV.EncMapInt16Int16V(*v, e)
2844
2845 case map[int16]int32:
2846 fastpathTV.EncMapInt16Int32V(v, e)
2847 case *map[int16]int32:
2848 fastpathTV.EncMapInt16Int32V(*v, e)
2849
2850 case map[int16]int64:
2851 fastpathTV.EncMapInt16Int64V(v, e)
2852 case *map[int16]int64:
2853 fastpathTV.EncMapInt16Int64V(*v, e)
2854
2855 case map[int16]float32:
2856 fastpathTV.EncMapInt16Float32V(v, e)
2857 case *map[int16]float32:
2858 fastpathTV.EncMapInt16Float32V(*v, e)
2859
2860 case map[int16]float64:
2861 fastpathTV.EncMapInt16Float64V(v, e)
2862 case *map[int16]float64:
2863 fastpathTV.EncMapInt16Float64V(*v, e)
2864
2865 case map[int16]bool:
2866 fastpathTV.EncMapInt16BoolV(v, e)
2867 case *map[int16]bool:
2868 fastpathTV.EncMapInt16BoolV(*v, e)
2869
2870 case map[int32]interface{}:
2871 fastpathTV.EncMapInt32IntfV(v, e)
2872 case *map[int32]interface{}:
2873 fastpathTV.EncMapInt32IntfV(*v, e)
2874
2875 case map[int32]string:
2876 fastpathTV.EncMapInt32StringV(v, e)
2877 case *map[int32]string:
2878 fastpathTV.EncMapInt32StringV(*v, e)
2879
2880 case map[int32]uint:
2881 fastpathTV.EncMapInt32UintV(v, e)
2882 case *map[int32]uint:
2883 fastpathTV.EncMapInt32UintV(*v, e)
2884
2885 case map[int32]uint8:
2886 fastpathTV.EncMapInt32Uint8V(v, e)
2887 case *map[int32]uint8:
2888 fastpathTV.EncMapInt32Uint8V(*v, e)
2889
2890 case map[int32]uint16:
2891 fastpathTV.EncMapInt32Uint16V(v, e)
2892 case *map[int32]uint16:
2893 fastpathTV.EncMapInt32Uint16V(*v, e)
2894
2895 case map[int32]uint32:
2896 fastpathTV.EncMapInt32Uint32V(v, e)
2897 case *map[int32]uint32:
2898 fastpathTV.EncMapInt32Uint32V(*v, e)
2899
2900 case map[int32]uint64:
2901 fastpathTV.EncMapInt32Uint64V(v, e)
2902 case *map[int32]uint64:
2903 fastpathTV.EncMapInt32Uint64V(*v, e)
2904
2905 case map[int32]uintptr:
2906 fastpathTV.EncMapInt32UintptrV(v, e)
2907 case *map[int32]uintptr:
2908 fastpathTV.EncMapInt32UintptrV(*v, e)
2909
2910 case map[int32]int:
2911 fastpathTV.EncMapInt32IntV(v, e)
2912 case *map[int32]int:
2913 fastpathTV.EncMapInt32IntV(*v, e)
2914
2915 case map[int32]int8:
2916 fastpathTV.EncMapInt32Int8V(v, e)
2917 case *map[int32]int8:
2918 fastpathTV.EncMapInt32Int8V(*v, e)
2919
2920 case map[int32]int16:
2921 fastpathTV.EncMapInt32Int16V(v, e)
2922 case *map[int32]int16:
2923 fastpathTV.EncMapInt32Int16V(*v, e)
2924
2925 case map[int32]int32:
2926 fastpathTV.EncMapInt32Int32V(v, e)
2927 case *map[int32]int32:
2928 fastpathTV.EncMapInt32Int32V(*v, e)
2929
2930 case map[int32]int64:
2931 fastpathTV.EncMapInt32Int64V(v, e)
2932 case *map[int32]int64:
2933 fastpathTV.EncMapInt32Int64V(*v, e)
2934
2935 case map[int32]float32:
2936 fastpathTV.EncMapInt32Float32V(v, e)
2937 case *map[int32]float32:
2938 fastpathTV.EncMapInt32Float32V(*v, e)
2939
2940 case map[int32]float64:
2941 fastpathTV.EncMapInt32Float64V(v, e)
2942 case *map[int32]float64:
2943 fastpathTV.EncMapInt32Float64V(*v, e)
2944
2945 case map[int32]bool:
2946 fastpathTV.EncMapInt32BoolV(v, e)
2947 case *map[int32]bool:
2948 fastpathTV.EncMapInt32BoolV(*v, e)
2949
2950 case map[int64]interface{}:
2951 fastpathTV.EncMapInt64IntfV(v, e)
2952 case *map[int64]interface{}:
2953 fastpathTV.EncMapInt64IntfV(*v, e)
2954
2955 case map[int64]string:
2956 fastpathTV.EncMapInt64StringV(v, e)
2957 case *map[int64]string:
2958 fastpathTV.EncMapInt64StringV(*v, e)
2959
2960 case map[int64]uint:
2961 fastpathTV.EncMapInt64UintV(v, e)
2962 case *map[int64]uint:
2963 fastpathTV.EncMapInt64UintV(*v, e)
2964
2965 case map[int64]uint8:
2966 fastpathTV.EncMapInt64Uint8V(v, e)
2967 case *map[int64]uint8:
2968 fastpathTV.EncMapInt64Uint8V(*v, e)
2969
2970 case map[int64]uint16:
2971 fastpathTV.EncMapInt64Uint16V(v, e)
2972 case *map[int64]uint16:
2973 fastpathTV.EncMapInt64Uint16V(*v, e)
2974
2975 case map[int64]uint32:
2976 fastpathTV.EncMapInt64Uint32V(v, e)
2977 case *map[int64]uint32:
2978 fastpathTV.EncMapInt64Uint32V(*v, e)
2979
2980 case map[int64]uint64:
2981 fastpathTV.EncMapInt64Uint64V(v, e)
2982 case *map[int64]uint64:
2983 fastpathTV.EncMapInt64Uint64V(*v, e)
2984
2985 case map[int64]uintptr:
2986 fastpathTV.EncMapInt64UintptrV(v, e)
2987 case *map[int64]uintptr:
2988 fastpathTV.EncMapInt64UintptrV(*v, e)
2989
2990 case map[int64]int:
2991 fastpathTV.EncMapInt64IntV(v, e)
2992 case *map[int64]int:
2993 fastpathTV.EncMapInt64IntV(*v, e)
2994
2995 case map[int64]int8:
2996 fastpathTV.EncMapInt64Int8V(v, e)
2997 case *map[int64]int8:
2998 fastpathTV.EncMapInt64Int8V(*v, e)
2999
3000 case map[int64]int16:
3001 fastpathTV.EncMapInt64Int16V(v, e)
3002 case *map[int64]int16:
3003 fastpathTV.EncMapInt64Int16V(*v, e)
3004
3005 case map[int64]int32:
3006 fastpathTV.EncMapInt64Int32V(v, e)
3007 case *map[int64]int32:
3008 fastpathTV.EncMapInt64Int32V(*v, e)
3009
3010 case map[int64]int64:
3011 fastpathTV.EncMapInt64Int64V(v, e)
3012 case *map[int64]int64:
3013 fastpathTV.EncMapInt64Int64V(*v, e)
3014
3015 case map[int64]float32:
3016 fastpathTV.EncMapInt64Float32V(v, e)
3017 case *map[int64]float32:
3018 fastpathTV.EncMapInt64Float32V(*v, e)
3019
3020 case map[int64]float64:
3021 fastpathTV.EncMapInt64Float64V(v, e)
3022 case *map[int64]float64:
3023 fastpathTV.EncMapInt64Float64V(*v, e)
3024
3025 case map[int64]bool:
3026 fastpathTV.EncMapInt64BoolV(v, e)
3027 case *map[int64]bool:
3028 fastpathTV.EncMapInt64BoolV(*v, e)
3029
3030 case map[bool]interface{}:
3031 fastpathTV.EncMapBoolIntfV(v, e)
3032 case *map[bool]interface{}:
3033 fastpathTV.EncMapBoolIntfV(*v, e)
3034
3035 case map[bool]string:
3036 fastpathTV.EncMapBoolStringV(v, e)
3037 case *map[bool]string:
3038 fastpathTV.EncMapBoolStringV(*v, e)
3039
3040 case map[bool]uint:
3041 fastpathTV.EncMapBoolUintV(v, e)
3042 case *map[bool]uint:
3043 fastpathTV.EncMapBoolUintV(*v, e)
3044
3045 case map[bool]uint8:
3046 fastpathTV.EncMapBoolUint8V(v, e)
3047 case *map[bool]uint8:
3048 fastpathTV.EncMapBoolUint8V(*v, e)
3049
3050 case map[bool]uint16:
3051 fastpathTV.EncMapBoolUint16V(v, e)
3052 case *map[bool]uint16:
3053 fastpathTV.EncMapBoolUint16V(*v, e)
3054
3055 case map[bool]uint32:
3056 fastpathTV.EncMapBoolUint32V(v, e)
3057 case *map[bool]uint32:
3058 fastpathTV.EncMapBoolUint32V(*v, e)
3059
3060 case map[bool]uint64:
3061 fastpathTV.EncMapBoolUint64V(v, e)
3062 case *map[bool]uint64:
3063 fastpathTV.EncMapBoolUint64V(*v, e)
3064
3065 case map[bool]uintptr:
3066 fastpathTV.EncMapBoolUintptrV(v, e)
3067 case *map[bool]uintptr:
3068 fastpathTV.EncMapBoolUintptrV(*v, e)
3069
3070 case map[bool]int:
3071 fastpathTV.EncMapBoolIntV(v, e)
3072 case *map[bool]int:
3073 fastpathTV.EncMapBoolIntV(*v, e)
3074
3075 case map[bool]int8:
3076 fastpathTV.EncMapBoolInt8V(v, e)
3077 case *map[bool]int8:
3078 fastpathTV.EncMapBoolInt8V(*v, e)
3079
3080 case map[bool]int16:
3081 fastpathTV.EncMapBoolInt16V(v, e)
3082 case *map[bool]int16:
3083 fastpathTV.EncMapBoolInt16V(*v, e)
3084
3085 case map[bool]int32:
3086 fastpathTV.EncMapBoolInt32V(v, e)
3087 case *map[bool]int32:
3088 fastpathTV.EncMapBoolInt32V(*v, e)
3089
3090 case map[bool]int64:
3091 fastpathTV.EncMapBoolInt64V(v, e)
3092 case *map[bool]int64:
3093 fastpathTV.EncMapBoolInt64V(*v, e)
3094
3095 case map[bool]float32:
3096 fastpathTV.EncMapBoolFloat32V(v, e)
3097 case *map[bool]float32:
3098 fastpathTV.EncMapBoolFloat32V(*v, e)
3099
3100 case map[bool]float64:
3101 fastpathTV.EncMapBoolFloat64V(v, e)
3102 case *map[bool]float64:
3103 fastpathTV.EncMapBoolFloat64V(*v, e)
3104
3105 case map[bool]bool:
3106 fastpathTV.EncMapBoolBoolV(v, e)
3107 case *map[bool]bool:
3108 fastpathTV.EncMapBoolBoolV(*v, e)
3109
3110 default:
3111 _ = v // TODO: workaround https://github.com/golang/go/issues/12927 (remove after go 1.6 release)
3112 return false
3113 }
3114 return true
3115 }
3116
3117 // -- -- fast path functions
3118
3119 func (e *Encoder) fastpathEncSliceIntfR(f *codecFnInfo, rv reflect.Value) {
3120 if f.ti.mbs {
3121 fastpathTV.EncAsMapSliceIntfV(rv2i(rv).([]interface{}), e)
3122 } else {
3123 fastpathTV.EncSliceIntfV(rv2i(rv).([]interface{}), e)
3124 }
3125 }
3126 func (_ fastpathT) EncSliceIntfV(v []interface{}, e *Encoder) {
3127 ee, esep := e.e, e.hh.hasElemSeparators()
3128 ee.WriteArrayStart(len(v))
3129 for _, v2 := range v {
3130 if esep {
3131 ee.WriteArrayElem()
3132 }
3133 e.encode(v2)
3134 }
3135 ee.WriteArrayEnd()
3136 }
3137
3138 func (_ fastpathT) EncAsMapSliceIntfV(v []interface{}, e *Encoder) {
3139 ee, esep := e.e, e.hh.hasElemSeparators()
3140 if len(v)%2 == 1 {
3141 e.errorf("mapBySlice requires even slice length, but got %v", len(v))
3142 return
3143 }
3144 ee.WriteMapStart(len(v) / 2)
3145 for j, v2 := range v {
3146 if esep {
3147 if j%2 == 0 {
3148 ee.WriteMapElemKey()
3149 } else {
3150 ee.WriteMapElemValue()
3151 }
3152 }
3153 e.encode(v2)
3154 }
3155 ee.WriteMapEnd()
3156 }
3157
3158 func (e *Encoder) fastpathEncSliceStringR(f *codecFnInfo, rv reflect.Value) {
3159 if f.ti.mbs {
3160 fastpathTV.EncAsMapSliceStringV(rv2i(rv).([]string), e)
3161 } else {
3162 fastpathTV.EncSliceStringV(rv2i(rv).([]string), e)
3163 }
3164 }
3165 func (_ fastpathT) EncSliceStringV(v []string, e *Encoder) {
3166 ee, esep := e.e, e.hh.hasElemSeparators()
3167 ee.WriteArrayStart(len(v))
3168 for _, v2 := range v {
3169 if esep {
3170 ee.WriteArrayElem()
3171 }
3172 ee.EncodeString(c_UTF8, v2)
3173 }
3174 ee.WriteArrayEnd()
3175 }
3176
3177 func (_ fastpathT) EncAsMapSliceStringV(v []string, e *Encoder) {
3178 ee, esep := e.e, e.hh.hasElemSeparators()
3179 if len(v)%2 == 1 {
3180 e.errorf("mapBySlice requires even slice length, but got %v", len(v))
3181 return
3182 }
3183 ee.WriteMapStart(len(v) / 2)
3184 for j, v2 := range v {
3185 if esep {
3186 if j%2 == 0 {
3187 ee.WriteMapElemKey()
3188 } else {
3189 ee.WriteMapElemValue()
3190 }
3191 }
3192 ee.EncodeString(c_UTF8, v2)
3193 }
3194 ee.WriteMapEnd()
3195 }
3196
3197 func (e *Encoder) fastpathEncSliceFloat32R(f *codecFnInfo, rv reflect.Value) {
3198 if f.ti.mbs {
3199 fastpathTV.EncAsMapSliceFloat32V(rv2i(rv).([]float32), e)
3200 } else {
3201 fastpathTV.EncSliceFloat32V(rv2i(rv).([]float32), e)
3202 }
3203 }
3204 func (_ fastpathT) EncSliceFloat32V(v []float32, e *Encoder) {
3205 ee, esep := e.e, e.hh.hasElemSeparators()
3206 ee.WriteArrayStart(len(v))
3207 for _, v2 := range v {
3208 if esep {
3209 ee.WriteArrayElem()
3210 }
3211 ee.EncodeFloat32(v2)
3212 }
3213 ee.WriteArrayEnd()
3214 }
3215
3216 func (_ fastpathT) EncAsMapSliceFloat32V(v []float32, e *Encoder) {
3217 ee, esep := e.e, e.hh.hasElemSeparators()
3218 if len(v)%2 == 1 {
3219 e.errorf("mapBySlice requires even slice length, but got %v", len(v))
3220 return
3221 }
3222 ee.WriteMapStart(len(v) / 2)
3223 for j, v2 := range v {
3224 if esep {
3225 if j%2 == 0 {
3226 ee.WriteMapElemKey()
3227 } else {
3228 ee.WriteMapElemValue()
3229 }
3230 }
3231 ee.EncodeFloat32(v2)
3232 }
3233 ee.WriteMapEnd()
3234 }
3235
3236 func (e *Encoder) fastpathEncSliceFloat64R(f *codecFnInfo, rv reflect.Value) {
3237 if f.ti.mbs {
3238 fastpathTV.EncAsMapSliceFloat64V(rv2i(rv).([]float64), e)
3239 } else {
3240 fastpathTV.EncSliceFloat64V(rv2i(rv).([]float64), e)
3241 }
3242 }
3243 func (_ fastpathT) EncSliceFloat64V(v []float64, e *Encoder) {
3244 ee, esep := e.e, e.hh.hasElemSeparators()
3245 ee.WriteArrayStart(len(v))
3246 for _, v2 := range v {
3247 if esep {
3248 ee.WriteArrayElem()
3249 }
3250 ee.EncodeFloat64(v2)
3251 }
3252 ee.WriteArrayEnd()
3253 }
3254
3255 func (_ fastpathT) EncAsMapSliceFloat64V(v []float64, e *Encoder) {
3256 ee, esep := e.e, e.hh.hasElemSeparators()
3257 if len(v)%2 == 1 {
3258 e.errorf("mapBySlice requires even slice length, but got %v", len(v))
3259 return
3260 }
3261 ee.WriteMapStart(len(v) / 2)
3262 for j, v2 := range v {
3263 if esep {
3264 if j%2 == 0 {
3265 ee.WriteMapElemKey()
3266 } else {
3267 ee.WriteMapElemValue()
3268 }
3269 }
3270 ee.EncodeFloat64(v2)
3271 }
3272 ee.WriteMapEnd()
3273 }
3274
3275 func (e *Encoder) fastpathEncSliceUintR(f *codecFnInfo, rv reflect.Value) {
3276 if f.ti.mbs {
3277 fastpathTV.EncAsMapSliceUintV(rv2i(rv).([]uint), e)
3278 } else {
3279 fastpathTV.EncSliceUintV(rv2i(rv).([]uint), e)
3280 }
3281 }
3282 func (_ fastpathT) EncSliceUintV(v []uint, e *Encoder) {
3283 ee, esep := e.e, e.hh.hasElemSeparators()
3284 ee.WriteArrayStart(len(v))
3285 for _, v2 := range v {
3286 if esep {
3287 ee.WriteArrayElem()
3288 }
3289 ee.EncodeUint(uint64(v2))
3290 }
3291 ee.WriteArrayEnd()
3292 }
3293
3294 func (_ fastpathT) EncAsMapSliceUintV(v []uint, e *Encoder) {
3295 ee, esep := e.e, e.hh.hasElemSeparators()
3296 if len(v)%2 == 1 {
3297 e.errorf("mapBySlice requires even slice length, but got %v", len(v))
3298 return
3299 }
3300 ee.WriteMapStart(len(v) / 2)
3301 for j, v2 := range v {
3302 if esep {
3303 if j%2 == 0 {
3304 ee.WriteMapElemKey()
3305 } else {
3306 ee.WriteMapElemValue()
3307 }
3308 }
3309 ee.EncodeUint(uint64(v2))
3310 }
3311 ee.WriteMapEnd()
3312 }
3313
3314 func (e *Encoder) fastpathEncSliceUint16R(f *codecFnInfo, rv reflect.Value) {
3315 if f.ti.mbs {
3316 fastpathTV.EncAsMapSliceUint16V(rv2i(rv).([]uint16), e)
3317 } else {
3318 fastpathTV.EncSliceUint16V(rv2i(rv).([]uint16), e)
3319 }
3320 }
3321 func (_ fastpathT) EncSliceUint16V(v []uint16, e *Encoder) {
3322 ee, esep := e.e, e.hh.hasElemSeparators()
3323 ee.WriteArrayStart(len(v))
3324 for _, v2 := range v {
3325 if esep {
3326 ee.WriteArrayElem()
3327 }
3328 ee.EncodeUint(uint64(v2))
3329 }
3330 ee.WriteArrayEnd()
3331 }
3332
3333 func (_ fastpathT) EncAsMapSliceUint16V(v []uint16, e *Encoder) {
3334 ee, esep := e.e, e.hh.hasElemSeparators()
3335 if len(v)%2 == 1 {
3336 e.errorf("mapBySlice requires even slice length, but got %v", len(v))
3337 return
3338 }
3339 ee.WriteMapStart(len(v) / 2)
3340 for j, v2 := range v {
3341 if esep {
3342 if j%2 == 0 {
3343 ee.WriteMapElemKey()
3344 } else {
3345 ee.WriteMapElemValue()
3346 }
3347 }
3348 ee.EncodeUint(uint64(v2))
3349 }
3350 ee.WriteMapEnd()
3351 }
3352
3353 func (e *Encoder) fastpathEncSliceUint32R(f *codecFnInfo, rv reflect.Value) {
3354 if f.ti.mbs {
3355 fastpathTV.EncAsMapSliceUint32V(rv2i(rv).([]uint32), e)
3356 } else {
3357 fastpathTV.EncSliceUint32V(rv2i(rv).([]uint32), e)
3358 }
3359 }
3360 func (_ fastpathT) EncSliceUint32V(v []uint32, e *Encoder) {
3361 ee, esep := e.e, e.hh.hasElemSeparators()
3362 ee.WriteArrayStart(len(v))
3363 for _, v2 := range v {
3364 if esep {
3365 ee.WriteArrayElem()
3366 }
3367 ee.EncodeUint(uint64(v2))
3368 }
3369 ee.WriteArrayEnd()
3370 }
3371
3372 func (_ fastpathT) EncAsMapSliceUint32V(v []uint32, e *Encoder) {
3373 ee, esep := e.e, e.hh.hasElemSeparators()
3374 if len(v)%2 == 1 {
3375 e.errorf("mapBySlice requires even slice length, but got %v", len(v))
3376 return
3377 }
3378 ee.WriteMapStart(len(v) / 2)
3379 for j, v2 := range v {
3380 if esep {
3381 if j%2 == 0 {
3382 ee.WriteMapElemKey()
3383 } else {
3384 ee.WriteMapElemValue()
3385 }
3386 }
3387 ee.EncodeUint(uint64(v2))
3388 }
3389 ee.WriteMapEnd()
3390 }
3391
3392 func (e *Encoder) fastpathEncSliceUint64R(f *codecFnInfo, rv reflect.Value) {
3393 if f.ti.mbs {
3394 fastpathTV.EncAsMapSliceUint64V(rv2i(rv).([]uint64), e)
3395 } else {
3396 fastpathTV.EncSliceUint64V(rv2i(rv).([]uint64), e)
3397 }
3398 }
3399 func (_ fastpathT) EncSliceUint64V(v []uint64, e *Encoder) {
3400 ee, esep := e.e, e.hh.hasElemSeparators()
3401 ee.WriteArrayStart(len(v))
3402 for _, v2 := range v {
3403 if esep {
3404 ee.WriteArrayElem()
3405 }
3406 ee.EncodeUint(uint64(v2))
3407 }
3408 ee.WriteArrayEnd()
3409 }
3410
3411 func (_ fastpathT) EncAsMapSliceUint64V(v []uint64, e *Encoder) {
3412 ee, esep := e.e, e.hh.hasElemSeparators()
3413 if len(v)%2 == 1 {
3414 e.errorf("mapBySlice requires even slice length, but got %v", len(v))
3415 return
3416 }
3417 ee.WriteMapStart(len(v) / 2)
3418 for j, v2 := range v {
3419 if esep {
3420 if j%2 == 0 {
3421 ee.WriteMapElemKey()
3422 } else {
3423 ee.WriteMapElemValue()
3424 }
3425 }
3426 ee.EncodeUint(uint64(v2))
3427 }
3428 ee.WriteMapEnd()
3429 }
3430
3431 func (e *Encoder) fastpathEncSliceUintptrR(f *codecFnInfo, rv reflect.Value) {
3432 if f.ti.mbs {
3433 fastpathTV.EncAsMapSliceUintptrV(rv2i(rv).([]uintptr), e)
3434 } else {
3435 fastpathTV.EncSliceUintptrV(rv2i(rv).([]uintptr), e)
3436 }
3437 }
3438 func (_ fastpathT) EncSliceUintptrV(v []uintptr, e *Encoder) {
3439 ee, esep := e.e, e.hh.hasElemSeparators()
3440 ee.WriteArrayStart(len(v))
3441 for _, v2 := range v {
3442 if esep {
3443 ee.WriteArrayElem()
3444 }
3445 e.encode(v2)
3446 }
3447 ee.WriteArrayEnd()
3448 }
3449
3450 func (_ fastpathT) EncAsMapSliceUintptrV(v []uintptr, e *Encoder) {
3451 ee, esep := e.e, e.hh.hasElemSeparators()
3452 if len(v)%2 == 1 {
3453 e.errorf("mapBySlice requires even slice length, but got %v", len(v))
3454 return
3455 }
3456 ee.WriteMapStart(len(v) / 2)
3457 for j, v2 := range v {
3458 if esep {
3459 if j%2 == 0 {
3460 ee.WriteMapElemKey()
3461 } else {
3462 ee.WriteMapElemValue()
3463 }
3464 }
3465 e.encode(v2)
3466 }
3467 ee.WriteMapEnd()
3468 }
3469
3470 func (e *Encoder) fastpathEncSliceIntR(f *codecFnInfo, rv reflect.Value) {
3471 if f.ti.mbs {
3472 fastpathTV.EncAsMapSliceIntV(rv2i(rv).([]int), e)
3473 } else {
3474 fastpathTV.EncSliceIntV(rv2i(rv).([]int), e)
3475 }
3476 }
3477 func (_ fastpathT) EncSliceIntV(v []int, e *Encoder) {
3478 ee, esep := e.e, e.hh.hasElemSeparators()
3479 ee.WriteArrayStart(len(v))
3480 for _, v2 := range v {
3481 if esep {
3482 ee.WriteArrayElem()
3483 }
3484 ee.EncodeInt(int64(v2))
3485 }
3486 ee.WriteArrayEnd()
3487 }
3488
3489 func (_ fastpathT) EncAsMapSliceIntV(v []int, e *Encoder) {
3490 ee, esep := e.e, e.hh.hasElemSeparators()
3491 if len(v)%2 == 1 {
3492 e.errorf("mapBySlice requires even slice length, but got %v", len(v))
3493 return
3494 }
3495 ee.WriteMapStart(len(v) / 2)
3496 for j, v2 := range v {
3497 if esep {
3498 if j%2 == 0 {
3499 ee.WriteMapElemKey()
3500 } else {
3501 ee.WriteMapElemValue()
3502 }
3503 }
3504 ee.EncodeInt(int64(v2))
3505 }
3506 ee.WriteMapEnd()
3507 }
3508
3509 func (e *Encoder) fastpathEncSliceInt8R(f *codecFnInfo, rv reflect.Value) {
3510 if f.ti.mbs {
3511 fastpathTV.EncAsMapSliceInt8V(rv2i(rv).([]int8), e)
3512 } else {
3513 fastpathTV.EncSliceInt8V(rv2i(rv).([]int8), e)
3514 }
3515 }
3516 func (_ fastpathT) EncSliceInt8V(v []int8, e *Encoder) {
3517 ee, esep := e.e, e.hh.hasElemSeparators()
3518 ee.WriteArrayStart(len(v))
3519 for _, v2 := range v {
3520 if esep {
3521 ee.WriteArrayElem()
3522 }
3523 ee.EncodeInt(int64(v2))
3524 }
3525 ee.WriteArrayEnd()
3526 }
3527
3528 func (_ fastpathT) EncAsMapSliceInt8V(v []int8, e *Encoder) {
3529 ee, esep := e.e, e.hh.hasElemSeparators()
3530 if len(v)%2 == 1 {
3531 e.errorf("mapBySlice requires even slice length, but got %v", len(v))
3532 return
3533 }
3534 ee.WriteMapStart(len(v) / 2)
3535 for j, v2 := range v {
3536 if esep {
3537 if j%2 == 0 {
3538 ee.WriteMapElemKey()
3539 } else {
3540 ee.WriteMapElemValue()
3541 }
3542 }
3543 ee.EncodeInt(int64(v2))
3544 }
3545 ee.WriteMapEnd()
3546 }
3547
3548 func (e *Encoder) fastpathEncSliceInt16R(f *codecFnInfo, rv reflect.Value) {
3549 if f.ti.mbs {
3550 fastpathTV.EncAsMapSliceInt16V(rv2i(rv).([]int16), e)
3551 } else {
3552 fastpathTV.EncSliceInt16V(rv2i(rv).([]int16), e)
3553 }
3554 }
3555 func (_ fastpathT) EncSliceInt16V(v []int16, e *Encoder) {
3556 ee, esep := e.e, e.hh.hasElemSeparators()
3557 ee.WriteArrayStart(len(v))
3558 for _, v2 := range v {
3559 if esep {
3560 ee.WriteArrayElem()
3561 }
3562 ee.EncodeInt(int64(v2))
3563 }
3564 ee.WriteArrayEnd()
3565 }
3566
3567 func (_ fastpathT) EncAsMapSliceInt16V(v []int16, e *Encoder) {
3568 ee, esep := e.e, e.hh.hasElemSeparators()
3569 if len(v)%2 == 1 {
3570 e.errorf("mapBySlice requires even slice length, but got %v", len(v))
3571 return
3572 }
3573 ee.WriteMapStart(len(v) / 2)
3574 for j, v2 := range v {
3575 if esep {
3576 if j%2 == 0 {
3577 ee.WriteMapElemKey()
3578 } else {
3579 ee.WriteMapElemValue()
3580 }
3581 }
3582 ee.EncodeInt(int64(v2))
3583 }
3584 ee.WriteMapEnd()
3585 }
3586
3587 func (e *Encoder) fastpathEncSliceInt32R(f *codecFnInfo, rv reflect.Value) {
3588 if f.ti.mbs {
3589 fastpathTV.EncAsMapSliceInt32V(rv2i(rv).([]int32), e)
3590 } else {
3591 fastpathTV.EncSliceInt32V(rv2i(rv).([]int32), e)
3592 }
3593 }
3594 func (_ fastpathT) EncSliceInt32V(v []int32, e *Encoder) {
3595 ee, esep := e.e, e.hh.hasElemSeparators()
3596 ee.WriteArrayStart(len(v))
3597 for _, v2 := range v {
3598 if esep {
3599 ee.WriteArrayElem()
3600 }
3601 ee.EncodeInt(int64(v2))
3602 }
3603 ee.WriteArrayEnd()
3604 }
3605
3606 func (_ fastpathT) EncAsMapSliceInt32V(v []int32, e *Encoder) {
3607 ee, esep := e.e, e.hh.hasElemSeparators()
3608 if len(v)%2 == 1 {
3609 e.errorf("mapBySlice requires even slice length, but got %v", len(v))
3610 return
3611 }
3612 ee.WriteMapStart(len(v) / 2)
3613 for j, v2 := range v {
3614 if esep {
3615 if j%2 == 0 {
3616 ee.WriteMapElemKey()
3617 } else {
3618 ee.WriteMapElemValue()
3619 }
3620 }
3621 ee.EncodeInt(int64(v2))
3622 }
3623 ee.WriteMapEnd()
3624 }
3625
3626 func (e *Encoder) fastpathEncSliceInt64R(f *codecFnInfo, rv reflect.Value) {
3627 if f.ti.mbs {
3628 fastpathTV.EncAsMapSliceInt64V(rv2i(rv).([]int64), e)
3629 } else {
3630 fastpathTV.EncSliceInt64V(rv2i(rv).([]int64), e)
3631 }
3632 }
3633 func (_ fastpathT) EncSliceInt64V(v []int64, e *Encoder) {
3634 ee, esep := e.e, e.hh.hasElemSeparators()
3635 ee.WriteArrayStart(len(v))
3636 for _, v2 := range v {
3637 if esep {
3638 ee.WriteArrayElem()
3639 }
3640 ee.EncodeInt(int64(v2))
3641 }
3642 ee.WriteArrayEnd()
3643 }
3644
3645 func (_ fastpathT) EncAsMapSliceInt64V(v []int64, e *Encoder) {
3646 ee, esep := e.e, e.hh.hasElemSeparators()
3647 if len(v)%2 == 1 {
3648 e.errorf("mapBySlice requires even slice length, but got %v", len(v))
3649 return
3650 }
3651 ee.WriteMapStart(len(v) / 2)
3652 for j, v2 := range v {
3653 if esep {
3654 if j%2 == 0 {
3655 ee.WriteMapElemKey()
3656 } else {
3657 ee.WriteMapElemValue()
3658 }
3659 }
3660 ee.EncodeInt(int64(v2))
3661 }
3662 ee.WriteMapEnd()
3663 }
3664
3665 func (e *Encoder) fastpathEncSliceBoolR(f *codecFnInfo, rv reflect.Value) {
3666 if f.ti.mbs {
3667 fastpathTV.EncAsMapSliceBoolV(rv2i(rv).([]bool), e)
3668 } else {
3669 fastpathTV.EncSliceBoolV(rv2i(rv).([]bool), e)
3670 }
3671 }
3672 func (_ fastpathT) EncSliceBoolV(v []bool, e *Encoder) {
3673 ee, esep := e.e, e.hh.hasElemSeparators()
3674 ee.WriteArrayStart(len(v))
3675 for _, v2 := range v {
3676 if esep {
3677 ee.WriteArrayElem()
3678 }
3679 ee.EncodeBool(v2)
3680 }
3681 ee.WriteArrayEnd()
3682 }
3683
3684 func (_ fastpathT) EncAsMapSliceBoolV(v []bool, e *Encoder) {
3685 ee, esep := e.e, e.hh.hasElemSeparators()
3686 if len(v)%2 == 1 {
3687 e.errorf("mapBySlice requires even slice length, but got %v", len(v))
3688 return
3689 }
3690 ee.WriteMapStart(len(v) / 2)
3691 for j, v2 := range v {
3692 if esep {
3693 if j%2 == 0 {
3694 ee.WriteMapElemKey()
3695 } else {
3696 ee.WriteMapElemValue()
3697 }
3698 }
3699 ee.EncodeBool(v2)
3700 }
3701 ee.WriteMapEnd()
3702 }
3703
3704 func (e *Encoder) fastpathEncMapIntfIntfR(f *codecFnInfo, rv reflect.Value) {
3705 fastpathTV.EncMapIntfIntfV(rv2i(rv).(map[interface{}]interface{}), e)
3706 }
3707 func (_ fastpathT) EncMapIntfIntfV(v map[interface{}]interface{}, e *Encoder) {
3708 ee, esep := e.e, e.hh.hasElemSeparators()
3709 ee.WriteMapStart(len(v))
3710 if e.h.Canonical {
3711 var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
3712 e2 := NewEncoderBytes(&mksv, e.hh)
3713 v2 := make([]bytesI, len(v))
3714 var i, l int
3715 var vp *bytesI
3716 for k2, _ := range v {
3717 l = len(mksv)
3718 e2.MustEncode(k2)
3719 vp = &v2[i]
3720 vp.v = mksv[l:]
3721 vp.i = k2
3722 i++
3723 }
3724 sort.Sort(bytesISlice(v2))
3725 for j := range v2 {
3726 if esep {
3727 ee.WriteMapElemKey()
3728 }
3729 e.asis(v2[j].v)
3730 if esep {
3731 ee.WriteMapElemValue()
3732 }
3733 e.encode(v[v2[j].i])
3734 }
3735 } else {
3736 for k2, v2 := range v {
3737 if esep {
3738 ee.WriteMapElemKey()
3739 }
3740 e.encode(k2)
3741 if esep {
3742 ee.WriteMapElemValue()
3743 }
3744 e.encode(v2)
3745 }
3746 }
3747 ee.WriteMapEnd()
3748 }
3749
3750 func (e *Encoder) fastpathEncMapIntfStringR(f *codecFnInfo, rv reflect.Value) {
3751 fastpathTV.EncMapIntfStringV(rv2i(rv).(map[interface{}]string), e)
3752 }
3753 func (_ fastpathT) EncMapIntfStringV(v map[interface{}]string, e *Encoder) {
3754 ee, esep := e.e, e.hh.hasElemSeparators()
3755 ee.WriteMapStart(len(v))
3756 if e.h.Canonical {
3757 var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
3758 e2 := NewEncoderBytes(&mksv, e.hh)
3759 v2 := make([]bytesI, len(v))
3760 var i, l int
3761 var vp *bytesI
3762 for k2, _ := range v {
3763 l = len(mksv)
3764 e2.MustEncode(k2)
3765 vp = &v2[i]
3766 vp.v = mksv[l:]
3767 vp.i = k2
3768 i++
3769 }
3770 sort.Sort(bytesISlice(v2))
3771 for j := range v2 {
3772 if esep {
3773 ee.WriteMapElemKey()
3774 }
3775 e.asis(v2[j].v)
3776 if esep {
3777 ee.WriteMapElemValue()
3778 }
3779 e.encode(v[v2[j].i])
3780 }
3781 } else {
3782 for k2, v2 := range v {
3783 if esep {
3784 ee.WriteMapElemKey()
3785 }
3786 e.encode(k2)
3787 if esep {
3788 ee.WriteMapElemValue()
3789 }
3790 ee.EncodeString(c_UTF8, v2)
3791 }
3792 }
3793 ee.WriteMapEnd()
3794 }
3795
3796 func (e *Encoder) fastpathEncMapIntfUintR(f *codecFnInfo, rv reflect.Value) {
3797 fastpathTV.EncMapIntfUintV(rv2i(rv).(map[interface{}]uint), e)
3798 }
3799 func (_ fastpathT) EncMapIntfUintV(v map[interface{}]uint, e *Encoder) {
3800 ee, esep := e.e, e.hh.hasElemSeparators()
3801 ee.WriteMapStart(len(v))
3802 if e.h.Canonical {
3803 var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
3804 e2 := NewEncoderBytes(&mksv, e.hh)
3805 v2 := make([]bytesI, len(v))
3806 var i, l int
3807 var vp *bytesI
3808 for k2, _ := range v {
3809 l = len(mksv)
3810 e2.MustEncode(k2)
3811 vp = &v2[i]
3812 vp.v = mksv[l:]
3813 vp.i = k2
3814 i++
3815 }
3816 sort.Sort(bytesISlice(v2))
3817 for j := range v2 {
3818 if esep {
3819 ee.WriteMapElemKey()
3820 }
3821 e.asis(v2[j].v)
3822 if esep {
3823 ee.WriteMapElemValue()
3824 }
3825 e.encode(v[v2[j].i])
3826 }
3827 } else {
3828 for k2, v2 := range v {
3829 if esep {
3830 ee.WriteMapElemKey()
3831 }
3832 e.encode(k2)
3833 if esep {
3834 ee.WriteMapElemValue()
3835 }
3836 ee.EncodeUint(uint64(v2))
3837 }
3838 }
3839 ee.WriteMapEnd()
3840 }
3841
3842 func (e *Encoder) fastpathEncMapIntfUint8R(f *codecFnInfo, rv reflect.Value) {
3843 fastpathTV.EncMapIntfUint8V(rv2i(rv).(map[interface{}]uint8), e)
3844 }
3845 func (_ fastpathT) EncMapIntfUint8V(v map[interface{}]uint8, e *Encoder) {
3846 ee, esep := e.e, e.hh.hasElemSeparators()
3847 ee.WriteMapStart(len(v))
3848 if e.h.Canonical {
3849 var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
3850 e2 := NewEncoderBytes(&mksv, e.hh)
3851 v2 := make([]bytesI, len(v))
3852 var i, l int
3853 var vp *bytesI
3854 for k2, _ := range v {
3855 l = len(mksv)
3856 e2.MustEncode(k2)
3857 vp = &v2[i]
3858 vp.v = mksv[l:]
3859 vp.i = k2
3860 i++
3861 }
3862 sort.Sort(bytesISlice(v2))
3863 for j := range v2 {
3864 if esep {
3865 ee.WriteMapElemKey()
3866 }
3867 e.asis(v2[j].v)
3868 if esep {
3869 ee.WriteMapElemValue()
3870 }
3871 e.encode(v[v2[j].i])
3872 }
3873 } else {
3874 for k2, v2 := range v {
3875 if esep {
3876 ee.WriteMapElemKey()
3877 }
3878 e.encode(k2)
3879 if esep {
3880 ee.WriteMapElemValue()
3881 }
3882 ee.EncodeUint(uint64(v2))
3883 }
3884 }
3885 ee.WriteMapEnd()
3886 }
3887
3888 func (e *Encoder) fastpathEncMapIntfUint16R(f *codecFnInfo, rv reflect.Value) {
3889 fastpathTV.EncMapIntfUint16V(rv2i(rv).(map[interface{}]uint16), e)
3890 }
3891 func (_ fastpathT) EncMapIntfUint16V(v map[interface{}]uint16, e *Encoder) {
3892 ee, esep := e.e, e.hh.hasElemSeparators()
3893 ee.WriteMapStart(len(v))
3894 if e.h.Canonical {
3895 var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
3896 e2 := NewEncoderBytes(&mksv, e.hh)
3897 v2 := make([]bytesI, len(v))
3898 var i, l int
3899 var vp *bytesI
3900 for k2, _ := range v {
3901 l = len(mksv)
3902 e2.MustEncode(k2)
3903 vp = &v2[i]
3904 vp.v = mksv[l:]
3905 vp.i = k2
3906 i++
3907 }
3908 sort.Sort(bytesISlice(v2))
3909 for j := range v2 {
3910 if esep {
3911 ee.WriteMapElemKey()
3912 }
3913 e.asis(v2[j].v)
3914 if esep {
3915 ee.WriteMapElemValue()
3916 }
3917 e.encode(v[v2[j].i])
3918 }
3919 } else {
3920 for k2, v2 := range v {
3921 if esep {
3922 ee.WriteMapElemKey()
3923 }
3924 e.encode(k2)
3925 if esep {
3926 ee.WriteMapElemValue()
3927 }
3928 ee.EncodeUint(uint64(v2))
3929 }
3930 }
3931 ee.WriteMapEnd()
3932 }
3933
3934 func (e *Encoder) fastpathEncMapIntfUint32R(f *codecFnInfo, rv reflect.Value) {
3935 fastpathTV.EncMapIntfUint32V(rv2i(rv).(map[interface{}]uint32), e)
3936 }
3937 func (_ fastpathT) EncMapIntfUint32V(v map[interface{}]uint32, e *Encoder) {
3938 ee, esep := e.e, e.hh.hasElemSeparators()
3939 ee.WriteMapStart(len(v))
3940 if e.h.Canonical {
3941 var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
3942 e2 := NewEncoderBytes(&mksv, e.hh)
3943 v2 := make([]bytesI, len(v))
3944 var i, l int
3945 var vp *bytesI
3946 for k2, _ := range v {
3947 l = len(mksv)
3948 e2.MustEncode(k2)
3949 vp = &v2[i]
3950 vp.v = mksv[l:]
3951 vp.i = k2
3952 i++
3953 }
3954 sort.Sort(bytesISlice(v2))
3955 for j := range v2 {
3956 if esep {
3957 ee.WriteMapElemKey()
3958 }
3959 e.asis(v2[j].v)
3960 if esep {
3961 ee.WriteMapElemValue()
3962 }
3963 e.encode(v[v2[j].i])
3964 }
3965 } else {
3966 for k2, v2 := range v {
3967 if esep {
3968 ee.WriteMapElemKey()
3969 }
3970 e.encode(k2)
3971 if esep {
3972 ee.WriteMapElemValue()
3973 }
3974 ee.EncodeUint(uint64(v2))
3975 }
3976 }
3977 ee.WriteMapEnd()
3978 }
3979
3980 func (e *Encoder) fastpathEncMapIntfUint64R(f *codecFnInfo, rv reflect.Value) {
3981 fastpathTV.EncMapIntfUint64V(rv2i(rv).(map[interface{}]uint64), e)
3982 }
3983 func (_ fastpathT) EncMapIntfUint64V(v map[interface{}]uint64, e *Encoder) {
3984 ee, esep := e.e, e.hh.hasElemSeparators()
3985 ee.WriteMapStart(len(v))
3986 if e.h.Canonical {
3987 var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
3988 e2 := NewEncoderBytes(&mksv, e.hh)
3989 v2 := make([]bytesI, len(v))
3990 var i, l int
3991 var vp *bytesI
3992 for k2, _ := range v {
3993 l = len(mksv)
3994 e2.MustEncode(k2)
3995 vp = &v2[i]
3996 vp.v = mksv[l:]
3997 vp.i = k2
3998 i++
3999 }
4000 sort.Sort(bytesISlice(v2))
4001 for j := range v2 {
4002 if esep {
4003 ee.WriteMapElemKey()
4004 }
4005 e.asis(v2[j].v)
4006 if esep {
4007 ee.WriteMapElemValue()
4008 }
4009 e.encode(v[v2[j].i])
4010 }
4011 } else {
4012 for k2, v2 := range v {
4013 if esep {
4014 ee.WriteMapElemKey()
4015 }
4016 e.encode(k2)
4017 if esep {
4018 ee.WriteMapElemValue()
4019 }
4020 ee.EncodeUint(uint64(v2))
4021 }
4022 }
4023 ee.WriteMapEnd()
4024 }
4025
4026 func (e *Encoder) fastpathEncMapIntfUintptrR(f *codecFnInfo, rv reflect.Value) {
4027 fastpathTV.EncMapIntfUintptrV(rv2i(rv).(map[interface{}]uintptr), e)
4028 }
4029 func (_ fastpathT) EncMapIntfUintptrV(v map[interface{}]uintptr, e *Encoder) {
4030 ee, esep := e.e, e.hh.hasElemSeparators()
4031 ee.WriteMapStart(len(v))
4032 if e.h.Canonical {
4033 var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
4034 e2 := NewEncoderBytes(&mksv, e.hh)
4035 v2 := make([]bytesI, len(v))
4036 var i, l int
4037 var vp *bytesI
4038 for k2, _ := range v {
4039 l = len(mksv)
4040 e2.MustEncode(k2)
4041 vp = &v2[i]
4042 vp.v = mksv[l:]
4043 vp.i = k2
4044 i++
4045 }
4046 sort.Sort(bytesISlice(v2))
4047 for j := range v2 {
4048 if esep {
4049 ee.WriteMapElemKey()
4050 }
4051 e.asis(v2[j].v)
4052 if esep {
4053 ee.WriteMapElemValue()
4054 }
4055 e.encode(v[v2[j].i])
4056 }
4057 } else {
4058 for k2, v2 := range v {
4059 if esep {
4060 ee.WriteMapElemKey()
4061 }
4062 e.encode(k2)
4063 if esep {
4064 ee.WriteMapElemValue()
4065 }
4066 e.encode(v2)
4067 }
4068 }
4069 ee.WriteMapEnd()
4070 }
4071
4072 func (e *Encoder) fastpathEncMapIntfIntR(f *codecFnInfo, rv reflect.Value) {
4073 fastpathTV.EncMapIntfIntV(rv2i(rv).(map[interface{}]int), e)
4074 }
4075 func (_ fastpathT) EncMapIntfIntV(v map[interface{}]int, e *Encoder) {
4076 ee, esep := e.e, e.hh.hasElemSeparators()
4077 ee.WriteMapStart(len(v))
4078 if e.h.Canonical {
4079 var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
4080 e2 := NewEncoderBytes(&mksv, e.hh)
4081 v2 := make([]bytesI, len(v))
4082 var i, l int
4083 var vp *bytesI
4084 for k2, _ := range v {
4085 l = len(mksv)
4086 e2.MustEncode(k2)
4087 vp = &v2[i]
4088 vp.v = mksv[l:]
4089 vp.i = k2
4090 i++
4091 }
4092 sort.Sort(bytesISlice(v2))
4093 for j := range v2 {
4094 if esep {
4095 ee.WriteMapElemKey()
4096 }
4097 e.asis(v2[j].v)
4098 if esep {
4099 ee.WriteMapElemValue()
4100 }
4101 e.encode(v[v2[j].i])
4102 }
4103 } else {
4104 for k2, v2 := range v {
4105 if esep {
4106 ee.WriteMapElemKey()
4107 }
4108 e.encode(k2)
4109 if esep {
4110 ee.WriteMapElemValue()
4111 }
4112 ee.EncodeInt(int64(v2))
4113 }
4114 }
4115 ee.WriteMapEnd()
4116 }
4117
4118 func (e *Encoder) fastpathEncMapIntfInt8R(f *codecFnInfo, rv reflect.Value) {
4119 fastpathTV.EncMapIntfInt8V(rv2i(rv).(map[interface{}]int8), e)
4120 }
4121 func (_ fastpathT) EncMapIntfInt8V(v map[interface{}]int8, e *Encoder) {
4122 ee, esep := e.e, e.hh.hasElemSeparators()
4123 ee.WriteMapStart(len(v))
4124 if e.h.Canonical {
4125 var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
4126 e2 := NewEncoderBytes(&mksv, e.hh)
4127 v2 := make([]bytesI, len(v))
4128 var i, l int
4129 var vp *bytesI
4130 for k2, _ := range v {
4131 l = len(mksv)
4132 e2.MustEncode(k2)
4133 vp = &v2[i]
4134 vp.v = mksv[l:]
4135 vp.i = k2
4136 i++
4137 }
4138 sort.Sort(bytesISlice(v2))
4139 for j := range v2 {
4140 if esep {
4141 ee.WriteMapElemKey()
4142 }
4143 e.asis(v2[j].v)
4144 if esep {
4145 ee.WriteMapElemValue()
4146 }
4147 e.encode(v[v2[j].i])
4148 }
4149 } else {
4150 for k2, v2 := range v {
4151 if esep {
4152 ee.WriteMapElemKey()
4153 }
4154 e.encode(k2)
4155 if esep {
4156 ee.WriteMapElemValue()
4157 }
4158 ee.EncodeInt(int64(v2))
4159 }
4160 }
4161 ee.WriteMapEnd()
4162 }
4163
4164 func (e *Encoder) fastpathEncMapIntfInt16R(f *codecFnInfo, rv reflect.Value) {
4165 fastpathTV.EncMapIntfInt16V(rv2i(rv).(map[interface{}]int16), e)
4166 }
4167 func (_ fastpathT) EncMapIntfInt16V(v map[interface{}]int16, e *Encoder) {
4168 ee, esep := e.e, e.hh.hasElemSeparators()
4169 ee.WriteMapStart(len(v))
4170 if e.h.Canonical {
4171 var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
4172 e2 := NewEncoderBytes(&mksv, e.hh)
4173 v2 := make([]bytesI, len(v))
4174 var i, l int
4175 var vp *bytesI
4176 for k2, _ := range v {
4177 l = len(mksv)
4178 e2.MustEncode(k2)
4179 vp = &v2[i]
4180 vp.v = mksv[l:]
4181 vp.i = k2
4182 i++
4183 }
4184 sort.Sort(bytesISlice(v2))
4185 for j := range v2 {
4186 if esep {
4187 ee.WriteMapElemKey()
4188 }
4189 e.asis(v2[j].v)
4190 if esep {
4191 ee.WriteMapElemValue()
4192 }
4193 e.encode(v[v2[j].i])
4194 }
4195 } else {
4196 for k2, v2 := range v {
4197 if esep {
4198 ee.WriteMapElemKey()
4199 }
4200 e.encode(k2)
4201 if esep {
4202 ee.WriteMapElemValue()
4203 }
4204 ee.EncodeInt(int64(v2))
4205 }
4206 }
4207 ee.WriteMapEnd()
4208 }
4209
4210 func (e *Encoder) fastpathEncMapIntfInt32R(f *codecFnInfo, rv reflect.Value) {
4211 fastpathTV.EncMapIntfInt32V(rv2i(rv).(map[interface{}]int32), e)
4212 }
4213 func (_ fastpathT) EncMapIntfInt32V(v map[interface{}]int32, e *Encoder) {
4214 ee, esep := e.e, e.hh.hasElemSeparators()
4215 ee.WriteMapStart(len(v))
4216 if e.h.Canonical {
4217 var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
4218 e2 := NewEncoderBytes(&mksv, e.hh)
4219 v2 := make([]bytesI, len(v))
4220 var i, l int
4221 var vp *bytesI
4222 for k2, _ := range v {
4223 l = len(mksv)
4224 e2.MustEncode(k2)
4225 vp = &v2[i]
4226 vp.v = mksv[l:]
4227 vp.i = k2
4228 i++
4229 }
4230 sort.Sort(bytesISlice(v2))
4231 for j := range v2 {
4232 if esep {
4233 ee.WriteMapElemKey()
4234 }
4235 e.asis(v2[j].v)
4236 if esep {
4237 ee.WriteMapElemValue()
4238 }
4239 e.encode(v[v2[j].i])
4240 }
4241 } else {
4242 for k2, v2 := range v {
4243 if esep {
4244 ee.WriteMapElemKey()
4245 }
4246 e.encode(k2)
4247 if esep {
4248 ee.WriteMapElemValue()
4249 }
4250 ee.EncodeInt(int64(v2))
4251 }
4252 }
4253 ee.WriteMapEnd()
4254 }
4255
4256 func (e *Encoder) fastpathEncMapIntfInt64R(f *codecFnInfo, rv reflect.Value) {
4257 fastpathTV.EncMapIntfInt64V(rv2i(rv).(map[interface{}]int64), e)
4258 }
4259 func (_ fastpathT) EncMapIntfInt64V(v map[interface{}]int64, e *Encoder) {
4260 ee, esep := e.e, e.hh.hasElemSeparators()
4261 ee.WriteMapStart(len(v))
4262 if e.h.Canonical {
4263 var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
4264 e2 := NewEncoderBytes(&mksv, e.hh)
4265 v2 := make([]bytesI, len(v))
4266 var i, l int
4267 var vp *bytesI
4268 for k2, _ := range v {
4269 l = len(mksv)
4270 e2.MustEncode(k2)
4271 vp = &v2[i]
4272 vp.v = mksv[l:]
4273 vp.i = k2
4274 i++
4275 }
4276 sort.Sort(bytesISlice(v2))
4277 for j := range v2 {
4278 if esep {
4279 ee.WriteMapElemKey()
4280 }
4281 e.asis(v2[j].v)
4282 if esep {
4283 ee.WriteMapElemValue()
4284 }
4285 e.encode(v[v2[j].i])
4286 }
4287 } else {
4288 for k2, v2 := range v {
4289 if esep {
4290 ee.WriteMapElemKey()
4291 }
4292 e.encode(k2)
4293 if esep {
4294 ee.WriteMapElemValue()
4295 }
4296 ee.EncodeInt(int64(v2))
4297 }
4298 }
4299 ee.WriteMapEnd()
4300 }
4301
4302 func (e *Encoder) fastpathEncMapIntfFloat32R(f *codecFnInfo, rv reflect.Value) {
4303 fastpathTV.EncMapIntfFloat32V(rv2i(rv).(map[interface{}]float32), e)
4304 }
4305 func (_ fastpathT) EncMapIntfFloat32V(v map[interface{}]float32, e *Encoder) {
4306 ee, esep := e.e, e.hh.hasElemSeparators()
4307 ee.WriteMapStart(len(v))
4308 if e.h.Canonical {
4309 var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
4310 e2 := NewEncoderBytes(&mksv, e.hh)
4311 v2 := make([]bytesI, len(v))
4312 var i, l int
4313 var vp *bytesI
4314 for k2, _ := range v {
4315 l = len(mksv)
4316 e2.MustEncode(k2)
4317 vp = &v2[i]
4318 vp.v = mksv[l:]
4319 vp.i = k2
4320 i++
4321 }
4322 sort.Sort(bytesISlice(v2))
4323 for j := range v2 {
4324 if esep {
4325 ee.WriteMapElemKey()
4326 }
4327 e.asis(v2[j].v)
4328 if esep {
4329 ee.WriteMapElemValue()
4330 }
4331 e.encode(v[v2[j].i])
4332 }
4333 } else {
4334 for k2, v2 := range v {
4335 if esep {
4336 ee.WriteMapElemKey()
4337 }
4338 e.encode(k2)
4339 if esep {
4340 ee.WriteMapElemValue()
4341 }
4342 ee.EncodeFloat32(v2)
4343 }
4344 }
4345 ee.WriteMapEnd()
4346 }
4347
4348 func (e *Encoder) fastpathEncMapIntfFloat64R(f *codecFnInfo, rv reflect.Value) {
4349 fastpathTV.EncMapIntfFloat64V(rv2i(rv).(map[interface{}]float64), e)
4350 }
4351 func (_ fastpathT) EncMapIntfFloat64V(v map[interface{}]float64, e *Encoder) {
4352 ee, esep := e.e, e.hh.hasElemSeparators()
4353 ee.WriteMapStart(len(v))
4354 if e.h.Canonical {
4355 var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
4356 e2 := NewEncoderBytes(&mksv, e.hh)
4357 v2 := make([]bytesI, len(v))
4358 var i, l int
4359 var vp *bytesI
4360 for k2, _ := range v {
4361 l = len(mksv)
4362 e2.MustEncode(k2)
4363 vp = &v2[i]
4364 vp.v = mksv[l:]
4365 vp.i = k2
4366 i++
4367 }
4368 sort.Sort(bytesISlice(v2))
4369 for j := range v2 {
4370 if esep {
4371 ee.WriteMapElemKey()
4372 }
4373 e.asis(v2[j].v)
4374 if esep {
4375 ee.WriteMapElemValue()
4376 }
4377 e.encode(v[v2[j].i])
4378 }
4379 } else {
4380 for k2, v2 := range v {
4381 if esep {
4382 ee.WriteMapElemKey()
4383 }
4384 e.encode(k2)
4385 if esep {
4386 ee.WriteMapElemValue()
4387 }
4388 ee.EncodeFloat64(v2)
4389 }
4390 }
4391 ee.WriteMapEnd()
4392 }
4393
4394 func (e *Encoder) fastpathEncMapIntfBoolR(f *codecFnInfo, rv reflect.Value) {
4395 fastpathTV.EncMapIntfBoolV(rv2i(rv).(map[interface{}]bool), e)
4396 }
4397 func (_ fastpathT) EncMapIntfBoolV(v map[interface{}]bool, e *Encoder) {
4398 ee, esep := e.e, e.hh.hasElemSeparators()
4399 ee.WriteMapStart(len(v))
4400 if e.h.Canonical {
4401 var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
4402 e2 := NewEncoderBytes(&mksv, e.hh)
4403 v2 := make([]bytesI, len(v))
4404 var i, l int
4405 var vp *bytesI
4406 for k2, _ := range v {
4407 l = len(mksv)
4408 e2.MustEncode(k2)
4409 vp = &v2[i]
4410 vp.v = mksv[l:]
4411 vp.i = k2
4412 i++
4413 }
4414 sort.Sort(bytesISlice(v2))
4415 for j := range v2 {
4416 if esep {
4417 ee.WriteMapElemKey()
4418 }
4419 e.asis(v2[j].v)
4420 if esep {
4421 ee.WriteMapElemValue()
4422 }
4423 e.encode(v[v2[j].i])
4424 }
4425 } else {
4426 for k2, v2 := range v {
4427 if esep {
4428 ee.WriteMapElemKey()
4429 }
4430 e.encode(k2)
4431 if esep {
4432 ee.WriteMapElemValue()
4433 }
4434 ee.EncodeBool(v2)
4435 }
4436 }
4437 ee.WriteMapEnd()
4438 }
4439
4440 func (e *Encoder) fastpathEncMapStringIntfR(f *codecFnInfo, rv reflect.Value) {
4441 fastpathTV.EncMapStringIntfV(rv2i(rv).(map[string]interface{}), e)
4442 }
4443 func (_ fastpathT) EncMapStringIntfV(v map[string]interface{}, e *Encoder) {
4444 ee, esep := e.e, e.hh.hasElemSeparators()
4445 ee.WriteMapStart(len(v))
4446 asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
4447 if e.h.Canonical {
4448 v2 := make([]string, len(v))
4449 var i int
4450 for k, _ := range v {
4451 v2[i] = string(k)
4452 i++
4453 }
4454 sort.Sort(stringSlice(v2))
4455 for _, k2 := range v2 {
4456 if esep {
4457 ee.WriteMapElemKey()
4458 }
4459 if asSymbols {
4460 ee.EncodeSymbol(k2)
4461 } else {
4462 ee.EncodeString(c_UTF8, k2)
4463 }
4464 if esep {
4465 ee.WriteMapElemValue()
4466 }
4467 e.encode(v[string(k2)])
4468 }
4469 } else {
4470 for k2, v2 := range v {
4471 if esep {
4472 ee.WriteMapElemKey()
4473 }
4474 if asSymbols {
4475 ee.EncodeSymbol(k2)
4476 } else {
4477 ee.EncodeString(c_UTF8, k2)
4478 }
4479 if esep {
4480 ee.WriteMapElemValue()
4481 }
4482 e.encode(v2)
4483 }
4484 }
4485 ee.WriteMapEnd()
4486 }
4487
4488 func (e *Encoder) fastpathEncMapStringStringR(f *codecFnInfo, rv reflect.Value) {
4489 fastpathTV.EncMapStringStringV(rv2i(rv).(map[string]string), e)
4490 }
4491 func (_ fastpathT) EncMapStringStringV(v map[string]string, e *Encoder) {
4492 ee, esep := e.e, e.hh.hasElemSeparators()
4493 ee.WriteMapStart(len(v))
4494 asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
4495 if e.h.Canonical {
4496 v2 := make([]string, len(v))
4497 var i int
4498 for k, _ := range v {
4499 v2[i] = string(k)
4500 i++
4501 }
4502 sort.Sort(stringSlice(v2))
4503 for _, k2 := range v2 {
4504 if esep {
4505 ee.WriteMapElemKey()
4506 }
4507 if asSymbols {
4508 ee.EncodeSymbol(k2)
4509 } else {
4510 ee.EncodeString(c_UTF8, k2)
4511 }
4512 if esep {
4513 ee.WriteMapElemValue()
4514 }
4515 ee.EncodeString(c_UTF8, v[string(k2)])
4516 }
4517 } else {
4518 for k2, v2 := range v {
4519 if esep {
4520 ee.WriteMapElemKey()
4521 }
4522 if asSymbols {
4523 ee.EncodeSymbol(k2)
4524 } else {
4525 ee.EncodeString(c_UTF8, k2)
4526 }
4527 if esep {
4528 ee.WriteMapElemValue()
4529 }
4530 ee.EncodeString(c_UTF8, v2)
4531 }
4532 }
4533 ee.WriteMapEnd()
4534 }
4535
4536 func (e *Encoder) fastpathEncMapStringUintR(f *codecFnInfo, rv reflect.Value) {
4537 fastpathTV.EncMapStringUintV(rv2i(rv).(map[string]uint), e)
4538 }
4539 func (_ fastpathT) EncMapStringUintV(v map[string]uint, e *Encoder) {
4540 ee, esep := e.e, e.hh.hasElemSeparators()
4541 ee.WriteMapStart(len(v))
4542 asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
4543 if e.h.Canonical {
4544 v2 := make([]string, len(v))
4545 var i int
4546 for k, _ := range v {
4547 v2[i] = string(k)
4548 i++
4549 }
4550 sort.Sort(stringSlice(v2))
4551 for _, k2 := range v2 {
4552 if esep {
4553 ee.WriteMapElemKey()
4554 }
4555 if asSymbols {
4556 ee.EncodeSymbol(k2)
4557 } else {
4558 ee.EncodeString(c_UTF8, k2)
4559 }
4560 if esep {
4561 ee.WriteMapElemValue()
4562 }
4563 ee.EncodeUint(uint64(v[string(k2)]))
4564 }
4565 } else {
4566 for k2, v2 := range v {
4567 if esep {
4568 ee.WriteMapElemKey()
4569 }
4570 if asSymbols {
4571 ee.EncodeSymbol(k2)
4572 } else {
4573 ee.EncodeString(c_UTF8, k2)
4574 }
4575 if esep {
4576 ee.WriteMapElemValue()
4577 }
4578 ee.EncodeUint(uint64(v2))
4579 }
4580 }
4581 ee.WriteMapEnd()
4582 }
4583
4584 func (e *Encoder) fastpathEncMapStringUint8R(f *codecFnInfo, rv reflect.Value) {
4585 fastpathTV.EncMapStringUint8V(rv2i(rv).(map[string]uint8), e)
4586 }
4587 func (_ fastpathT) EncMapStringUint8V(v map[string]uint8, e *Encoder) {
4588 ee, esep := e.e, e.hh.hasElemSeparators()
4589 ee.WriteMapStart(len(v))
4590 asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
4591 if e.h.Canonical {
4592 v2 := make([]string, len(v))
4593 var i int
4594 for k, _ := range v {
4595 v2[i] = string(k)
4596 i++
4597 }
4598 sort.Sort(stringSlice(v2))
4599 for _, k2 := range v2 {
4600 if esep {
4601 ee.WriteMapElemKey()
4602 }
4603 if asSymbols {
4604 ee.EncodeSymbol(k2)
4605 } else {
4606 ee.EncodeString(c_UTF8, k2)
4607 }
4608 if esep {
4609 ee.WriteMapElemValue()
4610 }
4611 ee.EncodeUint(uint64(v[string(k2)]))
4612 }
4613 } else {
4614 for k2, v2 := range v {
4615 if esep {
4616 ee.WriteMapElemKey()
4617 }
4618 if asSymbols {
4619 ee.EncodeSymbol(k2)
4620 } else {
4621 ee.EncodeString(c_UTF8, k2)
4622 }
4623 if esep {
4624 ee.WriteMapElemValue()
4625 }
4626 ee.EncodeUint(uint64(v2))
4627 }
4628 }
4629 ee.WriteMapEnd()
4630 }
4631
4632 func (e *Encoder) fastpathEncMapStringUint16R(f *codecFnInfo, rv reflect.Value) {
4633 fastpathTV.EncMapStringUint16V(rv2i(rv).(map[string]uint16), e)
4634 }
4635 func (_ fastpathT) EncMapStringUint16V(v map[string]uint16, e *Encoder) {
4636 ee, esep := e.e, e.hh.hasElemSeparators()
4637 ee.WriteMapStart(len(v))
4638 asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
4639 if e.h.Canonical {
4640 v2 := make([]string, len(v))
4641 var i int
4642 for k, _ := range v {
4643 v2[i] = string(k)
4644 i++
4645 }
4646 sort.Sort(stringSlice(v2))
4647 for _, k2 := range v2 {
4648 if esep {
4649 ee.WriteMapElemKey()
4650 }
4651 if asSymbols {
4652 ee.EncodeSymbol(k2)
4653 } else {
4654 ee.EncodeString(c_UTF8, k2)
4655 }
4656 if esep {
4657 ee.WriteMapElemValue()
4658 }
4659 ee.EncodeUint(uint64(v[string(k2)]))
4660 }
4661 } else {
4662 for k2, v2 := range v {
4663 if esep {
4664 ee.WriteMapElemKey()
4665 }
4666 if asSymbols {
4667 ee.EncodeSymbol(k2)
4668 } else {
4669 ee.EncodeString(c_UTF8, k2)
4670 }
4671 if esep {
4672 ee.WriteMapElemValue()
4673 }
4674 ee.EncodeUint(uint64(v2))
4675 }
4676 }
4677 ee.WriteMapEnd()
4678 }
4679
4680 func (e *Encoder) fastpathEncMapStringUint32R(f *codecFnInfo, rv reflect.Value) {
4681 fastpathTV.EncMapStringUint32V(rv2i(rv).(map[string]uint32), e)
4682 }
4683 func (_ fastpathT) EncMapStringUint32V(v map[string]uint32, e *Encoder) {
4684 ee, esep := e.e, e.hh.hasElemSeparators()
4685 ee.WriteMapStart(len(v))
4686 asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
4687 if e.h.Canonical {
4688 v2 := make([]string, len(v))
4689 var i int
4690 for k, _ := range v {
4691 v2[i] = string(k)
4692 i++
4693 }
4694 sort.Sort(stringSlice(v2))
4695 for _, k2 := range v2 {
4696 if esep {
4697 ee.WriteMapElemKey()
4698 }
4699 if asSymbols {
4700 ee.EncodeSymbol(k2)
4701 } else {
4702 ee.EncodeString(c_UTF8, k2)
4703 }
4704 if esep {
4705 ee.WriteMapElemValue()
4706 }
4707 ee.EncodeUint(uint64(v[string(k2)]))
4708 }
4709 } else {
4710 for k2, v2 := range v {
4711 if esep {
4712 ee.WriteMapElemKey()
4713 }
4714 if asSymbols {
4715 ee.EncodeSymbol(k2)
4716 } else {
4717 ee.EncodeString(c_UTF8, k2)
4718 }
4719 if esep {
4720 ee.WriteMapElemValue()
4721 }
4722 ee.EncodeUint(uint64(v2))
4723 }
4724 }
4725 ee.WriteMapEnd()
4726 }
4727
4728 func (e *Encoder) fastpathEncMapStringUint64R(f *codecFnInfo, rv reflect.Value) {
4729 fastpathTV.EncMapStringUint64V(rv2i(rv).(map[string]uint64), e)
4730 }
4731 func (_ fastpathT) EncMapStringUint64V(v map[string]uint64, e *Encoder) {
4732 ee, esep := e.e, e.hh.hasElemSeparators()
4733 ee.WriteMapStart(len(v))
4734 asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
4735 if e.h.Canonical {
4736 v2 := make([]string, len(v))
4737 var i int
4738 for k, _ := range v {
4739 v2[i] = string(k)
4740 i++
4741 }
4742 sort.Sort(stringSlice(v2))
4743 for _, k2 := range v2 {
4744 if esep {
4745 ee.WriteMapElemKey()
4746 }
4747 if asSymbols {
4748 ee.EncodeSymbol(k2)
4749 } else {
4750 ee.EncodeString(c_UTF8, k2)
4751 }
4752 if esep {
4753 ee.WriteMapElemValue()
4754 }
4755 ee.EncodeUint(uint64(v[string(k2)]))
4756 }
4757 } else {
4758 for k2, v2 := range v {
4759 if esep {
4760 ee.WriteMapElemKey()
4761 }
4762 if asSymbols {
4763 ee.EncodeSymbol(k2)
4764 } else {
4765 ee.EncodeString(c_UTF8, k2)
4766 }
4767 if esep {
4768 ee.WriteMapElemValue()
4769 }
4770 ee.EncodeUint(uint64(v2))
4771 }
4772 }
4773 ee.WriteMapEnd()
4774 }
4775
4776 func (e *Encoder) fastpathEncMapStringUintptrR(f *codecFnInfo, rv reflect.Value) {
4777 fastpathTV.EncMapStringUintptrV(rv2i(rv).(map[string]uintptr), e)
4778 }
4779 func (_ fastpathT) EncMapStringUintptrV(v map[string]uintptr, e *Encoder) {
4780 ee, esep := e.e, e.hh.hasElemSeparators()
4781 ee.WriteMapStart(len(v))
4782 asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
4783 if e.h.Canonical {
4784 v2 := make([]string, len(v))
4785 var i int
4786 for k, _ := range v {
4787 v2[i] = string(k)
4788 i++
4789 }
4790 sort.Sort(stringSlice(v2))
4791 for _, k2 := range v2 {
4792 if esep {
4793 ee.WriteMapElemKey()
4794 }
4795 if asSymbols {
4796 ee.EncodeSymbol(k2)
4797 } else {
4798 ee.EncodeString(c_UTF8, k2)
4799 }
4800 if esep {
4801 ee.WriteMapElemValue()
4802 }
4803 e.encode(v[string(k2)])
4804 }
4805 } else {
4806 for k2, v2 := range v {
4807 if esep {
4808 ee.WriteMapElemKey()
4809 }
4810 if asSymbols {
4811 ee.EncodeSymbol(k2)
4812 } else {
4813 ee.EncodeString(c_UTF8, k2)
4814 }
4815 if esep {
4816 ee.WriteMapElemValue()
4817 }
4818 e.encode(v2)
4819 }
4820 }
4821 ee.WriteMapEnd()
4822 }
4823
4824 func (e *Encoder) fastpathEncMapStringIntR(f *codecFnInfo, rv reflect.Value) {
4825 fastpathTV.EncMapStringIntV(rv2i(rv).(map[string]int), e)
4826 }
4827 func (_ fastpathT) EncMapStringIntV(v map[string]int, e *Encoder) {
4828 ee, esep := e.e, e.hh.hasElemSeparators()
4829 ee.WriteMapStart(len(v))
4830 asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
4831 if e.h.Canonical {
4832 v2 := make([]string, len(v))
4833 var i int
4834 for k, _ := range v {
4835 v2[i] = string(k)
4836 i++
4837 }
4838 sort.Sort(stringSlice(v2))
4839 for _, k2 := range v2 {
4840 if esep {
4841 ee.WriteMapElemKey()
4842 }
4843 if asSymbols {
4844 ee.EncodeSymbol(k2)
4845 } else {
4846 ee.EncodeString(c_UTF8, k2)
4847 }
4848 if esep {
4849 ee.WriteMapElemValue()
4850 }
4851 ee.EncodeInt(int64(v[string(k2)]))
4852 }
4853 } else {
4854 for k2, v2 := range v {
4855 if esep {
4856 ee.WriteMapElemKey()
4857 }
4858 if asSymbols {
4859 ee.EncodeSymbol(k2)
4860 } else {
4861 ee.EncodeString(c_UTF8, k2)
4862 }
4863 if esep {
4864 ee.WriteMapElemValue()
4865 }
4866 ee.EncodeInt(int64(v2))
4867 }
4868 }
4869 ee.WriteMapEnd()
4870 }
4871
4872 func (e *Encoder) fastpathEncMapStringInt8R(f *codecFnInfo, rv reflect.Value) {
4873 fastpathTV.EncMapStringInt8V(rv2i(rv).(map[string]int8), e)
4874 }
4875 func (_ fastpathT) EncMapStringInt8V(v map[string]int8, e *Encoder) {
4876 ee, esep := e.e, e.hh.hasElemSeparators()
4877 ee.WriteMapStart(len(v))
4878 asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
4879 if e.h.Canonical {
4880 v2 := make([]string, len(v))
4881 var i int
4882 for k, _ := range v {
4883 v2[i] = string(k)
4884 i++
4885 }
4886 sort.Sort(stringSlice(v2))
4887 for _, k2 := range v2 {
4888 if esep {
4889 ee.WriteMapElemKey()
4890 }
4891 if asSymbols {
4892 ee.EncodeSymbol(k2)
4893 } else {
4894 ee.EncodeString(c_UTF8, k2)
4895 }
4896 if esep {
4897 ee.WriteMapElemValue()
4898 }
4899 ee.EncodeInt(int64(v[string(k2)]))
4900 }
4901 } else {
4902 for k2, v2 := range v {
4903 if esep {
4904 ee.WriteMapElemKey()
4905 }
4906 if asSymbols {
4907 ee.EncodeSymbol(k2)
4908 } else {
4909 ee.EncodeString(c_UTF8, k2)
4910 }
4911 if esep {
4912 ee.WriteMapElemValue()
4913 }
4914 ee.EncodeInt(int64(v2))
4915 }
4916 }
4917 ee.WriteMapEnd()
4918 }
4919
4920 func (e *Encoder) fastpathEncMapStringInt16R(f *codecFnInfo, rv reflect.Value) {
4921 fastpathTV.EncMapStringInt16V(rv2i(rv).(map[string]int16), e)
4922 }
4923 func (_ fastpathT) EncMapStringInt16V(v map[string]int16, e *Encoder) {
4924 ee, esep := e.e, e.hh.hasElemSeparators()
4925 ee.WriteMapStart(len(v))
4926 asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
4927 if e.h.Canonical {
4928 v2 := make([]string, len(v))
4929 var i int
4930 for k, _ := range v {
4931 v2[i] = string(k)
4932 i++
4933 }
4934 sort.Sort(stringSlice(v2))
4935 for _, k2 := range v2 {
4936 if esep {
4937 ee.WriteMapElemKey()
4938 }
4939 if asSymbols {
4940 ee.EncodeSymbol(k2)
4941 } else {
4942 ee.EncodeString(c_UTF8, k2)
4943 }
4944 if esep {
4945 ee.WriteMapElemValue()
4946 }
4947 ee.EncodeInt(int64(v[string(k2)]))
4948 }
4949 } else {
4950 for k2, v2 := range v {
4951 if esep {
4952 ee.WriteMapElemKey()
4953 }
4954 if asSymbols {
4955 ee.EncodeSymbol(k2)
4956 } else {
4957 ee.EncodeString(c_UTF8, k2)
4958 }
4959 if esep {
4960 ee.WriteMapElemValue()
4961 }
4962 ee.EncodeInt(int64(v2))
4963 }
4964 }
4965 ee.WriteMapEnd()
4966 }
4967
4968 func (e *Encoder) fastpathEncMapStringInt32R(f *codecFnInfo, rv reflect.Value) {
4969 fastpathTV.EncMapStringInt32V(rv2i(rv).(map[string]int32), e)
4970 }
4971 func (_ fastpathT) EncMapStringInt32V(v map[string]int32, e *Encoder) {
4972 ee, esep := e.e, e.hh.hasElemSeparators()
4973 ee.WriteMapStart(len(v))
4974 asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
4975 if e.h.Canonical {
4976 v2 := make([]string, len(v))
4977 var i int
4978 for k, _ := range v {
4979 v2[i] = string(k)
4980 i++
4981 }
4982 sort.Sort(stringSlice(v2))
4983 for _, k2 := range v2 {
4984 if esep {
4985 ee.WriteMapElemKey()
4986 }
4987 if asSymbols {
4988 ee.EncodeSymbol(k2)
4989 } else {
4990 ee.EncodeString(c_UTF8, k2)
4991 }
4992 if esep {
4993 ee.WriteMapElemValue()
4994 }
4995 ee.EncodeInt(int64(v[string(k2)]))
4996 }
4997 } else {
4998 for k2, v2 := range v {
4999 if esep {
5000 ee.WriteMapElemKey()
5001 }
5002 if asSymbols {
5003 ee.EncodeSymbol(k2)
5004 } else {
5005 ee.EncodeString(c_UTF8, k2)
5006 }
5007 if esep {
5008 ee.WriteMapElemValue()
5009 }
5010 ee.EncodeInt(int64(v2))
5011 }
5012 }
5013 ee.WriteMapEnd()
5014 }
5015
5016 func (e *Encoder) fastpathEncMapStringInt64R(f *codecFnInfo, rv reflect.Value) {
5017 fastpathTV.EncMapStringInt64V(rv2i(rv).(map[string]int64), e)
5018 }
5019 func (_ fastpathT) EncMapStringInt64V(v map[string]int64, e *Encoder) {
5020 ee, esep := e.e, e.hh.hasElemSeparators()
5021 ee.WriteMapStart(len(v))
5022 asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
5023 if e.h.Canonical {
5024 v2 := make([]string, len(v))
5025 var i int
5026 for k, _ := range v {
5027 v2[i] = string(k)
5028 i++
5029 }
5030 sort.Sort(stringSlice(v2))
5031 for _, k2 := range v2 {
5032 if esep {
5033 ee.WriteMapElemKey()
5034 }
5035 if asSymbols {
5036 ee.EncodeSymbol(k2)
5037 } else {
5038 ee.EncodeString(c_UTF8, k2)
5039 }
5040 if esep {
5041 ee.WriteMapElemValue()
5042 }
5043 ee.EncodeInt(int64(v[string(k2)]))
5044 }
5045 } else {
5046 for k2, v2 := range v {
5047 if esep {
5048 ee.WriteMapElemKey()
5049 }
5050 if asSymbols {
5051 ee.EncodeSymbol(k2)
5052 } else {
5053 ee.EncodeString(c_UTF8, k2)
5054 }
5055 if esep {
5056 ee.WriteMapElemValue()
5057 }
5058 ee.EncodeInt(int64(v2))
5059 }
5060 }
5061 ee.WriteMapEnd()
5062 }
5063
5064 func (e *Encoder) fastpathEncMapStringFloat32R(f *codecFnInfo, rv reflect.Value) {
5065 fastpathTV.EncMapStringFloat32V(rv2i(rv).(map[string]float32), e)
5066 }
5067 func (_ fastpathT) EncMapStringFloat32V(v map[string]float32, e *Encoder) {
5068 ee, esep := e.e, e.hh.hasElemSeparators()
5069 ee.WriteMapStart(len(v))
5070 asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
5071 if e.h.Canonical {
5072 v2 := make([]string, len(v))
5073 var i int
5074 for k, _ := range v {
5075 v2[i] = string(k)
5076 i++
5077 }
5078 sort.Sort(stringSlice(v2))
5079 for _, k2 := range v2 {
5080 if esep {
5081 ee.WriteMapElemKey()
5082 }
5083 if asSymbols {
5084 ee.EncodeSymbol(k2)
5085 } else {
5086 ee.EncodeString(c_UTF8, k2)
5087 }
5088 if esep {
5089 ee.WriteMapElemValue()
5090 }
5091 ee.EncodeFloat32(v[string(k2)])
5092 }
5093 } else {
5094 for k2, v2 := range v {
5095 if esep {
5096 ee.WriteMapElemKey()
5097 }
5098 if asSymbols {
5099 ee.EncodeSymbol(k2)
5100 } else {
5101 ee.EncodeString(c_UTF8, k2)
5102 }
5103 if esep {
5104 ee.WriteMapElemValue()
5105 }
5106 ee.EncodeFloat32(v2)
5107 }
5108 }
5109 ee.WriteMapEnd()
5110 }
5111
5112 func (e *Encoder) fastpathEncMapStringFloat64R(f *codecFnInfo, rv reflect.Value) {
5113 fastpathTV.EncMapStringFloat64V(rv2i(rv).(map[string]float64), e)
5114 }
5115 func (_ fastpathT) EncMapStringFloat64V(v map[string]float64, e *Encoder) {
5116 ee, esep := e.e, e.hh.hasElemSeparators()
5117 ee.WriteMapStart(len(v))
5118 asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
5119 if e.h.Canonical {
5120 v2 := make([]string, len(v))
5121 var i int
5122 for k, _ := range v {
5123 v2[i] = string(k)
5124 i++
5125 }
5126 sort.Sort(stringSlice(v2))
5127 for _, k2 := range v2 {
5128 if esep {
5129 ee.WriteMapElemKey()
5130 }
5131 if asSymbols {
5132 ee.EncodeSymbol(k2)
5133 } else {
5134 ee.EncodeString(c_UTF8, k2)
5135 }
5136 if esep {
5137 ee.WriteMapElemValue()
5138 }
5139 ee.EncodeFloat64(v[string(k2)])
5140 }
5141 } else {
5142 for k2, v2 := range v {
5143 if esep {
5144 ee.WriteMapElemKey()
5145 }
5146 if asSymbols {
5147 ee.EncodeSymbol(k2)
5148 } else {
5149 ee.EncodeString(c_UTF8, k2)
5150 }
5151 if esep {
5152 ee.WriteMapElemValue()
5153 }
5154 ee.EncodeFloat64(v2)
5155 }
5156 }
5157 ee.WriteMapEnd()
5158 }
5159
5160 func (e *Encoder) fastpathEncMapStringBoolR(f *codecFnInfo, rv reflect.Value) {
5161 fastpathTV.EncMapStringBoolV(rv2i(rv).(map[string]bool), e)
5162 }
5163 func (_ fastpathT) EncMapStringBoolV(v map[string]bool, e *Encoder) {
5164 ee, esep := e.e, e.hh.hasElemSeparators()
5165 ee.WriteMapStart(len(v))
5166 asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
5167 if e.h.Canonical {
5168 v2 := make([]string, len(v))
5169 var i int
5170 for k, _ := range v {
5171 v2[i] = string(k)
5172 i++
5173 }
5174 sort.Sort(stringSlice(v2))
5175 for _, k2 := range v2 {
5176 if esep {
5177 ee.WriteMapElemKey()
5178 }
5179 if asSymbols {
5180 ee.EncodeSymbol(k2)
5181 } else {
5182 ee.EncodeString(c_UTF8, k2)
5183 }
5184 if esep {
5185 ee.WriteMapElemValue()
5186 }
5187 ee.EncodeBool(v[string(k2)])
5188 }
5189 } else {
5190 for k2, v2 := range v {
5191 if esep {
5192 ee.WriteMapElemKey()
5193 }
5194 if asSymbols {
5195 ee.EncodeSymbol(k2)
5196 } else {
5197 ee.EncodeString(c_UTF8, k2)
5198 }
5199 if esep {
5200 ee.WriteMapElemValue()
5201 }
5202 ee.EncodeBool(v2)
5203 }
5204 }
5205 ee.WriteMapEnd()
5206 }
5207
5208 func (e *Encoder) fastpathEncMapFloat32IntfR(f *codecFnInfo, rv reflect.Value) {
5209 fastpathTV.EncMapFloat32IntfV(rv2i(rv).(map[float32]interface{}), e)
5210 }
5211 func (_ fastpathT) EncMapFloat32IntfV(v map[float32]interface{}, e *Encoder) {
5212 ee, esep := e.e, e.hh.hasElemSeparators()
5213 ee.WriteMapStart(len(v))
5214 if e.h.Canonical {
5215 v2 := make([]float64, len(v))
5216 var i int
5217 for k, _ := range v {
5218 v2[i] = float64(k)
5219 i++
5220 }
5221 sort.Sort(floatSlice(v2))
5222 for _, k2 := range v2 {
5223 if esep {
5224 ee.WriteMapElemKey()
5225 }
5226 ee.EncodeFloat32(float32(k2))
5227 if esep {
5228 ee.WriteMapElemValue()
5229 }
5230 e.encode(v[float32(k2)])
5231 }
5232 } else {
5233 for k2, v2 := range v {
5234 if esep {
5235 ee.WriteMapElemKey()
5236 }
5237 ee.EncodeFloat32(k2)
5238 if esep {
5239 ee.WriteMapElemValue()
5240 }
5241 e.encode(v2)
5242 }
5243 }
5244 ee.WriteMapEnd()
5245 }
5246
5247 func (e *Encoder) fastpathEncMapFloat32StringR(f *codecFnInfo, rv reflect.Value) {
5248 fastpathTV.EncMapFloat32StringV(rv2i(rv).(map[float32]string), e)
5249 }
5250 func (_ fastpathT) EncMapFloat32StringV(v map[float32]string, e *Encoder) {
5251 ee, esep := e.e, e.hh.hasElemSeparators()
5252 ee.WriteMapStart(len(v))
5253 if e.h.Canonical {
5254 v2 := make([]float64, len(v))
5255 var i int
5256 for k, _ := range v {
5257 v2[i] = float64(k)
5258 i++
5259 }
5260 sort.Sort(floatSlice(v2))
5261 for _, k2 := range v2 {
5262 if esep {
5263 ee.WriteMapElemKey()
5264 }
5265 ee.EncodeFloat32(float32(k2))
5266 if esep {
5267 ee.WriteMapElemValue()
5268 }
5269 ee.EncodeString(c_UTF8, v[float32(k2)])
5270 }
5271 } else {
5272 for k2, v2 := range v {
5273 if esep {
5274 ee.WriteMapElemKey()
5275 }
5276 ee.EncodeFloat32(k2)
5277 if esep {
5278 ee.WriteMapElemValue()
5279 }
5280 ee.EncodeString(c_UTF8, v2)
5281 }
5282 }
5283 ee.WriteMapEnd()
5284 }
5285
5286 func (e *Encoder) fastpathEncMapFloat32UintR(f *codecFnInfo, rv reflect.Value) {
5287 fastpathTV.EncMapFloat32UintV(rv2i(rv).(map[float32]uint), e)
5288 }
5289 func (_ fastpathT) EncMapFloat32UintV(v map[float32]uint, e *Encoder) {
5290 ee, esep := e.e, e.hh.hasElemSeparators()
5291 ee.WriteMapStart(len(v))
5292 if e.h.Canonical {
5293 v2 := make([]float64, len(v))
5294 var i int
5295 for k, _ := range v {
5296 v2[i] = float64(k)
5297 i++
5298 }
5299 sort.Sort(floatSlice(v2))
5300 for _, k2 := range v2 {
5301 if esep {
5302 ee.WriteMapElemKey()
5303 }
5304 ee.EncodeFloat32(float32(k2))
5305 if esep {
5306 ee.WriteMapElemValue()
5307 }
5308 ee.EncodeUint(uint64(v[float32(k2)]))
5309 }
5310 } else {
5311 for k2, v2 := range v {
5312 if esep {
5313 ee.WriteMapElemKey()
5314 }
5315 ee.EncodeFloat32(k2)
5316 if esep {
5317 ee.WriteMapElemValue()
5318 }
5319 ee.EncodeUint(uint64(v2))
5320 }
5321 }
5322 ee.WriteMapEnd()
5323 }
5324
5325 func (e *Encoder) fastpathEncMapFloat32Uint8R(f *codecFnInfo, rv reflect.Value) {
5326 fastpathTV.EncMapFloat32Uint8V(rv2i(rv).(map[float32]uint8), e)
5327 }
5328 func (_ fastpathT) EncMapFloat32Uint8V(v map[float32]uint8, e *Encoder) {
5329 ee, esep := e.e, e.hh.hasElemSeparators()
5330 ee.WriteMapStart(len(v))
5331 if e.h.Canonical {
5332 v2 := make([]float64, len(v))
5333 var i int
5334 for k, _ := range v {
5335 v2[i] = float64(k)
5336 i++
5337 }
5338 sort.Sort(floatSlice(v2))
5339 for _, k2 := range v2 {
5340 if esep {
5341 ee.WriteMapElemKey()
5342 }
5343 ee.EncodeFloat32(float32(k2))
5344 if esep {
5345 ee.WriteMapElemValue()
5346 }
5347 ee.EncodeUint(uint64(v[float32(k2)]))
5348 }
5349 } else {
5350 for k2, v2 := range v {
5351 if esep {
5352 ee.WriteMapElemKey()
5353 }
5354 ee.EncodeFloat32(k2)
5355 if esep {
5356 ee.WriteMapElemValue()
5357 }
5358 ee.EncodeUint(uint64(v2))
5359 }
5360 }
5361 ee.WriteMapEnd()
5362 }
5363
5364 func (e *Encoder) fastpathEncMapFloat32Uint16R(f *codecFnInfo, rv reflect.Value) {
5365 fastpathTV.EncMapFloat32Uint16V(rv2i(rv).(map[float32]uint16), e)
5366 }
5367 func (_ fastpathT) EncMapFloat32Uint16V(v map[float32]uint16, e *Encoder) {
5368 ee, esep := e.e, e.hh.hasElemSeparators()
5369 ee.WriteMapStart(len(v))
5370 if e.h.Canonical {
5371 v2 := make([]float64, len(v))
5372 var i int
5373 for k, _ := range v {
5374 v2[i] = float64(k)
5375 i++
5376 }
5377 sort.Sort(floatSlice(v2))
5378 for _, k2 := range v2 {
5379 if esep {
5380 ee.WriteMapElemKey()
5381 }
5382 ee.EncodeFloat32(float32(k2))
5383 if esep {
5384 ee.WriteMapElemValue()
5385 }
5386 ee.EncodeUint(uint64(v[float32(k2)]))
5387 }
5388 } else {
5389 for k2, v2 := range v {
5390 if esep {
5391 ee.WriteMapElemKey()
5392 }
5393 ee.EncodeFloat32(k2)
5394 if esep {
5395 ee.WriteMapElemValue()
5396 }
5397 ee.EncodeUint(uint64(v2))
5398 }
5399 }
5400 ee.WriteMapEnd()
5401 }
5402
5403 func (e *Encoder) fastpathEncMapFloat32Uint32R(f *codecFnInfo, rv reflect.Value) {
5404 fastpathTV.EncMapFloat32Uint32V(rv2i(rv).(map[float32]uint32), e)
5405 }
5406 func (_ fastpathT) EncMapFloat32Uint32V(v map[float32]uint32, e *Encoder) {
5407 ee, esep := e.e, e.hh.hasElemSeparators()
5408 ee.WriteMapStart(len(v))
5409 if e.h.Canonical {
5410 v2 := make([]float64, len(v))
5411 var i int
5412 for k, _ := range v {
5413 v2[i] = float64(k)
5414 i++
5415 }
5416 sort.Sort(floatSlice(v2))
5417 for _, k2 := range v2 {
5418 if esep {
5419 ee.WriteMapElemKey()
5420 }
5421 ee.EncodeFloat32(float32(k2))
5422 if esep {
5423 ee.WriteMapElemValue()
5424 }
5425 ee.EncodeUint(uint64(v[float32(k2)]))
5426 }
5427 } else {
5428 for k2, v2 := range v {
5429 if esep {
5430 ee.WriteMapElemKey()
5431 }
5432 ee.EncodeFloat32(k2)
5433 if esep {
5434 ee.WriteMapElemValue()
5435 }
5436 ee.EncodeUint(uint64(v2))
5437 }
5438 }
5439 ee.WriteMapEnd()
5440 }
5441
5442 func (e *Encoder) fastpathEncMapFloat32Uint64R(f *codecFnInfo, rv reflect.Value) {
5443 fastpathTV.EncMapFloat32Uint64V(rv2i(rv).(map[float32]uint64), e)
5444 }
5445 func (_ fastpathT) EncMapFloat32Uint64V(v map[float32]uint64, e *Encoder) {
5446 ee, esep := e.e, e.hh.hasElemSeparators()
5447 ee.WriteMapStart(len(v))
5448 if e.h.Canonical {
5449 v2 := make([]float64, len(v))
5450 var i int
5451 for k, _ := range v {
5452 v2[i] = float64(k)
5453 i++
5454 }
5455 sort.Sort(floatSlice(v2))
5456 for _, k2 := range v2 {
5457 if esep {
5458 ee.WriteMapElemKey()
5459 }
5460 ee.EncodeFloat32(float32(k2))
5461 if esep {
5462 ee.WriteMapElemValue()
5463 }
5464 ee.EncodeUint(uint64(v[float32(k2)]))
5465 }
5466 } else {
5467 for k2, v2 := range v {
5468 if esep {
5469 ee.WriteMapElemKey()
5470 }
5471 ee.EncodeFloat32(k2)
5472 if esep {
5473 ee.WriteMapElemValue()
5474 }
5475 ee.EncodeUint(uint64(v2))
5476 }
5477 }
5478 ee.WriteMapEnd()
5479 }
5480
5481 func (e *Encoder) fastpathEncMapFloat32UintptrR(f *codecFnInfo, rv reflect.Value) {
5482 fastpathTV.EncMapFloat32UintptrV(rv2i(rv).(map[float32]uintptr), e)
5483 }
5484 func (_ fastpathT) EncMapFloat32UintptrV(v map[float32]uintptr, e *Encoder) {
5485 ee, esep := e.e, e.hh.hasElemSeparators()
5486 ee.WriteMapStart(len(v))
5487 if e.h.Canonical {
5488 v2 := make([]float64, len(v))
5489 var i int
5490 for k, _ := range v {
5491 v2[i] = float64(k)
5492 i++
5493 }
5494 sort.Sort(floatSlice(v2))
5495 for _, k2 := range v2 {
5496 if esep {
5497 ee.WriteMapElemKey()
5498 }
5499 ee.EncodeFloat32(float32(k2))
5500 if esep {
5501 ee.WriteMapElemValue()
5502 }
5503 e.encode(v[float32(k2)])
5504 }
5505 } else {
5506 for k2, v2 := range v {
5507 if esep {
5508 ee.WriteMapElemKey()
5509 }
5510 ee.EncodeFloat32(k2)
5511 if esep {
5512 ee.WriteMapElemValue()
5513 }
5514 e.encode(v2)
5515 }
5516 }
5517 ee.WriteMapEnd()
5518 }
5519
5520 func (e *Encoder) fastpathEncMapFloat32IntR(f *codecFnInfo, rv reflect.Value) {
5521 fastpathTV.EncMapFloat32IntV(rv2i(rv).(map[float32]int), e)
5522 }
5523 func (_ fastpathT) EncMapFloat32IntV(v map[float32]int, e *Encoder) {
5524 ee, esep := e.e, e.hh.hasElemSeparators()
5525 ee.WriteMapStart(len(v))
5526 if e.h.Canonical {
5527 v2 := make([]float64, len(v))
5528 var i int
5529 for k, _ := range v {
5530 v2[i] = float64(k)
5531 i++
5532 }
5533 sort.Sort(floatSlice(v2))
5534 for _, k2 := range v2 {
5535 if esep {
5536 ee.WriteMapElemKey()
5537 }
5538 ee.EncodeFloat32(float32(k2))
5539 if esep {
5540 ee.WriteMapElemValue()
5541 }
5542 ee.EncodeInt(int64(v[float32(k2)]))
5543 }
5544 } else {
5545 for k2, v2 := range v {
5546 if esep {
5547 ee.WriteMapElemKey()
5548 }
5549 ee.EncodeFloat32(k2)
5550 if esep {
5551 ee.WriteMapElemValue()
5552 }
5553 ee.EncodeInt(int64(v2))
5554 }
5555 }
5556 ee.WriteMapEnd()
5557 }
5558
5559 func (e *Encoder) fastpathEncMapFloat32Int8R(f *codecFnInfo, rv reflect.Value) {
5560 fastpathTV.EncMapFloat32Int8V(rv2i(rv).(map[float32]int8), e)
5561 }
5562 func (_ fastpathT) EncMapFloat32Int8V(v map[float32]int8, e *Encoder) {
5563 ee, esep := e.e, e.hh.hasElemSeparators()
5564 ee.WriteMapStart(len(v))
5565 if e.h.Canonical {
5566 v2 := make([]float64, len(v))
5567 var i int
5568 for k, _ := range v {
5569 v2[i] = float64(k)
5570 i++
5571 }
5572 sort.Sort(floatSlice(v2))
5573 for _, k2 := range v2 {
5574 if esep {
5575 ee.WriteMapElemKey()
5576 }
5577 ee.EncodeFloat32(float32(k2))
5578 if esep {
5579 ee.WriteMapElemValue()
5580 }
5581 ee.EncodeInt(int64(v[float32(k2)]))
5582 }
5583 } else {
5584 for k2, v2 := range v {
5585 if esep {
5586 ee.WriteMapElemKey()
5587 }
5588 ee.EncodeFloat32(k2)
5589 if esep {
5590 ee.WriteMapElemValue()
5591 }
5592 ee.EncodeInt(int64(v2))
5593 }
5594 }
5595 ee.WriteMapEnd()
5596 }
5597
5598 func (e *Encoder) fastpathEncMapFloat32Int16R(f *codecFnInfo, rv reflect.Value) {
5599 fastpathTV.EncMapFloat32Int16V(rv2i(rv).(map[float32]int16), e)
5600 }
5601 func (_ fastpathT) EncMapFloat32Int16V(v map[float32]int16, e *Encoder) {
5602 ee, esep := e.e, e.hh.hasElemSeparators()
5603 ee.WriteMapStart(len(v))
5604 if e.h.Canonical {
5605 v2 := make([]float64, len(v))
5606 var i int
5607 for k, _ := range v {
5608 v2[i] = float64(k)
5609 i++
5610 }
5611 sort.Sort(floatSlice(v2))
5612 for _, k2 := range v2 {
5613 if esep {
5614 ee.WriteMapElemKey()
5615 }
5616 ee.EncodeFloat32(float32(k2))
5617 if esep {
5618 ee.WriteMapElemValue()
5619 }
5620 ee.EncodeInt(int64(v[float32(k2)]))
5621 }
5622 } else {
5623 for k2, v2 := range v {
5624 if esep {
5625 ee.WriteMapElemKey()
5626 }
5627 ee.EncodeFloat32(k2)
5628 if esep {
5629 ee.WriteMapElemValue()
5630 }
5631 ee.EncodeInt(int64(v2))
5632 }
5633 }
5634 ee.WriteMapEnd()
5635 }
5636
5637 func (e *Encoder) fastpathEncMapFloat32Int32R(f *codecFnInfo, rv reflect.Value) {
5638 fastpathTV.EncMapFloat32Int32V(rv2i(rv).(map[float32]int32), e)
5639 }
5640 func (_ fastpathT) EncMapFloat32Int32V(v map[float32]int32, e *Encoder) {
5641 ee, esep := e.e, e.hh.hasElemSeparators()
5642 ee.WriteMapStart(len(v))
5643 if e.h.Canonical {
5644 v2 := make([]float64, len(v))
5645 var i int
5646 for k, _ := range v {
5647 v2[i] = float64(k)
5648 i++
5649 }
5650 sort.Sort(floatSlice(v2))
5651 for _, k2 := range v2 {
5652 if esep {
5653 ee.WriteMapElemKey()
5654 }
5655 ee.EncodeFloat32(float32(k2))
5656 if esep {
5657 ee.WriteMapElemValue()
5658 }
5659 ee.EncodeInt(int64(v[float32(k2)]))
5660 }
5661 } else {
5662 for k2, v2 := range v {
5663 if esep {
5664 ee.WriteMapElemKey()
5665 }
5666 ee.EncodeFloat32(k2)
5667 if esep {
5668 ee.WriteMapElemValue()
5669 }
5670 ee.EncodeInt(int64(v2))
5671 }
5672 }
5673 ee.WriteMapEnd()
5674 }
5675
5676 func (e *Encoder) fastpathEncMapFloat32Int64R(f *codecFnInfo, rv reflect.Value) {
5677 fastpathTV.EncMapFloat32Int64V(rv2i(rv).(map[float32]int64), e)
5678 }
5679 func (_ fastpathT) EncMapFloat32Int64V(v map[float32]int64, e *Encoder) {
5680 ee, esep := e.e, e.hh.hasElemSeparators()
5681 ee.WriteMapStart(len(v))
5682 if e.h.Canonical {
5683 v2 := make([]float64, len(v))
5684 var i int
5685 for k, _ := range v {
5686 v2[i] = float64(k)
5687 i++
5688 }
5689 sort.Sort(floatSlice(v2))
5690 for _, k2 := range v2 {
5691 if esep {
5692 ee.WriteMapElemKey()
5693 }
5694 ee.EncodeFloat32(float32(k2))
5695 if esep {
5696 ee.WriteMapElemValue()
5697 }
5698 ee.EncodeInt(int64(v[float32(k2)]))
5699 }
5700 } else {
5701 for k2, v2 := range v {
5702 if esep {
5703 ee.WriteMapElemKey()
5704 }
5705 ee.EncodeFloat32(k2)
5706 if esep {
5707 ee.WriteMapElemValue()
5708 }
5709 ee.EncodeInt(int64(v2))
5710 }
5711 }
5712 ee.WriteMapEnd()
5713 }
5714
5715 func (e *Encoder) fastpathEncMapFloat32Float32R(f *codecFnInfo, rv reflect.Value) {
5716 fastpathTV.EncMapFloat32Float32V(rv2i(rv).(map[float32]float32), e)
5717 }
5718 func (_ fastpathT) EncMapFloat32Float32V(v map[float32]float32, e *Encoder) {
5719 ee, esep := e.e, e.hh.hasElemSeparators()
5720 ee.WriteMapStart(len(v))
5721 if e.h.Canonical {
5722 v2 := make([]float64, len(v))
5723 var i int
5724 for k, _ := range v {
5725 v2[i] = float64(k)
5726 i++
5727 }
5728 sort.Sort(floatSlice(v2))
5729 for _, k2 := range v2 {
5730 if esep {
5731 ee.WriteMapElemKey()
5732 }
5733 ee.EncodeFloat32(float32(k2))
5734 if esep {
5735 ee.WriteMapElemValue()
5736 }
5737 ee.EncodeFloat32(v[float32(k2)])
5738 }
5739 } else {
5740 for k2, v2 := range v {
5741 if esep {
5742 ee.WriteMapElemKey()
5743 }
5744 ee.EncodeFloat32(k2)
5745 if esep {
5746 ee.WriteMapElemValue()
5747 }
5748 ee.EncodeFloat32(v2)
5749 }
5750 }
5751 ee.WriteMapEnd()
5752 }
5753
5754 func (e *Encoder) fastpathEncMapFloat32Float64R(f *codecFnInfo, rv reflect.Value) {
5755 fastpathTV.EncMapFloat32Float64V(rv2i(rv).(map[float32]float64), e)
5756 }
5757 func (_ fastpathT) EncMapFloat32Float64V(v map[float32]float64, e *Encoder) {
5758 ee, esep := e.e, e.hh.hasElemSeparators()
5759 ee.WriteMapStart(len(v))
5760 if e.h.Canonical {
5761 v2 := make([]float64, len(v))
5762 var i int
5763 for k, _ := range v {
5764 v2[i] = float64(k)
5765 i++
5766 }
5767 sort.Sort(floatSlice(v2))
5768 for _, k2 := range v2 {
5769 if esep {
5770 ee.WriteMapElemKey()
5771 }
5772 ee.EncodeFloat32(float32(k2))
5773 if esep {
5774 ee.WriteMapElemValue()
5775 }
5776 ee.EncodeFloat64(v[float32(k2)])
5777 }
5778 } else {
5779 for k2, v2 := range v {
5780 if esep {
5781 ee.WriteMapElemKey()
5782 }
5783 ee.EncodeFloat32(k2)
5784 if esep {
5785 ee.WriteMapElemValue()
5786 }
5787 ee.EncodeFloat64(v2)
5788 }
5789 }
5790 ee.WriteMapEnd()
5791 }
5792
5793 func (e *Encoder) fastpathEncMapFloat32BoolR(f *codecFnInfo, rv reflect.Value) {
5794 fastpathTV.EncMapFloat32BoolV(rv2i(rv).(map[float32]bool), e)
5795 }
5796 func (_ fastpathT) EncMapFloat32BoolV(v map[float32]bool, e *Encoder) {
5797 ee, esep := e.e, e.hh.hasElemSeparators()
5798 ee.WriteMapStart(len(v))
5799 if e.h.Canonical {
5800 v2 := make([]float64, len(v))
5801 var i int
5802 for k, _ := range v {
5803 v2[i] = float64(k)
5804 i++
5805 }
5806 sort.Sort(floatSlice(v2))
5807 for _, k2 := range v2 {
5808 if esep {
5809 ee.WriteMapElemKey()
5810 }
5811 ee.EncodeFloat32(float32(k2))
5812 if esep {
5813 ee.WriteMapElemValue()
5814 }
5815 ee.EncodeBool(v[float32(k2)])
5816 }
5817 } else {
5818 for k2, v2 := range v {
5819 if esep {
5820 ee.WriteMapElemKey()
5821 }
5822 ee.EncodeFloat32(k2)
5823 if esep {
5824 ee.WriteMapElemValue()
5825 }
5826 ee.EncodeBool(v2)
5827 }
5828 }
5829 ee.WriteMapEnd()
5830 }
5831
5832 func (e *Encoder) fastpathEncMapFloat64IntfR(f *codecFnInfo, rv reflect.Value) {
5833 fastpathTV.EncMapFloat64IntfV(rv2i(rv).(map[float64]interface{}), e)
5834 }
5835 func (_ fastpathT) EncMapFloat64IntfV(v map[float64]interface{}, e *Encoder) {
5836 ee, esep := e.e, e.hh.hasElemSeparators()
5837 ee.WriteMapStart(len(v))
5838 if e.h.Canonical {
5839 v2 := make([]float64, len(v))
5840 var i int
5841 for k, _ := range v {
5842 v2[i] = float64(k)
5843 i++
5844 }
5845 sort.Sort(floatSlice(v2))
5846 for _, k2 := range v2 {
5847 if esep {
5848 ee.WriteMapElemKey()
5849 }
5850 ee.EncodeFloat64(float64(k2))
5851 if esep {
5852 ee.WriteMapElemValue()
5853 }
5854 e.encode(v[float64(k2)])
5855 }
5856 } else {
5857 for k2, v2 := range v {
5858 if esep {
5859 ee.WriteMapElemKey()
5860 }
5861 ee.EncodeFloat64(k2)
5862 if esep {
5863 ee.WriteMapElemValue()
5864 }
5865 e.encode(v2)
5866 }
5867 }
5868 ee.WriteMapEnd()
5869 }
5870
5871 func (e *Encoder) fastpathEncMapFloat64StringR(f *codecFnInfo, rv reflect.Value) {
5872 fastpathTV.EncMapFloat64StringV(rv2i(rv).(map[float64]string), e)
5873 }
5874 func (_ fastpathT) EncMapFloat64StringV(v map[float64]string, e *Encoder) {
5875 ee, esep := e.e, e.hh.hasElemSeparators()
5876 ee.WriteMapStart(len(v))
5877 if e.h.Canonical {
5878 v2 := make([]float64, len(v))
5879 var i int
5880 for k, _ := range v {
5881 v2[i] = float64(k)
5882 i++
5883 }
5884 sort.Sort(floatSlice(v2))
5885 for _, k2 := range v2 {
5886 if esep {
5887 ee.WriteMapElemKey()
5888 }
5889 ee.EncodeFloat64(float64(k2))
5890 if esep {
5891 ee.WriteMapElemValue()
5892 }
5893 ee.EncodeString(c_UTF8, v[float64(k2)])
5894 }
5895 } else {
5896 for k2, v2 := range v {
5897 if esep {
5898 ee.WriteMapElemKey()
5899 }
5900 ee.EncodeFloat64(k2)
5901 if esep {
5902 ee.WriteMapElemValue()
5903 }
5904 ee.EncodeString(c_UTF8, v2)
5905 }
5906 }
5907 ee.WriteMapEnd()
5908 }
5909
5910 func (e *Encoder) fastpathEncMapFloat64UintR(f *codecFnInfo, rv reflect.Value) {
5911 fastpathTV.EncMapFloat64UintV(rv2i(rv).(map[float64]uint), e)
5912 }
5913 func (_ fastpathT) EncMapFloat64UintV(v map[float64]uint, e *Encoder) {
5914 ee, esep := e.e, e.hh.hasElemSeparators()
5915 ee.WriteMapStart(len(v))
5916 if e.h.Canonical {
5917 v2 := make([]float64, len(v))
5918 var i int
5919 for k, _ := range v {
5920 v2[i] = float64(k)
5921 i++
5922 }
5923 sort.Sort(floatSlice(v2))
5924 for _, k2 := range v2 {
5925 if esep {
5926 ee.WriteMapElemKey()
5927 }
5928 ee.EncodeFloat64(float64(k2))
5929 if esep {
5930 ee.WriteMapElemValue()
5931 }
5932 ee.EncodeUint(uint64(v[float64(k2)]))
5933 }
5934 } else {
5935 for k2, v2 := range v {
5936 if esep {
5937 ee.WriteMapElemKey()
5938 }
5939 ee.EncodeFloat64(k2)
5940 if esep {
5941 ee.WriteMapElemValue()
5942 }
5943 ee.EncodeUint(uint64(v2))
5944 }
5945 }
5946 ee.WriteMapEnd()
5947 }
5948
5949 func (e *Encoder) fastpathEncMapFloat64Uint8R(f *codecFnInfo, rv reflect.Value) {
5950 fastpathTV.EncMapFloat64Uint8V(rv2i(rv).(map[float64]uint8), e)
5951 }
5952 func (_ fastpathT) EncMapFloat64Uint8V(v map[float64]uint8, e *Encoder) {
5953 ee, esep := e.e, e.hh.hasElemSeparators()
5954 ee.WriteMapStart(len(v))
5955 if e.h.Canonical {
5956 v2 := make([]float64, len(v))
5957 var i int
5958 for k, _ := range v {
5959 v2[i] = float64(k)
5960 i++
5961 }
5962 sort.Sort(floatSlice(v2))
5963 for _, k2 := range v2 {
5964 if esep {
5965 ee.WriteMapElemKey()
5966 }
5967 ee.EncodeFloat64(float64(k2))
5968 if esep {
5969 ee.WriteMapElemValue()
5970 }
5971 ee.EncodeUint(uint64(v[float64(k2)]))
5972 }
5973 } else {
5974 for k2, v2 := range v {
5975 if esep {
5976 ee.WriteMapElemKey()
5977 }
5978 ee.EncodeFloat64(k2)
5979 if esep {
5980 ee.WriteMapElemValue()
5981 }
5982 ee.EncodeUint(uint64(v2))
5983 }
5984 }
5985 ee.WriteMapEnd()
5986 }
5987
5988 func (e *Encoder) fastpathEncMapFloat64Uint16R(f *codecFnInfo, rv reflect.Value) {
5989 fastpathTV.EncMapFloat64Uint16V(rv2i(rv).(map[float64]uint16), e)
5990 }
5991 func (_ fastpathT) EncMapFloat64Uint16V(v map[float64]uint16, e *Encoder) {
5992 ee, esep := e.e, e.hh.hasElemSeparators()
5993 ee.WriteMapStart(len(v))
5994 if e.h.Canonical {
5995 v2 := make([]float64, len(v))
5996 var i int
5997 for k, _ := range v {
5998 v2[i] = float64(k)
5999 i++
6000 }
6001 sort.Sort(floatSlice(v2))
6002 for _, k2 := range v2 {
6003 if esep {
6004 ee.WriteMapElemKey()
6005 }
6006 ee.EncodeFloat64(float64(k2))
6007 if esep {
6008 ee.WriteMapElemValue()
6009 }
6010 ee.EncodeUint(uint64(v[float64(k2)]))
6011 }
6012 } else {
6013 for k2, v2 := range v {
6014 if esep {
6015 ee.WriteMapElemKey()
6016 }
6017 ee.EncodeFloat64(k2)
6018 if esep {
6019 ee.WriteMapElemValue()
6020 }
6021 ee.EncodeUint(uint64(v2))
6022 }
6023 }
6024 ee.WriteMapEnd()
6025 }
6026
6027 func (e *Encoder) fastpathEncMapFloat64Uint32R(f *codecFnInfo, rv reflect.Value) {
6028 fastpathTV.EncMapFloat64Uint32V(rv2i(rv).(map[float64]uint32), e)
6029 }
6030 func (_ fastpathT) EncMapFloat64Uint32V(v map[float64]uint32, e *Encoder) {
6031 ee, esep := e.e, e.hh.hasElemSeparators()
6032 ee.WriteMapStart(len(v))
6033 if e.h.Canonical {
6034 v2 := make([]float64, len(v))
6035 var i int
6036 for k, _ := range v {
6037 v2[i] = float64(k)
6038 i++
6039 }
6040 sort.Sort(floatSlice(v2))
6041 for _, k2 := range v2 {
6042 if esep {
6043 ee.WriteMapElemKey()
6044 }
6045 ee.EncodeFloat64(float64(k2))
6046 if esep {
6047 ee.WriteMapElemValue()
6048 }
6049 ee.EncodeUint(uint64(v[float64(k2)]))
6050 }
6051 } else {
6052 for k2, v2 := range v {
6053 if esep {
6054 ee.WriteMapElemKey()
6055 }
6056 ee.EncodeFloat64(k2)
6057 if esep {
6058 ee.WriteMapElemValue()
6059 }
6060 ee.EncodeUint(uint64(v2))
6061 }
6062 }
6063 ee.WriteMapEnd()
6064 }
6065
6066 func (e *Encoder) fastpathEncMapFloat64Uint64R(f *codecFnInfo, rv reflect.Value) {
6067 fastpathTV.EncMapFloat64Uint64V(rv2i(rv).(map[float64]uint64), e)
6068 }
6069 func (_ fastpathT) EncMapFloat64Uint64V(v map[float64]uint64, e *Encoder) {
6070 ee, esep := e.e, e.hh.hasElemSeparators()
6071 ee.WriteMapStart(len(v))
6072 if e.h.Canonical {
6073 v2 := make([]float64, len(v))
6074 var i int
6075 for k, _ := range v {
6076 v2[i] = float64(k)
6077 i++
6078 }
6079 sort.Sort(floatSlice(v2))
6080 for _, k2 := range v2 {
6081 if esep {
6082 ee.WriteMapElemKey()
6083 }
6084 ee.EncodeFloat64(float64(k2))
6085 if esep {
6086 ee.WriteMapElemValue()
6087 }
6088 ee.EncodeUint(uint64(v[float64(k2)]))
6089 }
6090 } else {
6091 for k2, v2 := range v {
6092 if esep {
6093 ee.WriteMapElemKey()
6094 }
6095 ee.EncodeFloat64(k2)
6096 if esep {
6097 ee.WriteMapElemValue()
6098 }
6099 ee.EncodeUint(uint64(v2))
6100 }
6101 }
6102 ee.WriteMapEnd()
6103 }
6104
6105 func (e *Encoder) fastpathEncMapFloat64UintptrR(f *codecFnInfo, rv reflect.Value) {
6106 fastpathTV.EncMapFloat64UintptrV(rv2i(rv).(map[float64]uintptr), e)
6107 }
6108 func (_ fastpathT) EncMapFloat64UintptrV(v map[float64]uintptr, e *Encoder) {
6109 ee, esep := e.e, e.hh.hasElemSeparators()
6110 ee.WriteMapStart(len(v))
6111 if e.h.Canonical {
6112 v2 := make([]float64, len(v))
6113 var i int
6114 for k, _ := range v {
6115 v2[i] = float64(k)
6116 i++
6117 }
6118 sort.Sort(floatSlice(v2))
6119 for _, k2 := range v2 {
6120 if esep {
6121 ee.WriteMapElemKey()
6122 }
6123 ee.EncodeFloat64(float64(k2))
6124 if esep {
6125 ee.WriteMapElemValue()
6126 }
6127 e.encode(v[float64(k2)])
6128 }
6129 } else {
6130 for k2, v2 := range v {
6131 if esep {
6132 ee.WriteMapElemKey()
6133 }
6134 ee.EncodeFloat64(k2)
6135 if esep {
6136 ee.WriteMapElemValue()
6137 }
6138 e.encode(v2)
6139 }
6140 }
6141 ee.WriteMapEnd()
6142 }
6143
6144 func (e *Encoder) fastpathEncMapFloat64IntR(f *codecFnInfo, rv reflect.Value) {
6145 fastpathTV.EncMapFloat64IntV(rv2i(rv).(map[float64]int), e)
6146 }
6147 func (_ fastpathT) EncMapFloat64IntV(v map[float64]int, e *Encoder) {
6148 ee, esep := e.e, e.hh.hasElemSeparators()
6149 ee.WriteMapStart(len(v))
6150 if e.h.Canonical {
6151 v2 := make([]float64, len(v))
6152 var i int
6153 for k, _ := range v {
6154 v2[i] = float64(k)
6155 i++
6156 }
6157 sort.Sort(floatSlice(v2))
6158 for _, k2 := range v2 {
6159 if esep {
6160 ee.WriteMapElemKey()
6161 }
6162 ee.EncodeFloat64(float64(k2))
6163 if esep {
6164 ee.WriteMapElemValue()
6165 }
6166 ee.EncodeInt(int64(v[float64(k2)]))
6167 }
6168 } else {
6169 for k2, v2 := range v {
6170 if esep {
6171 ee.WriteMapElemKey()
6172 }
6173 ee.EncodeFloat64(k2)
6174 if esep {
6175 ee.WriteMapElemValue()
6176 }
6177 ee.EncodeInt(int64(v2))
6178 }
6179 }
6180 ee.WriteMapEnd()
6181 }
6182
6183 func (e *Encoder) fastpathEncMapFloat64Int8R(f *codecFnInfo, rv reflect.Value) {
6184 fastpathTV.EncMapFloat64Int8V(rv2i(rv).(map[float64]int8), e)
6185 }
6186 func (_ fastpathT) EncMapFloat64Int8V(v map[float64]int8, e *Encoder) {
6187 ee, esep := e.e, e.hh.hasElemSeparators()
6188 ee.WriteMapStart(len(v))
6189 if e.h.Canonical {
6190 v2 := make([]float64, len(v))
6191 var i int
6192 for k, _ := range v {
6193 v2[i] = float64(k)
6194 i++
6195 }
6196 sort.Sort(floatSlice(v2))
6197 for _, k2 := range v2 {
6198 if esep {
6199 ee.WriteMapElemKey()
6200 }
6201 ee.EncodeFloat64(float64(k2))
6202 if esep {
6203 ee.WriteMapElemValue()
6204 }
6205 ee.EncodeInt(int64(v[float64(k2)]))
6206 }
6207 } else {
6208 for k2, v2 := range v {
6209 if esep {
6210 ee.WriteMapElemKey()
6211 }
6212 ee.EncodeFloat64(k2)
6213 if esep {
6214 ee.WriteMapElemValue()
6215 }
6216 ee.EncodeInt(int64(v2))
6217 }
6218 }
6219 ee.WriteMapEnd()
6220 }
6221
6222 func (e *Encoder) fastpathEncMapFloat64Int16R(f *codecFnInfo, rv reflect.Value) {
6223 fastpathTV.EncMapFloat64Int16V(rv2i(rv).(map[float64]int16), e)
6224 }
6225 func (_ fastpathT) EncMapFloat64Int16V(v map[float64]int16, e *Encoder) {
6226 ee, esep := e.e, e.hh.hasElemSeparators()
6227 ee.WriteMapStart(len(v))
6228 if e.h.Canonical {
6229 v2 := make([]float64, len(v))
6230 var i int
6231 for k, _ := range v {
6232 v2[i] = float64(k)
6233 i++
6234 }
6235 sort.Sort(floatSlice(v2))
6236 for _, k2 := range v2 {
6237 if esep {
6238 ee.WriteMapElemKey()
6239 }
6240 ee.EncodeFloat64(float64(k2))
6241 if esep {
6242 ee.WriteMapElemValue()
6243 }
6244 ee.EncodeInt(int64(v[float64(k2)]))
6245 }
6246 } else {
6247 for k2, v2 := range v {
6248 if esep {
6249 ee.WriteMapElemKey()
6250 }
6251 ee.EncodeFloat64(k2)
6252 if esep {
6253 ee.WriteMapElemValue()
6254 }
6255 ee.EncodeInt(int64(v2))
6256 }
6257 }
6258 ee.WriteMapEnd()
6259 }
6260
6261 func (e *Encoder) fastpathEncMapFloat64Int32R(f *codecFnInfo, rv reflect.Value) {
6262 fastpathTV.EncMapFloat64Int32V(rv2i(rv).(map[float64]int32), e)
6263 }
6264 func (_ fastpathT) EncMapFloat64Int32V(v map[float64]int32, e *Encoder) {
6265 ee, esep := e.e, e.hh.hasElemSeparators()
6266 ee.WriteMapStart(len(v))
6267 if e.h.Canonical {
6268 v2 := make([]float64, len(v))
6269 var i int
6270 for k, _ := range v {
6271 v2[i] = float64(k)
6272 i++
6273 }
6274 sort.Sort(floatSlice(v2))
6275 for _, k2 := range v2 {
6276 if esep {
6277 ee.WriteMapElemKey()
6278 }
6279 ee.EncodeFloat64(float64(k2))
6280 if esep {
6281 ee.WriteMapElemValue()
6282 }
6283 ee.EncodeInt(int64(v[float64(k2)]))
6284 }
6285 } else {
6286 for k2, v2 := range v {
6287 if esep {
6288 ee.WriteMapElemKey()
6289 }
6290 ee.EncodeFloat64(k2)
6291 if esep {
6292 ee.WriteMapElemValue()
6293 }
6294 ee.EncodeInt(int64(v2))
6295 }
6296 }
6297 ee.WriteMapEnd()
6298 }
6299
6300 func (e *Encoder) fastpathEncMapFloat64Int64R(f *codecFnInfo, rv reflect.Value) {
6301 fastpathTV.EncMapFloat64Int64V(rv2i(rv).(map[float64]int64), e)
6302 }
6303 func (_ fastpathT) EncMapFloat64Int64V(v map[float64]int64, e *Encoder) {
6304 ee, esep := e.e, e.hh.hasElemSeparators()
6305 ee.WriteMapStart(len(v))
6306 if e.h.Canonical {
6307 v2 := make([]float64, len(v))
6308 var i int
6309 for k, _ := range v {
6310 v2[i] = float64(k)
6311 i++
6312 }
6313 sort.Sort(floatSlice(v2))
6314 for _, k2 := range v2 {
6315 if esep {
6316 ee.WriteMapElemKey()
6317 }
6318 ee.EncodeFloat64(float64(k2))
6319 if esep {
6320 ee.WriteMapElemValue()
6321 }
6322 ee.EncodeInt(int64(v[float64(k2)]))
6323 }
6324 } else {
6325 for k2, v2 := range v {
6326 if esep {
6327 ee.WriteMapElemKey()
6328 }
6329 ee.EncodeFloat64(k2)
6330 if esep {
6331 ee.WriteMapElemValue()
6332 }
6333 ee.EncodeInt(int64(v2))
6334 }
6335 }
6336 ee.WriteMapEnd()
6337 }
6338
6339 func (e *Encoder) fastpathEncMapFloat64Float32R(f *codecFnInfo, rv reflect.Value) {
6340 fastpathTV.EncMapFloat64Float32V(rv2i(rv).(map[float64]float32), e)
6341 }
6342 func (_ fastpathT) EncMapFloat64Float32V(v map[float64]float32, e *Encoder) {
6343 ee, esep := e.e, e.hh.hasElemSeparators()
6344 ee.WriteMapStart(len(v))
6345 if e.h.Canonical {
6346 v2 := make([]float64, len(v))
6347 var i int
6348 for k, _ := range v {
6349 v2[i] = float64(k)
6350 i++
6351 }
6352 sort.Sort(floatSlice(v2))
6353 for _, k2 := range v2 {
6354 if esep {
6355 ee.WriteMapElemKey()
6356 }
6357 ee.EncodeFloat64(float64(k2))
6358 if esep {
6359 ee.WriteMapElemValue()
6360 }
6361 ee.EncodeFloat32(v[float64(k2)])
6362 }
6363 } else {
6364 for k2, v2 := range v {
6365 if esep {
6366 ee.WriteMapElemKey()
6367 }
6368 ee.EncodeFloat64(k2)
6369 if esep {
6370 ee.WriteMapElemValue()
6371 }
6372 ee.EncodeFloat32(v2)
6373 }
6374 }
6375 ee.WriteMapEnd()
6376 }
6377
6378 func (e *Encoder) fastpathEncMapFloat64Float64R(f *codecFnInfo, rv reflect.Value) {
6379 fastpathTV.EncMapFloat64Float64V(rv2i(rv).(map[float64]float64), e)
6380 }
6381 func (_ fastpathT) EncMapFloat64Float64V(v map[float64]float64, e *Encoder) {
6382 ee, esep := e.e, e.hh.hasElemSeparators()
6383 ee.WriteMapStart(len(v))
6384 if e.h.Canonical {
6385 v2 := make([]float64, len(v))
6386 var i int
6387 for k, _ := range v {
6388 v2[i] = float64(k)
6389 i++
6390 }
6391 sort.Sort(floatSlice(v2))
6392 for _, k2 := range v2 {
6393 if esep {
6394 ee.WriteMapElemKey()
6395 }
6396 ee.EncodeFloat64(float64(k2))
6397 if esep {
6398 ee.WriteMapElemValue()
6399 }
6400 ee.EncodeFloat64(v[float64(k2)])
6401 }
6402 } else {
6403 for k2, v2 := range v {
6404 if esep {
6405 ee.WriteMapElemKey()
6406 }
6407 ee.EncodeFloat64(k2)
6408 if esep {
6409 ee.WriteMapElemValue()
6410 }
6411 ee.EncodeFloat64(v2)
6412 }
6413 }
6414 ee.WriteMapEnd()
6415 }
6416
6417 func (e *Encoder) fastpathEncMapFloat64BoolR(f *codecFnInfo, rv reflect.Value) {
6418 fastpathTV.EncMapFloat64BoolV(rv2i(rv).(map[float64]bool), e)
6419 }
6420 func (_ fastpathT) EncMapFloat64BoolV(v map[float64]bool, e *Encoder) {
6421 ee, esep := e.e, e.hh.hasElemSeparators()
6422 ee.WriteMapStart(len(v))
6423 if e.h.Canonical {
6424 v2 := make([]float64, len(v))
6425 var i int
6426 for k, _ := range v {
6427 v2[i] = float64(k)
6428 i++
6429 }
6430 sort.Sort(floatSlice(v2))
6431 for _, k2 := range v2 {
6432 if esep {
6433 ee.WriteMapElemKey()
6434 }
6435 ee.EncodeFloat64(float64(k2))
6436 if esep {
6437 ee.WriteMapElemValue()
6438 }
6439 ee.EncodeBool(v[float64(k2)])
6440 }
6441 } else {
6442 for k2, v2 := range v {
6443 if esep {
6444 ee.WriteMapElemKey()
6445 }
6446 ee.EncodeFloat64(k2)
6447 if esep {
6448 ee.WriteMapElemValue()
6449 }
6450 ee.EncodeBool(v2)
6451 }
6452 }
6453 ee.WriteMapEnd()
6454 }
6455
6456 func (e *Encoder) fastpathEncMapUintIntfR(f *codecFnInfo, rv reflect.Value) {
6457 fastpathTV.EncMapUintIntfV(rv2i(rv).(map[uint]interface{}), e)
6458 }
6459 func (_ fastpathT) EncMapUintIntfV(v map[uint]interface{}, e *Encoder) {
6460 ee, esep := e.e, e.hh.hasElemSeparators()
6461 ee.WriteMapStart(len(v))
6462 if e.h.Canonical {
6463 v2 := make([]uint64, len(v))
6464 var i int
6465 for k, _ := range v {
6466 v2[i] = uint64(k)
6467 i++
6468 }
6469 sort.Sort(uintSlice(v2))
6470 for _, k2 := range v2 {
6471 if esep {
6472 ee.WriteMapElemKey()
6473 }
6474 ee.EncodeUint(uint64(uint(k2)))
6475 if esep {
6476 ee.WriteMapElemValue()
6477 }
6478 e.encode(v[uint(k2)])
6479 }
6480 } else {
6481 for k2, v2 := range v {
6482 if esep {
6483 ee.WriteMapElemKey()
6484 }
6485 ee.EncodeUint(uint64(k2))
6486 if esep {
6487 ee.WriteMapElemValue()
6488 }
6489 e.encode(v2)
6490 }
6491 }
6492 ee.WriteMapEnd()
6493 }
6494
6495 func (e *Encoder) fastpathEncMapUintStringR(f *codecFnInfo, rv reflect.Value) {
6496 fastpathTV.EncMapUintStringV(rv2i(rv).(map[uint]string), e)
6497 }
6498 func (_ fastpathT) EncMapUintStringV(v map[uint]string, e *Encoder) {
6499 ee, esep := e.e, e.hh.hasElemSeparators()
6500 ee.WriteMapStart(len(v))
6501 if e.h.Canonical {
6502 v2 := make([]uint64, len(v))
6503 var i int
6504 for k, _ := range v {
6505 v2[i] = uint64(k)
6506 i++
6507 }
6508 sort.Sort(uintSlice(v2))
6509 for _, k2 := range v2 {
6510 if esep {
6511 ee.WriteMapElemKey()
6512 }
6513 ee.EncodeUint(uint64(uint(k2)))
6514 if esep {
6515 ee.WriteMapElemValue()
6516 }
6517 ee.EncodeString(c_UTF8, v[uint(k2)])
6518 }
6519 } else {
6520 for k2, v2 := range v {
6521 if esep {
6522 ee.WriteMapElemKey()
6523 }
6524 ee.EncodeUint(uint64(k2))
6525 if esep {
6526 ee.WriteMapElemValue()
6527 }
6528 ee.EncodeString(c_UTF8, v2)
6529 }
6530 }
6531 ee.WriteMapEnd()
6532 }
6533
6534 func (e *Encoder) fastpathEncMapUintUintR(f *codecFnInfo, rv reflect.Value) {
6535 fastpathTV.EncMapUintUintV(rv2i(rv).(map[uint]uint), e)
6536 }
6537 func (_ fastpathT) EncMapUintUintV(v map[uint]uint, e *Encoder) {
6538 ee, esep := e.e, e.hh.hasElemSeparators()
6539 ee.WriteMapStart(len(v))
6540 if e.h.Canonical {
6541 v2 := make([]uint64, len(v))
6542 var i int
6543 for k, _ := range v {
6544 v2[i] = uint64(k)
6545 i++
6546 }
6547 sort.Sort(uintSlice(v2))
6548 for _, k2 := range v2 {
6549 if esep {
6550 ee.WriteMapElemKey()
6551 }
6552 ee.EncodeUint(uint64(uint(k2)))
6553 if esep {
6554 ee.WriteMapElemValue()
6555 }
6556 ee.EncodeUint(uint64(v[uint(k2)]))
6557 }
6558 } else {
6559 for k2, v2 := range v {
6560 if esep {
6561 ee.WriteMapElemKey()
6562 }
6563 ee.EncodeUint(uint64(k2))
6564 if esep {
6565 ee.WriteMapElemValue()
6566 }
6567 ee.EncodeUint(uint64(v2))
6568 }
6569 }
6570 ee.WriteMapEnd()
6571 }
6572
6573 func (e *Encoder) fastpathEncMapUintUint8R(f *codecFnInfo, rv reflect.Value) {
6574 fastpathTV.EncMapUintUint8V(rv2i(rv).(map[uint]uint8), e)
6575 }
6576 func (_ fastpathT) EncMapUintUint8V(v map[uint]uint8, e *Encoder) {
6577 ee, esep := e.e, e.hh.hasElemSeparators()
6578 ee.WriteMapStart(len(v))
6579 if e.h.Canonical {
6580 v2 := make([]uint64, len(v))
6581 var i int
6582 for k, _ := range v {
6583 v2[i] = uint64(k)
6584 i++
6585 }
6586 sort.Sort(uintSlice(v2))
6587 for _, k2 := range v2 {
6588 if esep {
6589 ee.WriteMapElemKey()
6590 }
6591 ee.EncodeUint(uint64(uint(k2)))
6592 if esep {
6593 ee.WriteMapElemValue()
6594 }
6595 ee.EncodeUint(uint64(v[uint(k2)]))
6596 }
6597 } else {
6598 for k2, v2 := range v {
6599 if esep {
6600 ee.WriteMapElemKey()
6601 }
6602 ee.EncodeUint(uint64(k2))
6603 if esep {
6604 ee.WriteMapElemValue()
6605 }
6606 ee.EncodeUint(uint64(v2))
6607 }
6608 }
6609 ee.WriteMapEnd()
6610 }
6611
6612 func (e *Encoder) fastpathEncMapUintUint16R(f *codecFnInfo, rv reflect.Value) {
6613 fastpathTV.EncMapUintUint16V(rv2i(rv).(map[uint]uint16), e)
6614 }
6615 func (_ fastpathT) EncMapUintUint16V(v map[uint]uint16, e *Encoder) {
6616 ee, esep := e.e, e.hh.hasElemSeparators()
6617 ee.WriteMapStart(len(v))
6618 if e.h.Canonical {
6619 v2 := make([]uint64, len(v))
6620 var i int
6621 for k, _ := range v {
6622 v2[i] = uint64(k)
6623 i++
6624 }
6625 sort.Sort(uintSlice(v2))
6626 for _, k2 := range v2 {
6627 if esep {
6628 ee.WriteMapElemKey()
6629 }
6630 ee.EncodeUint(uint64(uint(k2)))
6631 if esep {
6632 ee.WriteMapElemValue()
6633 }
6634 ee.EncodeUint(uint64(v[uint(k2)]))
6635 }
6636 } else {
6637 for k2, v2 := range v {
6638 if esep {
6639 ee.WriteMapElemKey()
6640 }
6641 ee.EncodeUint(uint64(k2))
6642 if esep {
6643 ee.WriteMapElemValue()
6644 }
6645 ee.EncodeUint(uint64(v2))
6646 }
6647 }
6648 ee.WriteMapEnd()
6649 }
6650
6651 func (e *Encoder) fastpathEncMapUintUint32R(f *codecFnInfo, rv reflect.Value) {
6652 fastpathTV.EncMapUintUint32V(rv2i(rv).(map[uint]uint32), e)
6653 }
6654 func (_ fastpathT) EncMapUintUint32V(v map[uint]uint32, e *Encoder) {
6655 ee, esep := e.e, e.hh.hasElemSeparators()
6656 ee.WriteMapStart(len(v))
6657 if e.h.Canonical {
6658 v2 := make([]uint64, len(v))
6659 var i int
6660 for k, _ := range v {
6661 v2[i] = uint64(k)
6662 i++
6663 }
6664 sort.Sort(uintSlice(v2))
6665 for _, k2 := range v2 {
6666 if esep {
6667 ee.WriteMapElemKey()
6668 }
6669 ee.EncodeUint(uint64(uint(k2)))
6670 if esep {
6671 ee.WriteMapElemValue()
6672 }
6673 ee.EncodeUint(uint64(v[uint(k2)]))
6674 }
6675 } else {
6676 for k2, v2 := range v {
6677 if esep {
6678 ee.WriteMapElemKey()
6679 }
6680 ee.EncodeUint(uint64(k2))
6681 if esep {
6682 ee.WriteMapElemValue()
6683 }
6684 ee.EncodeUint(uint64(v2))
6685 }
6686 }
6687 ee.WriteMapEnd()
6688 }
6689
6690 func (e *Encoder) fastpathEncMapUintUint64R(f *codecFnInfo, rv reflect.Value) {
6691 fastpathTV.EncMapUintUint64V(rv2i(rv).(map[uint]uint64), e)
6692 }
6693 func (_ fastpathT) EncMapUintUint64V(v map[uint]uint64, e *Encoder) {
6694 ee, esep := e.e, e.hh.hasElemSeparators()
6695 ee.WriteMapStart(len(v))
6696 if e.h.Canonical {
6697 v2 := make([]uint64, len(v))
6698 var i int
6699 for k, _ := range v {
6700 v2[i] = uint64(k)
6701 i++
6702 }
6703 sort.Sort(uintSlice(v2))
6704 for _, k2 := range v2 {
6705 if esep {
6706 ee.WriteMapElemKey()
6707 }
6708 ee.EncodeUint(uint64(uint(k2)))
6709 if esep {
6710 ee.WriteMapElemValue()
6711 }
6712 ee.EncodeUint(uint64(v[uint(k2)]))
6713 }
6714 } else {
6715 for k2, v2 := range v {
6716 if esep {
6717 ee.WriteMapElemKey()
6718 }
6719 ee.EncodeUint(uint64(k2))
6720 if esep {
6721 ee.WriteMapElemValue()
6722 }
6723 ee.EncodeUint(uint64(v2))
6724 }
6725 }
6726 ee.WriteMapEnd()
6727 }
6728
6729 func (e *Encoder) fastpathEncMapUintUintptrR(f *codecFnInfo, rv reflect.Value) {
6730 fastpathTV.EncMapUintUintptrV(rv2i(rv).(map[uint]uintptr), e)
6731 }
6732 func (_ fastpathT) EncMapUintUintptrV(v map[uint]uintptr, e *Encoder) {
6733 ee, esep := e.e, e.hh.hasElemSeparators()
6734 ee.WriteMapStart(len(v))
6735 if e.h.Canonical {
6736 v2 := make([]uint64, len(v))
6737 var i int
6738 for k, _ := range v {
6739 v2[i] = uint64(k)
6740 i++
6741 }
6742 sort.Sort(uintSlice(v2))
6743 for _, k2 := range v2 {
6744 if esep {
6745 ee.WriteMapElemKey()
6746 }
6747 ee.EncodeUint(uint64(uint(k2)))
6748 if esep {
6749 ee.WriteMapElemValue()
6750 }
6751 e.encode(v[uint(k2)])
6752 }
6753 } else {
6754 for k2, v2 := range v {
6755 if esep {
6756 ee.WriteMapElemKey()
6757 }
6758 ee.EncodeUint(uint64(k2))
6759 if esep {
6760 ee.WriteMapElemValue()
6761 }
6762 e.encode(v2)
6763 }
6764 }
6765 ee.WriteMapEnd()
6766 }
6767
6768 func (e *Encoder) fastpathEncMapUintIntR(f *codecFnInfo, rv reflect.Value) {
6769 fastpathTV.EncMapUintIntV(rv2i(rv).(map[uint]int), e)
6770 }
6771 func (_ fastpathT) EncMapUintIntV(v map[uint]int, e *Encoder) {
6772 ee, esep := e.e, e.hh.hasElemSeparators()
6773 ee.WriteMapStart(len(v))
6774 if e.h.Canonical {
6775 v2 := make([]uint64, len(v))
6776 var i int
6777 for k, _ := range v {
6778 v2[i] = uint64(k)
6779 i++
6780 }
6781 sort.Sort(uintSlice(v2))
6782 for _, k2 := range v2 {
6783 if esep {
6784 ee.WriteMapElemKey()
6785 }
6786 ee.EncodeUint(uint64(uint(k2)))
6787 if esep {
6788 ee.WriteMapElemValue()
6789 }
6790 ee.EncodeInt(int64(v[uint(k2)]))
6791 }
6792 } else {
6793 for k2, v2 := range v {
6794 if esep {
6795 ee.WriteMapElemKey()
6796 }
6797 ee.EncodeUint(uint64(k2))
6798 if esep {
6799 ee.WriteMapElemValue()
6800 }
6801 ee.EncodeInt(int64(v2))
6802 }
6803 }
6804 ee.WriteMapEnd()
6805 }
6806
6807 func (e *Encoder) fastpathEncMapUintInt8R(f *codecFnInfo, rv reflect.Value) {
6808 fastpathTV.EncMapUintInt8V(rv2i(rv).(map[uint]int8), e)
6809 }
6810 func (_ fastpathT) EncMapUintInt8V(v map[uint]int8, e *Encoder) {
6811 ee, esep := e.e, e.hh.hasElemSeparators()
6812 ee.WriteMapStart(len(v))
6813 if e.h.Canonical {
6814 v2 := make([]uint64, len(v))
6815 var i int
6816 for k, _ := range v {
6817 v2[i] = uint64(k)
6818 i++
6819 }
6820 sort.Sort(uintSlice(v2))
6821 for _, k2 := range v2 {
6822 if esep {
6823 ee.WriteMapElemKey()
6824 }
6825 ee.EncodeUint(uint64(uint(k2)))
6826 if esep {
6827 ee.WriteMapElemValue()
6828 }
6829 ee.EncodeInt(int64(v[uint(k2)]))
6830 }
6831 } else {
6832 for k2, v2 := range v {
6833 if esep {
6834 ee.WriteMapElemKey()
6835 }
6836 ee.EncodeUint(uint64(k2))
6837 if esep {
6838 ee.WriteMapElemValue()
6839 }
6840 ee.EncodeInt(int64(v2))
6841 }
6842 }
6843 ee.WriteMapEnd()
6844 }
6845
6846 func (e *Encoder) fastpathEncMapUintInt16R(f *codecFnInfo, rv reflect.Value) {
6847 fastpathTV.EncMapUintInt16V(rv2i(rv).(map[uint]int16), e)
6848 }
6849 func (_ fastpathT) EncMapUintInt16V(v map[uint]int16, e *Encoder) {
6850 ee, esep := e.e, e.hh.hasElemSeparators()
6851 ee.WriteMapStart(len(v))
6852 if e.h.Canonical {
6853 v2 := make([]uint64, len(v))
6854 var i int
6855 for k, _ := range v {
6856 v2[i] = uint64(k)
6857 i++
6858 }
6859 sort.Sort(uintSlice(v2))
6860 for _, k2 := range v2 {
6861 if esep {
6862 ee.WriteMapElemKey()
6863 }
6864 ee.EncodeUint(uint64(uint(k2)))
6865 if esep {
6866 ee.WriteMapElemValue()
6867 }
6868 ee.EncodeInt(int64(v[uint(k2)]))
6869 }
6870 } else {
6871 for k2, v2 := range v {
6872 if esep {
6873 ee.WriteMapElemKey()
6874 }
6875 ee.EncodeUint(uint64(k2))
6876 if esep {
6877 ee.WriteMapElemValue()
6878 }
6879 ee.EncodeInt(int64(v2))
6880 }
6881 }
6882 ee.WriteMapEnd()
6883 }
6884
6885 func (e *Encoder) fastpathEncMapUintInt32R(f *codecFnInfo, rv reflect.Value) {
6886 fastpathTV.EncMapUintInt32V(rv2i(rv).(map[uint]int32), e)
6887 }
6888 func (_ fastpathT) EncMapUintInt32V(v map[uint]int32, e *Encoder) {
6889 ee, esep := e.e, e.hh.hasElemSeparators()
6890 ee.WriteMapStart(len(v))
6891 if e.h.Canonical {
6892 v2 := make([]uint64, len(v))
6893 var i int
6894 for k, _ := range v {
6895 v2[i] = uint64(k)
6896 i++
6897 }
6898 sort.Sort(uintSlice(v2))
6899 for _, k2 := range v2 {
6900 if esep {
6901 ee.WriteMapElemKey()
6902 }
6903 ee.EncodeUint(uint64(uint(k2)))
6904 if esep {
6905 ee.WriteMapElemValue()
6906 }
6907 ee.EncodeInt(int64(v[uint(k2)]))
6908 }
6909 } else {
6910 for k2, v2 := range v {
6911 if esep {
6912 ee.WriteMapElemKey()
6913 }
6914 ee.EncodeUint(uint64(k2))
6915 if esep {
6916 ee.WriteMapElemValue()
6917 }
6918 ee.EncodeInt(int64(v2))
6919 }
6920 }
6921 ee.WriteMapEnd()
6922 }
6923
6924 func (e *Encoder) fastpathEncMapUintInt64R(f *codecFnInfo, rv reflect.Value) {
6925 fastpathTV.EncMapUintInt64V(rv2i(rv).(map[uint]int64), e)
6926 }
6927 func (_ fastpathT) EncMapUintInt64V(v map[uint]int64, e *Encoder) {
6928 ee, esep := e.e, e.hh.hasElemSeparators()
6929 ee.WriteMapStart(len(v))
6930 if e.h.Canonical {
6931 v2 := make([]uint64, len(v))
6932 var i int
6933 for k, _ := range v {
6934 v2[i] = uint64(k)
6935 i++
6936 }
6937 sort.Sort(uintSlice(v2))
6938 for _, k2 := range v2 {
6939 if esep {
6940 ee.WriteMapElemKey()
6941 }
6942 ee.EncodeUint(uint64(uint(k2)))
6943 if esep {
6944 ee.WriteMapElemValue()
6945 }
6946 ee.EncodeInt(int64(v[uint(k2)]))
6947 }
6948 } else {
6949 for k2, v2 := range v {
6950 if esep {
6951 ee.WriteMapElemKey()
6952 }
6953 ee.EncodeUint(uint64(k2))
6954 if esep {
6955 ee.WriteMapElemValue()
6956 }
6957 ee.EncodeInt(int64(v2))
6958 }
6959 }
6960 ee.WriteMapEnd()
6961 }
6962
6963 func (e *Encoder) fastpathEncMapUintFloat32R(f *codecFnInfo, rv reflect.Value) {
6964 fastpathTV.EncMapUintFloat32V(rv2i(rv).(map[uint]float32), e)
6965 }
6966 func (_ fastpathT) EncMapUintFloat32V(v map[uint]float32, e *Encoder) {
6967 ee, esep := e.e, e.hh.hasElemSeparators()
6968 ee.WriteMapStart(len(v))
6969 if e.h.Canonical {
6970 v2 := make([]uint64, len(v))
6971 var i int
6972 for k, _ := range v {
6973 v2[i] = uint64(k)
6974 i++
6975 }
6976 sort.Sort(uintSlice(v2))
6977 for _, k2 := range v2 {
6978 if esep {
6979 ee.WriteMapElemKey()
6980 }
6981 ee.EncodeUint(uint64(uint(k2)))
6982 if esep {
6983 ee.WriteMapElemValue()
6984 }
6985 ee.EncodeFloat32(v[uint(k2)])
6986 }
6987 } else {
6988 for k2, v2 := range v {
6989 if esep {
6990 ee.WriteMapElemKey()
6991 }
6992 ee.EncodeUint(uint64(k2))
6993 if esep {
6994 ee.WriteMapElemValue()
6995 }
6996 ee.EncodeFloat32(v2)
6997 }
6998 }
6999 ee.WriteMapEnd()
7000 }
7001
7002 func (e *Encoder) fastpathEncMapUintFloat64R(f *codecFnInfo, rv reflect.Value) {
7003 fastpathTV.EncMapUintFloat64V(rv2i(rv).(map[uint]float64), e)
7004 }
7005 func (_ fastpathT) EncMapUintFloat64V(v map[uint]float64, e *Encoder) {
7006 ee, esep := e.e, e.hh.hasElemSeparators()
7007 ee.WriteMapStart(len(v))
7008 if e.h.Canonical {
7009 v2 := make([]uint64, len(v))
7010 var i int
7011 for k, _ := range v {
7012 v2[i] = uint64(k)
7013 i++
7014 }
7015 sort.Sort(uintSlice(v2))
7016 for _, k2 := range v2 {
7017 if esep {
7018 ee.WriteMapElemKey()
7019 }
7020 ee.EncodeUint(uint64(uint(k2)))
7021 if esep {
7022 ee.WriteMapElemValue()
7023 }
7024 ee.EncodeFloat64(v[uint(k2)])
7025 }
7026 } else {
7027 for k2, v2 := range v {
7028 if esep {
7029 ee.WriteMapElemKey()
7030 }
7031 ee.EncodeUint(uint64(k2))
7032 if esep {
7033 ee.WriteMapElemValue()
7034 }
7035 ee.EncodeFloat64(v2)
7036 }
7037 }
7038 ee.WriteMapEnd()
7039 }
7040
7041 func (e *Encoder) fastpathEncMapUintBoolR(f *codecFnInfo, rv reflect.Value) {
7042 fastpathTV.EncMapUintBoolV(rv2i(rv).(map[uint]bool), e)
7043 }
7044 func (_ fastpathT) EncMapUintBoolV(v map[uint]bool, e *Encoder) {
7045 ee, esep := e.e, e.hh.hasElemSeparators()
7046 ee.WriteMapStart(len(v))
7047 if e.h.Canonical {
7048 v2 := make([]uint64, len(v))
7049 var i int
7050 for k, _ := range v {
7051 v2[i] = uint64(k)
7052 i++
7053 }
7054 sort.Sort(uintSlice(v2))
7055 for _, k2 := range v2 {
7056 if esep {
7057 ee.WriteMapElemKey()
7058 }
7059 ee.EncodeUint(uint64(uint(k2)))
7060 if esep {
7061 ee.WriteMapElemValue()
7062 }
7063 ee.EncodeBool(v[uint(k2)])
7064 }
7065 } else {
7066 for k2, v2 := range v {
7067 if esep {
7068 ee.WriteMapElemKey()
7069 }
7070 ee.EncodeUint(uint64(k2))
7071 if esep {
7072 ee.WriteMapElemValue()
7073 }
7074 ee.EncodeBool(v2)
7075 }
7076 }
7077 ee.WriteMapEnd()
7078 }
7079
7080 func (e *Encoder) fastpathEncMapUint8IntfR(f *codecFnInfo, rv reflect.Value) {
7081 fastpathTV.EncMapUint8IntfV(rv2i(rv).(map[uint8]interface{}), e)
7082 }
7083 func (_ fastpathT) EncMapUint8IntfV(v map[uint8]interface{}, e *Encoder) {
7084 ee, esep := e.e, e.hh.hasElemSeparators()
7085 ee.WriteMapStart(len(v))
7086 if e.h.Canonical {
7087 v2 := make([]uint64, len(v))
7088 var i int
7089 for k, _ := range v {
7090 v2[i] = uint64(k)
7091 i++
7092 }
7093 sort.Sort(uintSlice(v2))
7094 for _, k2 := range v2 {
7095 if esep {
7096 ee.WriteMapElemKey()
7097 }
7098 ee.EncodeUint(uint64(uint8(k2)))
7099 if esep {
7100 ee.WriteMapElemValue()
7101 }
7102 e.encode(v[uint8(k2)])
7103 }
7104 } else {
7105 for k2, v2 := range v {
7106 if esep {
7107 ee.WriteMapElemKey()
7108 }
7109 ee.EncodeUint(uint64(k2))
7110 if esep {
7111 ee.WriteMapElemValue()
7112 }
7113 e.encode(v2)
7114 }
7115 }
7116 ee.WriteMapEnd()
7117 }
7118
7119 func (e *Encoder) fastpathEncMapUint8StringR(f *codecFnInfo, rv reflect.Value) {
7120 fastpathTV.EncMapUint8StringV(rv2i(rv).(map[uint8]string), e)
7121 }
7122 func (_ fastpathT) EncMapUint8StringV(v map[uint8]string, e *Encoder) {
7123 ee, esep := e.e, e.hh.hasElemSeparators()
7124 ee.WriteMapStart(len(v))
7125 if e.h.Canonical {
7126 v2 := make([]uint64, len(v))
7127 var i int
7128 for k, _ := range v {
7129 v2[i] = uint64(k)
7130 i++
7131 }
7132 sort.Sort(uintSlice(v2))
7133 for _, k2 := range v2 {
7134 if esep {
7135 ee.WriteMapElemKey()
7136 }
7137 ee.EncodeUint(uint64(uint8(k2)))
7138 if esep {
7139 ee.WriteMapElemValue()
7140 }
7141 ee.EncodeString(c_UTF8, v[uint8(k2)])
7142 }
7143 } else {
7144 for k2, v2 := range v {
7145 if esep {
7146 ee.WriteMapElemKey()
7147 }
7148 ee.EncodeUint(uint64(k2))
7149 if esep {
7150 ee.WriteMapElemValue()
7151 }
7152 ee.EncodeString(c_UTF8, v2)
7153 }
7154 }
7155 ee.WriteMapEnd()
7156 }
7157
7158 func (e *Encoder) fastpathEncMapUint8UintR(f *codecFnInfo, rv reflect.Value) {
7159 fastpathTV.EncMapUint8UintV(rv2i(rv).(map[uint8]uint), e)
7160 }
7161 func (_ fastpathT) EncMapUint8UintV(v map[uint8]uint, e *Encoder) {
7162 ee, esep := e.e, e.hh.hasElemSeparators()
7163 ee.WriteMapStart(len(v))
7164 if e.h.Canonical {
7165 v2 := make([]uint64, len(v))
7166 var i int
7167 for k, _ := range v {
7168 v2[i] = uint64(k)
7169 i++
7170 }
7171 sort.Sort(uintSlice(v2))
7172 for _, k2 := range v2 {
7173 if esep {
7174 ee.WriteMapElemKey()
7175 }
7176 ee.EncodeUint(uint64(uint8(k2)))
7177 if esep {
7178 ee.WriteMapElemValue()
7179 }
7180 ee.EncodeUint(uint64(v[uint8(k2)]))
7181 }
7182 } else {
7183 for k2, v2 := range v {
7184 if esep {
7185 ee.WriteMapElemKey()
7186 }
7187 ee.EncodeUint(uint64(k2))
7188 if esep {
7189 ee.WriteMapElemValue()
7190 }
7191 ee.EncodeUint(uint64(v2))
7192 }
7193 }
7194 ee.WriteMapEnd()
7195 }
7196
7197 func (e *Encoder) fastpathEncMapUint8Uint8R(f *codecFnInfo, rv reflect.Value) {
7198 fastpathTV.EncMapUint8Uint8V(rv2i(rv).(map[uint8]uint8), e)
7199 }
7200 func (_ fastpathT) EncMapUint8Uint8V(v map[uint8]uint8, e *Encoder) {
7201 ee, esep := e.e, e.hh.hasElemSeparators()
7202 ee.WriteMapStart(len(v))
7203 if e.h.Canonical {
7204 v2 := make([]uint64, len(v))
7205 var i int
7206 for k, _ := range v {
7207 v2[i] = uint64(k)
7208 i++
7209 }
7210 sort.Sort(uintSlice(v2))
7211 for _, k2 := range v2 {
7212 if esep {
7213 ee.WriteMapElemKey()
7214 }
7215 ee.EncodeUint(uint64(uint8(k2)))
7216 if esep {
7217 ee.WriteMapElemValue()
7218 }
7219 ee.EncodeUint(uint64(v[uint8(k2)]))
7220 }
7221 } else {
7222 for k2, v2 := range v {
7223 if esep {
7224 ee.WriteMapElemKey()
7225 }
7226 ee.EncodeUint(uint64(k2))
7227 if esep {
7228 ee.WriteMapElemValue()
7229 }
7230 ee.EncodeUint(uint64(v2))
7231 }
7232 }
7233 ee.WriteMapEnd()
7234 }
7235
7236 func (e *Encoder) fastpathEncMapUint8Uint16R(f *codecFnInfo, rv reflect.Value) {
7237 fastpathTV.EncMapUint8Uint16V(rv2i(rv).(map[uint8]uint16), e)
7238 }
7239 func (_ fastpathT) EncMapUint8Uint16V(v map[uint8]uint16, e *Encoder) {
7240 ee, esep := e.e, e.hh.hasElemSeparators()
7241 ee.WriteMapStart(len(v))
7242 if e.h.Canonical {
7243 v2 := make([]uint64, len(v))
7244 var i int
7245 for k, _ := range v {
7246 v2[i] = uint64(k)
7247 i++
7248 }
7249 sort.Sort(uintSlice(v2))
7250 for _, k2 := range v2 {
7251 if esep {
7252 ee.WriteMapElemKey()
7253 }
7254 ee.EncodeUint(uint64(uint8(k2)))
7255 if esep {
7256 ee.WriteMapElemValue()
7257 }
7258 ee.EncodeUint(uint64(v[uint8(k2)]))
7259 }
7260 } else {
7261 for k2, v2 := range v {
7262 if esep {
7263 ee.WriteMapElemKey()
7264 }
7265 ee.EncodeUint(uint64(k2))
7266 if esep {
7267 ee.WriteMapElemValue()
7268 }
7269 ee.EncodeUint(uint64(v2))
7270 }
7271 }
7272 ee.WriteMapEnd()
7273 }
7274
7275 func (e *Encoder) fastpathEncMapUint8Uint32R(f *codecFnInfo, rv reflect.Value) {
7276 fastpathTV.EncMapUint8Uint32V(rv2i(rv).(map[uint8]uint32), e)
7277 }
7278 func (_ fastpathT) EncMapUint8Uint32V(v map[uint8]uint32, e *Encoder) {
7279 ee, esep := e.e, e.hh.hasElemSeparators()
7280 ee.WriteMapStart(len(v))
7281 if e.h.Canonical {
7282 v2 := make([]uint64, len(v))
7283 var i int
7284 for k, _ := range v {
7285 v2[i] = uint64(k)
7286 i++
7287 }
7288 sort.Sort(uintSlice(v2))
7289 for _, k2 := range v2 {
7290 if esep {
7291 ee.WriteMapElemKey()
7292 }
7293 ee.EncodeUint(uint64(uint8(k2)))
7294 if esep {
7295 ee.WriteMapElemValue()
7296 }
7297 ee.EncodeUint(uint64(v[uint8(k2)]))
7298 }
7299 } else {
7300 for k2, v2 := range v {
7301 if esep {
7302 ee.WriteMapElemKey()
7303 }
7304 ee.EncodeUint(uint64(k2))
7305 if esep {
7306 ee.WriteMapElemValue()
7307 }
7308 ee.EncodeUint(uint64(v2))
7309 }
7310 }
7311 ee.WriteMapEnd()
7312 }
7313
7314 func (e *Encoder) fastpathEncMapUint8Uint64R(f *codecFnInfo, rv reflect.Value) {
7315 fastpathTV.EncMapUint8Uint64V(rv2i(rv).(map[uint8]uint64), e)
7316 }
7317 func (_ fastpathT) EncMapUint8Uint64V(v map[uint8]uint64, e *Encoder) {
7318 ee, esep := e.e, e.hh.hasElemSeparators()
7319 ee.WriteMapStart(len(v))
7320 if e.h.Canonical {
7321 v2 := make([]uint64, len(v))
7322 var i int
7323 for k, _ := range v {
7324 v2[i] = uint64(k)
7325 i++
7326 }
7327 sort.Sort(uintSlice(v2))
7328 for _, k2 := range v2 {
7329 if esep {
7330 ee.WriteMapElemKey()
7331 }
7332 ee.EncodeUint(uint64(uint8(k2)))
7333 if esep {
7334 ee.WriteMapElemValue()
7335 }
7336 ee.EncodeUint(uint64(v[uint8(k2)]))
7337 }
7338 } else {
7339 for k2, v2 := range v {
7340 if esep {
7341 ee.WriteMapElemKey()
7342 }
7343 ee.EncodeUint(uint64(k2))
7344 if esep {
7345 ee.WriteMapElemValue()
7346 }
7347 ee.EncodeUint(uint64(v2))
7348 }
7349 }
7350 ee.WriteMapEnd()
7351 }
7352
7353 func (e *Encoder) fastpathEncMapUint8UintptrR(f *codecFnInfo, rv reflect.Value) {
7354 fastpathTV.EncMapUint8UintptrV(rv2i(rv).(map[uint8]uintptr), e)
7355 }
7356 func (_ fastpathT) EncMapUint8UintptrV(v map[uint8]uintptr, e *Encoder) {
7357 ee, esep := e.e, e.hh.hasElemSeparators()
7358 ee.WriteMapStart(len(v))
7359 if e.h.Canonical {
7360 v2 := make([]uint64, len(v))
7361 var i int
7362 for k, _ := range v {
7363 v2[i] = uint64(k)
7364 i++
7365 }
7366 sort.Sort(uintSlice(v2))
7367 for _, k2 := range v2 {
7368 if esep {
7369 ee.WriteMapElemKey()
7370 }
7371 ee.EncodeUint(uint64(uint8(k2)))
7372 if esep {
7373 ee.WriteMapElemValue()
7374 }
7375 e.encode(v[uint8(k2)])
7376 }
7377 } else {
7378 for k2, v2 := range v {
7379 if esep {
7380 ee.WriteMapElemKey()
7381 }
7382 ee.EncodeUint(uint64(k2))
7383 if esep {
7384 ee.WriteMapElemValue()
7385 }
7386 e.encode(v2)
7387 }
7388 }
7389 ee.WriteMapEnd()
7390 }
7391
7392 func (e *Encoder) fastpathEncMapUint8IntR(f *codecFnInfo, rv reflect.Value) {
7393 fastpathTV.EncMapUint8IntV(rv2i(rv).(map[uint8]int), e)
7394 }
7395 func (_ fastpathT) EncMapUint8IntV(v map[uint8]int, e *Encoder) {
7396 ee, esep := e.e, e.hh.hasElemSeparators()
7397 ee.WriteMapStart(len(v))
7398 if e.h.Canonical {
7399 v2 := make([]uint64, len(v))
7400 var i int
7401 for k, _ := range v {
7402 v2[i] = uint64(k)
7403 i++
7404 }
7405 sort.Sort(uintSlice(v2))
7406 for _, k2 := range v2 {
7407 if esep {
7408 ee.WriteMapElemKey()
7409 }
7410 ee.EncodeUint(uint64(uint8(k2)))
7411 if esep {
7412 ee.WriteMapElemValue()
7413 }
7414 ee.EncodeInt(int64(v[uint8(k2)]))
7415 }
7416 } else {
7417 for k2, v2 := range v {
7418 if esep {
7419 ee.WriteMapElemKey()
7420 }
7421 ee.EncodeUint(uint64(k2))
7422 if esep {
7423 ee.WriteMapElemValue()
7424 }
7425 ee.EncodeInt(int64(v2))
7426 }
7427 }
7428 ee.WriteMapEnd()
7429 }
7430
7431 func (e *Encoder) fastpathEncMapUint8Int8R(f *codecFnInfo, rv reflect.Value) {
7432 fastpathTV.EncMapUint8Int8V(rv2i(rv).(map[uint8]int8), e)
7433 }
7434 func (_ fastpathT) EncMapUint8Int8V(v map[uint8]int8, e *Encoder) {
7435 ee, esep := e.e, e.hh.hasElemSeparators()
7436 ee.WriteMapStart(len(v))
7437 if e.h.Canonical {
7438 v2 := make([]uint64, len(v))
7439 var i int
7440 for k, _ := range v {
7441 v2[i] = uint64(k)
7442 i++
7443 }
7444 sort.Sort(uintSlice(v2))
7445 for _, k2 := range v2 {
7446 if esep {
7447 ee.WriteMapElemKey()
7448 }
7449 ee.EncodeUint(uint64(uint8(k2)))
7450 if esep {
7451 ee.WriteMapElemValue()
7452 }
7453 ee.EncodeInt(int64(v[uint8(k2)]))
7454 }
7455 } else {
7456 for k2, v2 := range v {
7457 if esep {
7458 ee.WriteMapElemKey()
7459 }
7460 ee.EncodeUint(uint64(k2))
7461 if esep {
7462 ee.WriteMapElemValue()
7463 }
7464 ee.EncodeInt(int64(v2))
7465 }
7466 }
7467 ee.WriteMapEnd()
7468 }
7469
7470 func (e *Encoder) fastpathEncMapUint8Int16R(f *codecFnInfo, rv reflect.Value) {
7471 fastpathTV.EncMapUint8Int16V(rv2i(rv).(map[uint8]int16), e)
7472 }
7473 func (_ fastpathT) EncMapUint8Int16V(v map[uint8]int16, e *Encoder) {
7474 ee, esep := e.e, e.hh.hasElemSeparators()
7475 ee.WriteMapStart(len(v))
7476 if e.h.Canonical {
7477 v2 := make([]uint64, len(v))
7478 var i int
7479 for k, _ := range v {
7480 v2[i] = uint64(k)
7481 i++
7482 }
7483 sort.Sort(uintSlice(v2))
7484 for _, k2 := range v2 {
7485 if esep {
7486 ee.WriteMapElemKey()
7487 }
7488 ee.EncodeUint(uint64(uint8(k2)))
7489 if esep {
7490 ee.WriteMapElemValue()
7491 }
7492 ee.EncodeInt(int64(v[uint8(k2)]))
7493 }
7494 } else {
7495 for k2, v2 := range v {
7496 if esep {
7497 ee.WriteMapElemKey()
7498 }
7499 ee.EncodeUint(uint64(k2))
7500 if esep {
7501 ee.WriteMapElemValue()
7502 }
7503 ee.EncodeInt(int64(v2))
7504 }
7505 }
7506 ee.WriteMapEnd()
7507 }
7508
7509 func (e *Encoder) fastpathEncMapUint8Int32R(f *codecFnInfo, rv reflect.Value) {
7510 fastpathTV.EncMapUint8Int32V(rv2i(rv).(map[uint8]int32), e)
7511 }
7512 func (_ fastpathT) EncMapUint8Int32V(v map[uint8]int32, e *Encoder) {
7513 ee, esep := e.e, e.hh.hasElemSeparators()
7514 ee.WriteMapStart(len(v))
7515 if e.h.Canonical {
7516 v2 := make([]uint64, len(v))
7517 var i int
7518 for k, _ := range v {
7519 v2[i] = uint64(k)
7520 i++
7521 }
7522 sort.Sort(uintSlice(v2))
7523 for _, k2 := range v2 {
7524 if esep {
7525 ee.WriteMapElemKey()
7526 }
7527 ee.EncodeUint(uint64(uint8(k2)))
7528 if esep {
7529 ee.WriteMapElemValue()
7530 }
7531 ee.EncodeInt(int64(v[uint8(k2)]))
7532 }
7533 } else {
7534 for k2, v2 := range v {
7535 if esep {
7536 ee.WriteMapElemKey()
7537 }
7538 ee.EncodeUint(uint64(k2))
7539 if esep {
7540 ee.WriteMapElemValue()
7541 }
7542 ee.EncodeInt(int64(v2))
7543 }
7544 }
7545 ee.WriteMapEnd()
7546 }
7547
7548 func (e *Encoder) fastpathEncMapUint8Int64R(f *codecFnInfo, rv reflect.Value) {
7549 fastpathTV.EncMapUint8Int64V(rv2i(rv).(map[uint8]int64), e)
7550 }
7551 func (_ fastpathT) EncMapUint8Int64V(v map[uint8]int64, e *Encoder) {
7552 ee, esep := e.e, e.hh.hasElemSeparators()
7553 ee.WriteMapStart(len(v))
7554 if e.h.Canonical {
7555 v2 := make([]uint64, len(v))
7556 var i int
7557 for k, _ := range v {
7558 v2[i] = uint64(k)
7559 i++
7560 }
7561 sort.Sort(uintSlice(v2))
7562 for _, k2 := range v2 {
7563 if esep {
7564 ee.WriteMapElemKey()
7565 }
7566 ee.EncodeUint(uint64(uint8(k2)))
7567 if esep {
7568 ee.WriteMapElemValue()
7569 }
7570 ee.EncodeInt(int64(v[uint8(k2)]))
7571 }
7572 } else {
7573 for k2, v2 := range v {
7574 if esep {
7575 ee.WriteMapElemKey()
7576 }
7577 ee.EncodeUint(uint64(k2))
7578 if esep {
7579 ee.WriteMapElemValue()
7580 }
7581 ee.EncodeInt(int64(v2))
7582 }
7583 }
7584 ee.WriteMapEnd()
7585 }
7586
7587 func (e *Encoder) fastpathEncMapUint8Float32R(f *codecFnInfo, rv reflect.Value) {
7588 fastpathTV.EncMapUint8Float32V(rv2i(rv).(map[uint8]float32), e)
7589 }
7590 func (_ fastpathT) EncMapUint8Float32V(v map[uint8]float32, e *Encoder) {
7591 ee, esep := e.e, e.hh.hasElemSeparators()
7592 ee.WriteMapStart(len(v))
7593 if e.h.Canonical {
7594 v2 := make([]uint64, len(v))
7595 var i int
7596 for k, _ := range v {
7597 v2[i] = uint64(k)
7598 i++
7599 }
7600 sort.Sort(uintSlice(v2))
7601 for _, k2 := range v2 {
7602 if esep {
7603 ee.WriteMapElemKey()
7604 }
7605 ee.EncodeUint(uint64(uint8(k2)))
7606 if esep {
7607 ee.WriteMapElemValue()
7608 }
7609 ee.EncodeFloat32(v[uint8(k2)])
7610 }
7611 } else {
7612 for k2, v2 := range v {
7613 if esep {
7614 ee.WriteMapElemKey()
7615 }
7616 ee.EncodeUint(uint64(k2))
7617 if esep {
7618 ee.WriteMapElemValue()
7619 }
7620 ee.EncodeFloat32(v2)
7621 }
7622 }
7623 ee.WriteMapEnd()
7624 }
7625
7626 func (e *Encoder) fastpathEncMapUint8Float64R(f *codecFnInfo, rv reflect.Value) {
7627 fastpathTV.EncMapUint8Float64V(rv2i(rv).(map[uint8]float64), e)
7628 }
7629 func (_ fastpathT) EncMapUint8Float64V(v map[uint8]float64, e *Encoder) {
7630 ee, esep := e.e, e.hh.hasElemSeparators()
7631 ee.WriteMapStart(len(v))
7632 if e.h.Canonical {
7633 v2 := make([]uint64, len(v))
7634 var i int
7635 for k, _ := range v {
7636 v2[i] = uint64(k)
7637 i++
7638 }
7639 sort.Sort(uintSlice(v2))
7640 for _, k2 := range v2 {
7641 if esep {
7642 ee.WriteMapElemKey()
7643 }
7644 ee.EncodeUint(uint64(uint8(k2)))
7645 if esep {
7646 ee.WriteMapElemValue()
7647 }
7648 ee.EncodeFloat64(v[uint8(k2)])
7649 }
7650 } else {
7651 for k2, v2 := range v {
7652 if esep {
7653 ee.WriteMapElemKey()
7654 }
7655 ee.EncodeUint(uint64(k2))
7656 if esep {
7657 ee.WriteMapElemValue()
7658 }
7659 ee.EncodeFloat64(v2)
7660 }
7661 }
7662 ee.WriteMapEnd()
7663 }
7664
7665 func (e *Encoder) fastpathEncMapUint8BoolR(f *codecFnInfo, rv reflect.Value) {
7666 fastpathTV.EncMapUint8BoolV(rv2i(rv).(map[uint8]bool), e)
7667 }
7668 func (_ fastpathT) EncMapUint8BoolV(v map[uint8]bool, e *Encoder) {
7669 ee, esep := e.e, e.hh.hasElemSeparators()
7670 ee.WriteMapStart(len(v))
7671 if e.h.Canonical {
7672 v2 := make([]uint64, len(v))
7673 var i int
7674 for k, _ := range v {
7675 v2[i] = uint64(k)
7676 i++
7677 }
7678 sort.Sort(uintSlice(v2))
7679 for _, k2 := range v2 {
7680 if esep {
7681 ee.WriteMapElemKey()
7682 }
7683 ee.EncodeUint(uint64(uint8(k2)))
7684 if esep {
7685 ee.WriteMapElemValue()
7686 }
7687 ee.EncodeBool(v[uint8(k2)])
7688 }
7689 } else {
7690 for k2, v2 := range v {
7691 if esep {
7692 ee.WriteMapElemKey()
7693 }
7694 ee.EncodeUint(uint64(k2))
7695 if esep {
7696 ee.WriteMapElemValue()
7697 }
7698 ee.EncodeBool(v2)
7699 }
7700 }
7701 ee.WriteMapEnd()
7702 }
7703
7704 func (e *Encoder) fastpathEncMapUint16IntfR(f *codecFnInfo, rv reflect.Value) {
7705 fastpathTV.EncMapUint16IntfV(rv2i(rv).(map[uint16]interface{}), e)
7706 }
7707 func (_ fastpathT) EncMapUint16IntfV(v map[uint16]interface{}, e *Encoder) {
7708 ee, esep := e.e, e.hh.hasElemSeparators()
7709 ee.WriteMapStart(len(v))
7710 if e.h.Canonical {
7711 v2 := make([]uint64, len(v))
7712 var i int
7713 for k, _ := range v {
7714 v2[i] = uint64(k)
7715 i++
7716 }
7717 sort.Sort(uintSlice(v2))
7718 for _, k2 := range v2 {
7719 if esep {
7720 ee.WriteMapElemKey()
7721 }
7722 ee.EncodeUint(uint64(uint16(k2)))
7723 if esep {
7724 ee.WriteMapElemValue()
7725 }
7726 e.encode(v[uint16(k2)])
7727 }
7728 } else {
7729 for k2, v2 := range v {
7730 if esep {
7731 ee.WriteMapElemKey()
7732 }
7733 ee.EncodeUint(uint64(k2))
7734 if esep {
7735 ee.WriteMapElemValue()
7736 }
7737 e.encode(v2)
7738 }
7739 }
7740 ee.WriteMapEnd()
7741 }
7742
7743 func (e *Encoder) fastpathEncMapUint16StringR(f *codecFnInfo, rv reflect.Value) {
7744 fastpathTV.EncMapUint16StringV(rv2i(rv).(map[uint16]string), e)
7745 }
7746 func (_ fastpathT) EncMapUint16StringV(v map[uint16]string, e *Encoder) {
7747 ee, esep := e.e, e.hh.hasElemSeparators()
7748 ee.WriteMapStart(len(v))
7749 if e.h.Canonical {
7750 v2 := make([]uint64, len(v))
7751 var i int
7752 for k, _ := range v {
7753 v2[i] = uint64(k)
7754 i++
7755 }
7756 sort.Sort(uintSlice(v2))
7757 for _, k2 := range v2 {
7758 if esep {
7759 ee.WriteMapElemKey()
7760 }
7761 ee.EncodeUint(uint64(uint16(k2)))
7762 if esep {
7763 ee.WriteMapElemValue()
7764 }
7765 ee.EncodeString(c_UTF8, v[uint16(k2)])
7766 }
7767 } else {
7768 for k2, v2 := range v {
7769 if esep {
7770 ee.WriteMapElemKey()
7771 }
7772 ee.EncodeUint(uint64(k2))
7773 if esep {
7774 ee.WriteMapElemValue()
7775 }
7776 ee.EncodeString(c_UTF8, v2)
7777 }
7778 }
7779 ee.WriteMapEnd()
7780 }
7781
7782 func (e *Encoder) fastpathEncMapUint16UintR(f *codecFnInfo, rv reflect.Value) {
7783 fastpathTV.EncMapUint16UintV(rv2i(rv).(map[uint16]uint), e)
7784 }
7785 func (_ fastpathT) EncMapUint16UintV(v map[uint16]uint, e *Encoder) {
7786 ee, esep := e.e, e.hh.hasElemSeparators()
7787 ee.WriteMapStart(len(v))
7788 if e.h.Canonical {
7789 v2 := make([]uint64, len(v))
7790 var i int
7791 for k, _ := range v {
7792 v2[i] = uint64(k)
7793 i++
7794 }
7795 sort.Sort(uintSlice(v2))
7796 for _, k2 := range v2 {
7797 if esep {
7798 ee.WriteMapElemKey()
7799 }
7800 ee.EncodeUint(uint64(uint16(k2)))
7801 if esep {
7802 ee.WriteMapElemValue()
7803 }
7804 ee.EncodeUint(uint64(v[uint16(k2)]))
7805 }
7806 } else {
7807 for k2, v2 := range v {
7808 if esep {
7809 ee.WriteMapElemKey()
7810 }
7811 ee.EncodeUint(uint64(k2))
7812 if esep {
7813 ee.WriteMapElemValue()
7814 }
7815 ee.EncodeUint(uint64(v2))
7816 }
7817 }
7818 ee.WriteMapEnd()
7819 }
7820
7821 func (e *Encoder) fastpathEncMapUint16Uint8R(f *codecFnInfo, rv reflect.Value) {
7822 fastpathTV.EncMapUint16Uint8V(rv2i(rv).(map[uint16]uint8), e)
7823 }
7824 func (_ fastpathT) EncMapUint16Uint8V(v map[uint16]uint8, e *Encoder) {
7825 ee, esep := e.e, e.hh.hasElemSeparators()
7826 ee.WriteMapStart(len(v))
7827 if e.h.Canonical {
7828 v2 := make([]uint64, len(v))
7829 var i int
7830 for k, _ := range v {
7831 v2[i] = uint64(k)
7832 i++
7833 }
7834 sort.Sort(uintSlice(v2))
7835 for _, k2 := range v2 {
7836 if esep {
7837 ee.WriteMapElemKey()
7838 }
7839 ee.EncodeUint(uint64(uint16(k2)))
7840 if esep {
7841 ee.WriteMapElemValue()
7842 }
7843 ee.EncodeUint(uint64(v[uint16(k2)]))
7844 }
7845 } else {
7846 for k2, v2 := range v {
7847 if esep {
7848 ee.WriteMapElemKey()
7849 }
7850 ee.EncodeUint(uint64(k2))
7851 if esep {
7852 ee.WriteMapElemValue()
7853 }
7854 ee.EncodeUint(uint64(v2))
7855 }
7856 }
7857 ee.WriteMapEnd()
7858 }
7859
7860 func (e *Encoder) fastpathEncMapUint16Uint16R(f *codecFnInfo, rv reflect.Value) {
7861 fastpathTV.EncMapUint16Uint16V(rv2i(rv).(map[uint16]uint16), e)
7862 }
7863 func (_ fastpathT) EncMapUint16Uint16V(v map[uint16]uint16, e *Encoder) {
7864 ee, esep := e.e, e.hh.hasElemSeparators()
7865 ee.WriteMapStart(len(v))
7866 if e.h.Canonical {
7867 v2 := make([]uint64, len(v))
7868 var i int
7869 for k, _ := range v {
7870 v2[i] = uint64(k)
7871 i++
7872 }
7873 sort.Sort(uintSlice(v2))
7874 for _, k2 := range v2 {
7875 if esep {
7876 ee.WriteMapElemKey()
7877 }
7878 ee.EncodeUint(uint64(uint16(k2)))
7879 if esep {
7880 ee.WriteMapElemValue()
7881 }
7882 ee.EncodeUint(uint64(v[uint16(k2)]))
7883 }
7884 } else {
7885 for k2, v2 := range v {
7886 if esep {
7887 ee.WriteMapElemKey()
7888 }
7889 ee.EncodeUint(uint64(k2))
7890 if esep {
7891 ee.WriteMapElemValue()
7892 }
7893 ee.EncodeUint(uint64(v2))
7894 }
7895 }
7896 ee.WriteMapEnd()
7897 }
7898
7899 func (e *Encoder) fastpathEncMapUint16Uint32R(f *codecFnInfo, rv reflect.Value) {
7900 fastpathTV.EncMapUint16Uint32V(rv2i(rv).(map[uint16]uint32), e)
7901 }
7902 func (_ fastpathT) EncMapUint16Uint32V(v map[uint16]uint32, e *Encoder) {
7903 ee, esep := e.e, e.hh.hasElemSeparators()
7904 ee.WriteMapStart(len(v))
7905 if e.h.Canonical {
7906 v2 := make([]uint64, len(v))
7907 var i int
7908 for k, _ := range v {
7909 v2[i] = uint64(k)
7910 i++
7911 }
7912 sort.Sort(uintSlice(v2))
7913 for _, k2 := range v2 {
7914 if esep {
7915 ee.WriteMapElemKey()
7916 }
7917 ee.EncodeUint(uint64(uint16(k2)))
7918 if esep {
7919 ee.WriteMapElemValue()
7920 }
7921 ee.EncodeUint(uint64(v[uint16(k2)]))
7922 }
7923 } else {
7924 for k2, v2 := range v {
7925 if esep {
7926 ee.WriteMapElemKey()
7927 }
7928 ee.EncodeUint(uint64(k2))
7929 if esep {
7930 ee.WriteMapElemValue()
7931 }
7932 ee.EncodeUint(uint64(v2))
7933 }
7934 }
7935 ee.WriteMapEnd()
7936 }
7937
7938 func (e *Encoder) fastpathEncMapUint16Uint64R(f *codecFnInfo, rv reflect.Value) {
7939 fastpathTV.EncMapUint16Uint64V(rv2i(rv).(map[uint16]uint64), e)
7940 }
7941 func (_ fastpathT) EncMapUint16Uint64V(v map[uint16]uint64, e *Encoder) {
7942 ee, esep := e.e, e.hh.hasElemSeparators()
7943 ee.WriteMapStart(len(v))
7944 if e.h.Canonical {
7945 v2 := make([]uint64, len(v))
7946 var i int
7947 for k, _ := range v {
7948 v2[i] = uint64(k)
7949 i++
7950 }
7951 sort.Sort(uintSlice(v2))
7952 for _, k2 := range v2 {
7953 if esep {
7954 ee.WriteMapElemKey()
7955 }
7956 ee.EncodeUint(uint64(uint16(k2)))
7957 if esep {
7958 ee.WriteMapElemValue()
7959 }
7960 ee.EncodeUint(uint64(v[uint16(k2)]))
7961 }
7962 } else {
7963 for k2, v2 := range v {
7964 if esep {
7965 ee.WriteMapElemKey()
7966 }
7967 ee.EncodeUint(uint64(k2))
7968 if esep {
7969 ee.WriteMapElemValue()
7970 }
7971 ee.EncodeUint(uint64(v2))
7972 }
7973 }
7974 ee.WriteMapEnd()
7975 }
7976
7977 func (e *Encoder) fastpathEncMapUint16UintptrR(f *codecFnInfo, rv reflect.Value) {
7978 fastpathTV.EncMapUint16UintptrV(rv2i(rv).(map[uint16]uintptr), e)
7979 }
7980 func (_ fastpathT) EncMapUint16UintptrV(v map[uint16]uintptr, e *Encoder) {
7981 ee, esep := e.e, e.hh.hasElemSeparators()
7982 ee.WriteMapStart(len(v))
7983 if e.h.Canonical {
7984 v2 := make([]uint64, len(v))
7985 var i int
7986 for k, _ := range v {
7987 v2[i] = uint64(k)
7988 i++
7989 }
7990 sort.Sort(uintSlice(v2))
7991 for _, k2 := range v2 {
7992 if esep {
7993 ee.WriteMapElemKey()
7994 }
7995 ee.EncodeUint(uint64(uint16(k2)))
7996 if esep {
7997 ee.WriteMapElemValue()
7998 }
7999 e.encode(v[uint16(k2)])
8000 }
8001 } else {
8002 for k2, v2 := range v {
8003 if esep {
8004 ee.WriteMapElemKey()
8005 }
8006 ee.EncodeUint(uint64(k2))
8007 if esep {
8008 ee.WriteMapElemValue()
8009 }
8010 e.encode(v2)
8011 }
8012 }
8013 ee.WriteMapEnd()
8014 }
8015
8016 func (e *Encoder) fastpathEncMapUint16IntR(f *codecFnInfo, rv reflect.Value) {
8017 fastpathTV.EncMapUint16IntV(rv2i(rv).(map[uint16]int), e)
8018 }
8019 func (_ fastpathT) EncMapUint16IntV(v map[uint16]int, e *Encoder) {
8020 ee, esep := e.e, e.hh.hasElemSeparators()
8021 ee.WriteMapStart(len(v))
8022 if e.h.Canonical {
8023 v2 := make([]uint64, len(v))
8024 var i int
8025 for k, _ := range v {
8026 v2[i] = uint64(k)
8027 i++
8028 }
8029 sort.Sort(uintSlice(v2))
8030 for _, k2 := range v2 {
8031 if esep {
8032 ee.WriteMapElemKey()
8033 }
8034 ee.EncodeUint(uint64(uint16(k2)))
8035 if esep {
8036 ee.WriteMapElemValue()
8037 }
8038 ee.EncodeInt(int64(v[uint16(k2)]))
8039 }
8040 } else {
8041 for k2, v2 := range v {
8042 if esep {
8043 ee.WriteMapElemKey()
8044 }
8045 ee.EncodeUint(uint64(k2))
8046 if esep {
8047 ee.WriteMapElemValue()
8048 }
8049 ee.EncodeInt(int64(v2))
8050 }
8051 }
8052 ee.WriteMapEnd()
8053 }
8054
8055 func (e *Encoder) fastpathEncMapUint16Int8R(f *codecFnInfo, rv reflect.Value) {
8056 fastpathTV.EncMapUint16Int8V(rv2i(rv).(map[uint16]int8), e)
8057 }
8058 func (_ fastpathT) EncMapUint16Int8V(v map[uint16]int8, e *Encoder) {
8059 ee, esep := e.e, e.hh.hasElemSeparators()
8060 ee.WriteMapStart(len(v))
8061 if e.h.Canonical {
8062 v2 := make([]uint64, len(v))
8063 var i int
8064 for k, _ := range v {
8065 v2[i] = uint64(k)
8066 i++
8067 }
8068 sort.Sort(uintSlice(v2))
8069 for _, k2 := range v2 {
8070 if esep {
8071 ee.WriteMapElemKey()
8072 }
8073 ee.EncodeUint(uint64(uint16(k2)))
8074 if esep {
8075 ee.WriteMapElemValue()
8076 }
8077 ee.EncodeInt(int64(v[uint16(k2)]))
8078 }
8079 } else {
8080 for k2, v2 := range v {
8081 if esep {
8082 ee.WriteMapElemKey()
8083 }
8084 ee.EncodeUint(uint64(k2))
8085 if esep {
8086 ee.WriteMapElemValue()
8087 }
8088 ee.EncodeInt(int64(v2))
8089 }
8090 }
8091 ee.WriteMapEnd()
8092 }
8093
8094 func (e *Encoder) fastpathEncMapUint16Int16R(f *codecFnInfo, rv reflect.Value) {
8095 fastpathTV.EncMapUint16Int16V(rv2i(rv).(map[uint16]int16), e)
8096 }
8097 func (_ fastpathT) EncMapUint16Int16V(v map[uint16]int16, e *Encoder) {
8098 ee, esep := e.e, e.hh.hasElemSeparators()
8099 ee.WriteMapStart(len(v))
8100 if e.h.Canonical {
8101 v2 := make([]uint64, len(v))
8102 var i int
8103 for k, _ := range v {
8104 v2[i] = uint64(k)
8105 i++
8106 }
8107 sort.Sort(uintSlice(v2))
8108 for _, k2 := range v2 {
8109 if esep {
8110 ee.WriteMapElemKey()
8111 }
8112 ee.EncodeUint(uint64(uint16(k2)))
8113 if esep {
8114 ee.WriteMapElemValue()
8115 }
8116 ee.EncodeInt(int64(v[uint16(k2)]))
8117 }
8118 } else {
8119 for k2, v2 := range v {
8120 if esep {
8121 ee.WriteMapElemKey()
8122 }
8123 ee.EncodeUint(uint64(k2))
8124 if esep {
8125 ee.WriteMapElemValue()
8126 }
8127 ee.EncodeInt(int64(v2))
8128 }
8129 }
8130 ee.WriteMapEnd()
8131 }
8132
8133 func (e *Encoder) fastpathEncMapUint16Int32R(f *codecFnInfo, rv reflect.Value) {
8134 fastpathTV.EncMapUint16Int32V(rv2i(rv).(map[uint16]int32), e)
8135 }
8136 func (_ fastpathT) EncMapUint16Int32V(v map[uint16]int32, e *Encoder) {
8137 ee, esep := e.e, e.hh.hasElemSeparators()
8138 ee.WriteMapStart(len(v))
8139 if e.h.Canonical {
8140 v2 := make([]uint64, len(v))
8141 var i int
8142 for k, _ := range v {
8143 v2[i] = uint64(k)
8144 i++
8145 }
8146 sort.Sort(uintSlice(v2))
8147 for _, k2 := range v2 {
8148 if esep {
8149 ee.WriteMapElemKey()
8150 }
8151 ee.EncodeUint(uint64(uint16(k2)))
8152 if esep {
8153 ee.WriteMapElemValue()
8154 }
8155 ee.EncodeInt(int64(v[uint16(k2)]))
8156 }
8157 } else {
8158 for k2, v2 := range v {
8159 if esep {
8160 ee.WriteMapElemKey()
8161 }
8162 ee.EncodeUint(uint64(k2))
8163 if esep {
8164 ee.WriteMapElemValue()
8165 }
8166 ee.EncodeInt(int64(v2))
8167 }
8168 }
8169 ee.WriteMapEnd()
8170 }
8171
8172 func (e *Encoder) fastpathEncMapUint16Int64R(f *codecFnInfo, rv reflect.Value) {
8173 fastpathTV.EncMapUint16Int64V(rv2i(rv).(map[uint16]int64), e)
8174 }
8175 func (_ fastpathT) EncMapUint16Int64V(v map[uint16]int64, e *Encoder) {
8176 ee, esep := e.e, e.hh.hasElemSeparators()
8177 ee.WriteMapStart(len(v))
8178 if e.h.Canonical {
8179 v2 := make([]uint64, len(v))
8180 var i int
8181 for k, _ := range v {
8182 v2[i] = uint64(k)
8183 i++
8184 }
8185 sort.Sort(uintSlice(v2))
8186 for _, k2 := range v2 {
8187 if esep {
8188 ee.WriteMapElemKey()
8189 }
8190 ee.EncodeUint(uint64(uint16(k2)))
8191 if esep {
8192 ee.WriteMapElemValue()
8193 }
8194 ee.EncodeInt(int64(v[uint16(k2)]))
8195 }
8196 } else {
8197 for k2, v2 := range v {
8198 if esep {
8199 ee.WriteMapElemKey()
8200 }
8201 ee.EncodeUint(uint64(k2))
8202 if esep {
8203 ee.WriteMapElemValue()
8204 }
8205 ee.EncodeInt(int64(v2))
8206 }
8207 }
8208 ee.WriteMapEnd()
8209 }
8210
8211 func (e *Encoder) fastpathEncMapUint16Float32R(f *codecFnInfo, rv reflect.Value) {
8212 fastpathTV.EncMapUint16Float32V(rv2i(rv).(map[uint16]float32), e)
8213 }
8214 func (_ fastpathT) EncMapUint16Float32V(v map[uint16]float32, e *Encoder) {
8215 ee, esep := e.e, e.hh.hasElemSeparators()
8216 ee.WriteMapStart(len(v))
8217 if e.h.Canonical {
8218 v2 := make([]uint64, len(v))
8219 var i int
8220 for k, _ := range v {
8221 v2[i] = uint64(k)
8222 i++
8223 }
8224 sort.Sort(uintSlice(v2))
8225 for _, k2 := range v2 {
8226 if esep {
8227 ee.WriteMapElemKey()
8228 }
8229 ee.EncodeUint(uint64(uint16(k2)))
8230 if esep {
8231 ee.WriteMapElemValue()
8232 }
8233 ee.EncodeFloat32(v[uint16(k2)])
8234 }
8235 } else {
8236 for k2, v2 := range v {
8237 if esep {
8238 ee.WriteMapElemKey()
8239 }
8240 ee.EncodeUint(uint64(k2))
8241 if esep {
8242 ee.WriteMapElemValue()
8243 }
8244 ee.EncodeFloat32(v2)
8245 }
8246 }
8247 ee.WriteMapEnd()
8248 }
8249
8250 func (e *Encoder) fastpathEncMapUint16Float64R(f *codecFnInfo, rv reflect.Value) {
8251 fastpathTV.EncMapUint16Float64V(rv2i(rv).(map[uint16]float64), e)
8252 }
8253 func (_ fastpathT) EncMapUint16Float64V(v map[uint16]float64, e *Encoder) {
8254 ee, esep := e.e, e.hh.hasElemSeparators()
8255 ee.WriteMapStart(len(v))
8256 if e.h.Canonical {
8257 v2 := make([]uint64, len(v))
8258 var i int
8259 for k, _ := range v {
8260 v2[i] = uint64(k)
8261 i++
8262 }
8263 sort.Sort(uintSlice(v2))
8264 for _, k2 := range v2 {
8265 if esep {
8266 ee.WriteMapElemKey()
8267 }
8268 ee.EncodeUint(uint64(uint16(k2)))
8269 if esep {
8270 ee.WriteMapElemValue()
8271 }
8272 ee.EncodeFloat64(v[uint16(k2)])
8273 }
8274 } else {
8275 for k2, v2 := range v {
8276 if esep {
8277 ee.WriteMapElemKey()
8278 }
8279 ee.EncodeUint(uint64(k2))
8280 if esep {
8281 ee.WriteMapElemValue()
8282 }
8283 ee.EncodeFloat64(v2)
8284 }
8285 }
8286 ee.WriteMapEnd()
8287 }
8288
8289 func (e *Encoder) fastpathEncMapUint16BoolR(f *codecFnInfo, rv reflect.Value) {
8290 fastpathTV.EncMapUint16BoolV(rv2i(rv).(map[uint16]bool), e)
8291 }
8292 func (_ fastpathT) EncMapUint16BoolV(v map[uint16]bool, e *Encoder) {
8293 ee, esep := e.e, e.hh.hasElemSeparators()
8294 ee.WriteMapStart(len(v))
8295 if e.h.Canonical {
8296 v2 := make([]uint64, len(v))
8297 var i int
8298 for k, _ := range v {
8299 v2[i] = uint64(k)
8300 i++
8301 }
8302 sort.Sort(uintSlice(v2))
8303 for _, k2 := range v2 {
8304 if esep {
8305 ee.WriteMapElemKey()
8306 }
8307 ee.EncodeUint(uint64(uint16(k2)))
8308 if esep {
8309 ee.WriteMapElemValue()
8310 }
8311 ee.EncodeBool(v[uint16(k2)])
8312 }
8313 } else {
8314 for k2, v2 := range v {
8315 if esep {
8316 ee.WriteMapElemKey()
8317 }
8318 ee.EncodeUint(uint64(k2))
8319 if esep {
8320 ee.WriteMapElemValue()
8321 }
8322 ee.EncodeBool(v2)
8323 }
8324 }
8325 ee.WriteMapEnd()
8326 }
8327
8328 func (e *Encoder) fastpathEncMapUint32IntfR(f *codecFnInfo, rv reflect.Value) {
8329 fastpathTV.EncMapUint32IntfV(rv2i(rv).(map[uint32]interface{}), e)
8330 }
8331 func (_ fastpathT) EncMapUint32IntfV(v map[uint32]interface{}, e *Encoder) {
8332 ee, esep := e.e, e.hh.hasElemSeparators()
8333 ee.WriteMapStart(len(v))
8334 if e.h.Canonical {
8335 v2 := make([]uint64, len(v))
8336 var i int
8337 for k, _ := range v {
8338 v2[i] = uint64(k)
8339 i++
8340 }
8341 sort.Sort(uintSlice(v2))
8342 for _, k2 := range v2 {
8343 if esep {
8344 ee.WriteMapElemKey()
8345 }
8346 ee.EncodeUint(uint64(uint32(k2)))
8347 if esep {
8348 ee.WriteMapElemValue()
8349 }
8350 e.encode(v[uint32(k2)])
8351 }
8352 } else {
8353 for k2, v2 := range v {
8354 if esep {
8355 ee.WriteMapElemKey()
8356 }
8357 ee.EncodeUint(uint64(k2))
8358 if esep {
8359 ee.WriteMapElemValue()
8360 }
8361 e.encode(v2)
8362 }
8363 }
8364 ee.WriteMapEnd()
8365 }
8366
8367 func (e *Encoder) fastpathEncMapUint32StringR(f *codecFnInfo, rv reflect.Value) {
8368 fastpathTV.EncMapUint32StringV(rv2i(rv).(map[uint32]string), e)
8369 }
8370 func (_ fastpathT) EncMapUint32StringV(v map[uint32]string, e *Encoder) {
8371 ee, esep := e.e, e.hh.hasElemSeparators()
8372 ee.WriteMapStart(len(v))
8373 if e.h.Canonical {
8374 v2 := make([]uint64, len(v))
8375 var i int
8376 for k, _ := range v {
8377 v2[i] = uint64(k)
8378 i++
8379 }
8380 sort.Sort(uintSlice(v2))
8381 for _, k2 := range v2 {
8382 if esep {
8383 ee.WriteMapElemKey()
8384 }
8385 ee.EncodeUint(uint64(uint32(k2)))
8386 if esep {
8387 ee.WriteMapElemValue()
8388 }
8389 ee.EncodeString(c_UTF8, v[uint32(k2)])
8390 }
8391 } else {
8392 for k2, v2 := range v {
8393 if esep {
8394 ee.WriteMapElemKey()
8395 }
8396 ee.EncodeUint(uint64(k2))
8397 if esep {
8398 ee.WriteMapElemValue()
8399 }
8400 ee.EncodeString(c_UTF8, v2)
8401 }
8402 }
8403 ee.WriteMapEnd()
8404 }
8405
8406 func (e *Encoder) fastpathEncMapUint32UintR(f *codecFnInfo, rv reflect.Value) {
8407 fastpathTV.EncMapUint32UintV(rv2i(rv).(map[uint32]uint), e)
8408 }
8409 func (_ fastpathT) EncMapUint32UintV(v map[uint32]uint, e *Encoder) {
8410 ee, esep := e.e, e.hh.hasElemSeparators()
8411 ee.WriteMapStart(len(v))
8412 if e.h.Canonical {
8413 v2 := make([]uint64, len(v))
8414 var i int
8415 for k, _ := range v {
8416 v2[i] = uint64(k)
8417 i++
8418 }
8419 sort.Sort(uintSlice(v2))
8420 for _, k2 := range v2 {
8421 if esep {
8422 ee.WriteMapElemKey()
8423 }
8424 ee.EncodeUint(uint64(uint32(k2)))
8425 if esep {
8426 ee.WriteMapElemValue()
8427 }
8428 ee.EncodeUint(uint64(v[uint32(k2)]))
8429 }
8430 } else {
8431 for k2, v2 := range v {
8432 if esep {
8433 ee.WriteMapElemKey()
8434 }
8435 ee.EncodeUint(uint64(k2))
8436 if esep {
8437 ee.WriteMapElemValue()
8438 }
8439 ee.EncodeUint(uint64(v2))
8440 }
8441 }
8442 ee.WriteMapEnd()
8443 }
8444
8445 func (e *Encoder) fastpathEncMapUint32Uint8R(f *codecFnInfo, rv reflect.Value) {
8446 fastpathTV.EncMapUint32Uint8V(rv2i(rv).(map[uint32]uint8), e)
8447 }
8448 func (_ fastpathT) EncMapUint32Uint8V(v map[uint32]uint8, e *Encoder) {
8449 ee, esep := e.e, e.hh.hasElemSeparators()
8450 ee.WriteMapStart(len(v))
8451 if e.h.Canonical {
8452 v2 := make([]uint64, len(v))
8453 var i int
8454 for k, _ := range v {
8455 v2[i] = uint64(k)
8456 i++
8457 }
8458 sort.Sort(uintSlice(v2))
8459 for _, k2 := range v2 {
8460 if esep {
8461 ee.WriteMapElemKey()
8462 }
8463 ee.EncodeUint(uint64(uint32(k2)))
8464 if esep {
8465 ee.WriteMapElemValue()
8466 }
8467 ee.EncodeUint(uint64(v[uint32(k2)]))
8468 }
8469 } else {
8470 for k2, v2 := range v {
8471 if esep {
8472 ee.WriteMapElemKey()
8473 }
8474 ee.EncodeUint(uint64(k2))
8475 if esep {
8476 ee.WriteMapElemValue()
8477 }
8478 ee.EncodeUint(uint64(v2))
8479 }
8480 }
8481 ee.WriteMapEnd()
8482 }
8483
8484 func (e *Encoder) fastpathEncMapUint32Uint16R(f *codecFnInfo, rv reflect.Value) {
8485 fastpathTV.EncMapUint32Uint16V(rv2i(rv).(map[uint32]uint16), e)
8486 }
8487 func (_ fastpathT) EncMapUint32Uint16V(v map[uint32]uint16, e *Encoder) {
8488 ee, esep := e.e, e.hh.hasElemSeparators()
8489 ee.WriteMapStart(len(v))
8490 if e.h.Canonical {
8491 v2 := make([]uint64, len(v))
8492 var i int
8493 for k, _ := range v {
8494 v2[i] = uint64(k)
8495 i++
8496 }
8497 sort.Sort(uintSlice(v2))
8498 for _, k2 := range v2 {
8499 if esep {
8500 ee.WriteMapElemKey()
8501 }
8502 ee.EncodeUint(uint64(uint32(k2)))
8503 if esep {
8504 ee.WriteMapElemValue()
8505 }
8506 ee.EncodeUint(uint64(v[uint32(k2)]))
8507 }
8508 } else {
8509 for k2, v2 := range v {
8510 if esep {
8511 ee.WriteMapElemKey()
8512 }
8513 ee.EncodeUint(uint64(k2))
8514 if esep {
8515 ee.WriteMapElemValue()
8516 }
8517 ee.EncodeUint(uint64(v2))
8518 }
8519 }
8520 ee.WriteMapEnd()
8521 }
8522
8523 func (e *Encoder) fastpathEncMapUint32Uint32R(f *codecFnInfo, rv reflect.Value) {
8524 fastpathTV.EncMapUint32Uint32V(rv2i(rv).(map[uint32]uint32), e)
8525 }
8526 func (_ fastpathT) EncMapUint32Uint32V(v map[uint32]uint32, e *Encoder) {
8527 ee, esep := e.e, e.hh.hasElemSeparators()
8528 ee.WriteMapStart(len(v))
8529 if e.h.Canonical {
8530 v2 := make([]uint64, len(v))
8531 var i int
8532 for k, _ := range v {
8533 v2[i] = uint64(k)
8534 i++
8535 }
8536 sort.Sort(uintSlice(v2))
8537 for _, k2 := range v2 {
8538 if esep {
8539 ee.WriteMapElemKey()
8540 }
8541 ee.EncodeUint(uint64(uint32(k2)))
8542 if esep {
8543 ee.WriteMapElemValue()
8544 }
8545 ee.EncodeUint(uint64(v[uint32(k2)]))
8546 }
8547 } else {
8548 for k2, v2 := range v {
8549 if esep {
8550 ee.WriteMapElemKey()
8551 }
8552 ee.EncodeUint(uint64(k2))
8553 if esep {
8554 ee.WriteMapElemValue()
8555 }
8556 ee.EncodeUint(uint64(v2))
8557 }
8558 }
8559 ee.WriteMapEnd()
8560 }
8561
8562 func (e *Encoder) fastpathEncMapUint32Uint64R(f *codecFnInfo, rv reflect.Value) {
8563 fastpathTV.EncMapUint32Uint64V(rv2i(rv).(map[uint32]uint64), e)
8564 }
8565 func (_ fastpathT) EncMapUint32Uint64V(v map[uint32]uint64, e *Encoder) {
8566 ee, esep := e.e, e.hh.hasElemSeparators()
8567 ee.WriteMapStart(len(v))
8568 if e.h.Canonical {
8569 v2 := make([]uint64, len(v))
8570 var i int
8571 for k, _ := range v {
8572 v2[i] = uint64(k)
8573 i++
8574 }
8575 sort.Sort(uintSlice(v2))
8576 for _, k2 := range v2 {
8577 if esep {
8578 ee.WriteMapElemKey()
8579 }
8580 ee.EncodeUint(uint64(uint32(k2)))
8581 if esep {
8582 ee.WriteMapElemValue()
8583 }
8584 ee.EncodeUint(uint64(v[uint32(k2)]))
8585 }
8586 } else {
8587 for k2, v2 := range v {
8588 if esep {
8589 ee.WriteMapElemKey()
8590 }
8591 ee.EncodeUint(uint64(k2))
8592 if esep {
8593 ee.WriteMapElemValue()
8594 }
8595 ee.EncodeUint(uint64(v2))
8596 }
8597 }
8598 ee.WriteMapEnd()
8599 }
8600
8601 func (e *Encoder) fastpathEncMapUint32UintptrR(f *codecFnInfo, rv reflect.Value) {
8602 fastpathTV.EncMapUint32UintptrV(rv2i(rv).(map[uint32]uintptr), e)
8603 }
8604 func (_ fastpathT) EncMapUint32UintptrV(v map[uint32]uintptr, e *Encoder) {
8605 ee, esep := e.e, e.hh.hasElemSeparators()
8606 ee.WriteMapStart(len(v))
8607 if e.h.Canonical {
8608 v2 := make([]uint64, len(v))
8609 var i int
8610 for k, _ := range v {
8611 v2[i] = uint64(k)
8612 i++
8613 }
8614 sort.Sort(uintSlice(v2))
8615 for _, k2 := range v2 {
8616 if esep {
8617 ee.WriteMapElemKey()
8618 }
8619 ee.EncodeUint(uint64(uint32(k2)))
8620 if esep {
8621 ee.WriteMapElemValue()
8622 }
8623 e.encode(v[uint32(k2)])
8624 }
8625 } else {
8626 for k2, v2 := range v {
8627 if esep {
8628 ee.WriteMapElemKey()
8629 }
8630 ee.EncodeUint(uint64(k2))
8631 if esep {
8632 ee.WriteMapElemValue()
8633 }
8634 e.encode(v2)
8635 }
8636 }
8637 ee.WriteMapEnd()
8638 }
8639
8640 func (e *Encoder) fastpathEncMapUint32IntR(f *codecFnInfo, rv reflect.Value) {
8641 fastpathTV.EncMapUint32IntV(rv2i(rv).(map[uint32]int), e)
8642 }
8643 func (_ fastpathT) EncMapUint32IntV(v map[uint32]int, e *Encoder) {
8644 ee, esep := e.e, e.hh.hasElemSeparators()
8645 ee.WriteMapStart(len(v))
8646 if e.h.Canonical {
8647 v2 := make([]uint64, len(v))
8648 var i int
8649 for k, _ := range v {
8650 v2[i] = uint64(k)
8651 i++
8652 }
8653 sort.Sort(uintSlice(v2))
8654 for _, k2 := range v2 {
8655 if esep {
8656 ee.WriteMapElemKey()
8657 }
8658 ee.EncodeUint(uint64(uint32(k2)))
8659 if esep {
8660 ee.WriteMapElemValue()
8661 }
8662 ee.EncodeInt(int64(v[uint32(k2)]))
8663 }
8664 } else {
8665 for k2, v2 := range v {
8666 if esep {
8667 ee.WriteMapElemKey()
8668 }
8669 ee.EncodeUint(uint64(k2))
8670 if esep {
8671 ee.WriteMapElemValue()
8672 }
8673 ee.EncodeInt(int64(v2))
8674 }
8675 }
8676 ee.WriteMapEnd()
8677 }
8678
8679 func (e *Encoder) fastpathEncMapUint32Int8R(f *codecFnInfo, rv reflect.Value) {
8680 fastpathTV.EncMapUint32Int8V(rv2i(rv).(map[uint32]int8), e)
8681 }
8682 func (_ fastpathT) EncMapUint32Int8V(v map[uint32]int8, e *Encoder) {
8683 ee, esep := e.e, e.hh.hasElemSeparators()
8684 ee.WriteMapStart(len(v))
8685 if e.h.Canonical {
8686 v2 := make([]uint64, len(v))
8687 var i int
8688 for k, _ := range v {
8689 v2[i] = uint64(k)
8690 i++
8691 }
8692 sort.Sort(uintSlice(v2))
8693 for _, k2 := range v2 {
8694 if esep {
8695 ee.WriteMapElemKey()
8696 }
8697 ee.EncodeUint(uint64(uint32(k2)))
8698 if esep {
8699 ee.WriteMapElemValue()
8700 }
8701 ee.EncodeInt(int64(v[uint32(k2)]))
8702 }
8703 } else {
8704 for k2, v2 := range v {
8705 if esep {
8706 ee.WriteMapElemKey()
8707 }
8708 ee.EncodeUint(uint64(k2))
8709 if esep {
8710 ee.WriteMapElemValue()
8711 }
8712 ee.EncodeInt(int64(v2))
8713 }
8714 }
8715 ee.WriteMapEnd()
8716 }
8717
8718 func (e *Encoder) fastpathEncMapUint32Int16R(f *codecFnInfo, rv reflect.Value) {
8719 fastpathTV.EncMapUint32Int16V(rv2i(rv).(map[uint32]int16), e)
8720 }
8721 func (_ fastpathT) EncMapUint32Int16V(v map[uint32]int16, e *Encoder) {
8722 ee, esep := e.e, e.hh.hasElemSeparators()
8723 ee.WriteMapStart(len(v))
8724 if e.h.Canonical {
8725 v2 := make([]uint64, len(v))
8726 var i int
8727 for k, _ := range v {
8728 v2[i] = uint64(k)
8729 i++
8730 }
8731 sort.Sort(uintSlice(v2))
8732 for _, k2 := range v2 {
8733 if esep {
8734 ee.WriteMapElemKey()
8735 }
8736 ee.EncodeUint(uint64(uint32(k2)))
8737 if esep {
8738 ee.WriteMapElemValue()
8739 }
8740 ee.EncodeInt(int64(v[uint32(k2)]))
8741 }
8742 } else {
8743 for k2, v2 := range v {
8744 if esep {
8745 ee.WriteMapElemKey()
8746 }
8747 ee.EncodeUint(uint64(k2))
8748 if esep {
8749 ee.WriteMapElemValue()
8750 }
8751 ee.EncodeInt(int64(v2))
8752 }
8753 }
8754 ee.WriteMapEnd()
8755 }
8756
8757 func (e *Encoder) fastpathEncMapUint32Int32R(f *codecFnInfo, rv reflect.Value) {
8758 fastpathTV.EncMapUint32Int32V(rv2i(rv).(map[uint32]int32), e)
8759 }
8760 func (_ fastpathT) EncMapUint32Int32V(v map[uint32]int32, e *Encoder) {
8761 ee, esep := e.e, e.hh.hasElemSeparators()
8762 ee.WriteMapStart(len(v))
8763 if e.h.Canonical {
8764 v2 := make([]uint64, len(v))
8765 var i int
8766 for k, _ := range v {
8767 v2[i] = uint64(k)
8768 i++
8769 }
8770 sort.Sort(uintSlice(v2))
8771 for _, k2 := range v2 {
8772 if esep {
8773 ee.WriteMapElemKey()
8774 }
8775 ee.EncodeUint(uint64(uint32(k2)))
8776 if esep {
8777 ee.WriteMapElemValue()
8778 }
8779 ee.EncodeInt(int64(v[uint32(k2)]))
8780 }
8781 } else {
8782 for k2, v2 := range v {
8783 if esep {
8784 ee.WriteMapElemKey()
8785 }
8786 ee.EncodeUint(uint64(k2))
8787 if esep {
8788 ee.WriteMapElemValue()
8789 }
8790 ee.EncodeInt(int64(v2))
8791 }
8792 }
8793 ee.WriteMapEnd()
8794 }
8795
8796 func (e *Encoder) fastpathEncMapUint32Int64R(f *codecFnInfo, rv reflect.Value) {
8797 fastpathTV.EncMapUint32Int64V(rv2i(rv).(map[uint32]int64), e)
8798 }
8799 func (_ fastpathT) EncMapUint32Int64V(v map[uint32]int64, e *Encoder) {
8800 ee, esep := e.e, e.hh.hasElemSeparators()
8801 ee.WriteMapStart(len(v))
8802 if e.h.Canonical {
8803 v2 := make([]uint64, len(v))
8804 var i int
8805 for k, _ := range v {
8806 v2[i] = uint64(k)
8807 i++
8808 }
8809 sort.Sort(uintSlice(v2))
8810 for _, k2 := range v2 {
8811 if esep {
8812 ee.WriteMapElemKey()
8813 }
8814 ee.EncodeUint(uint64(uint32(k2)))
8815 if esep {
8816 ee.WriteMapElemValue()
8817 }
8818 ee.EncodeInt(int64(v[uint32(k2)]))
8819 }
8820 } else {
8821 for k2, v2 := range v {
8822 if esep {
8823 ee.WriteMapElemKey()
8824 }
8825 ee.EncodeUint(uint64(k2))
8826 if esep {
8827 ee.WriteMapElemValue()
8828 }
8829 ee.EncodeInt(int64(v2))
8830 }
8831 }
8832 ee.WriteMapEnd()
8833 }
8834
8835 func (e *Encoder) fastpathEncMapUint32Float32R(f *codecFnInfo, rv reflect.Value) {
8836 fastpathTV.EncMapUint32Float32V(rv2i(rv).(map[uint32]float32), e)
8837 }
8838 func (_ fastpathT) EncMapUint32Float32V(v map[uint32]float32, e *Encoder) {
8839 ee, esep := e.e, e.hh.hasElemSeparators()
8840 ee.WriteMapStart(len(v))
8841 if e.h.Canonical {
8842 v2 := make([]uint64, len(v))
8843 var i int
8844 for k, _ := range v {
8845 v2[i] = uint64(k)
8846 i++
8847 }
8848 sort.Sort(uintSlice(v2))
8849 for _, k2 := range v2 {
8850 if esep {
8851 ee.WriteMapElemKey()
8852 }
8853 ee.EncodeUint(uint64(uint32(k2)))
8854 if esep {
8855 ee.WriteMapElemValue()
8856 }
8857 ee.EncodeFloat32(v[uint32(k2)])
8858 }
8859 } else {
8860 for k2, v2 := range v {
8861 if esep {
8862 ee.WriteMapElemKey()
8863 }
8864 ee.EncodeUint(uint64(k2))
8865 if esep {
8866 ee.WriteMapElemValue()
8867 }
8868 ee.EncodeFloat32(v2)
8869 }
8870 }
8871 ee.WriteMapEnd()
8872 }
8873
8874 func (e *Encoder) fastpathEncMapUint32Float64R(f *codecFnInfo, rv reflect.Value) {
8875 fastpathTV.EncMapUint32Float64V(rv2i(rv).(map[uint32]float64), e)
8876 }
8877 func (_ fastpathT) EncMapUint32Float64V(v map[uint32]float64, e *Encoder) {
8878 ee, esep := e.e, e.hh.hasElemSeparators()
8879 ee.WriteMapStart(len(v))
8880 if e.h.Canonical {
8881 v2 := make([]uint64, len(v))
8882 var i int
8883 for k, _ := range v {
8884 v2[i] = uint64(k)
8885 i++
8886 }
8887 sort.Sort(uintSlice(v2))
8888 for _, k2 := range v2 {
8889 if esep {
8890 ee.WriteMapElemKey()
8891 }
8892 ee.EncodeUint(uint64(uint32(k2)))
8893 if esep {
8894 ee.WriteMapElemValue()
8895 }
8896 ee.EncodeFloat64(v[uint32(k2)])
8897 }
8898 } else {
8899 for k2, v2 := range v {
8900 if esep {
8901 ee.WriteMapElemKey()
8902 }
8903 ee.EncodeUint(uint64(k2))
8904 if esep {
8905 ee.WriteMapElemValue()
8906 }
8907 ee.EncodeFloat64(v2)
8908 }
8909 }
8910 ee.WriteMapEnd()
8911 }
8912
8913 func (e *Encoder) fastpathEncMapUint32BoolR(f *codecFnInfo, rv reflect.Value) {
8914 fastpathTV.EncMapUint32BoolV(rv2i(rv).(map[uint32]bool), e)
8915 }
8916 func (_ fastpathT) EncMapUint32BoolV(v map[uint32]bool, e *Encoder) {
8917 ee, esep := e.e, e.hh.hasElemSeparators()
8918 ee.WriteMapStart(len(v))
8919 if e.h.Canonical {
8920 v2 := make([]uint64, len(v))
8921 var i int
8922 for k, _ := range v {
8923 v2[i] = uint64(k)
8924 i++
8925 }
8926 sort.Sort(uintSlice(v2))
8927 for _, k2 := range v2 {
8928 if esep {
8929 ee.WriteMapElemKey()
8930 }
8931 ee.EncodeUint(uint64(uint32(k2)))
8932 if esep {
8933 ee.WriteMapElemValue()
8934 }
8935 ee.EncodeBool(v[uint32(k2)])
8936 }
8937 } else {
8938 for k2, v2 := range v {
8939 if esep {
8940 ee.WriteMapElemKey()
8941 }
8942 ee.EncodeUint(uint64(k2))
8943 if esep {
8944 ee.WriteMapElemValue()
8945 }
8946 ee.EncodeBool(v2)
8947 }
8948 }
8949 ee.WriteMapEnd()
8950 }
8951
8952 func (e *Encoder) fastpathEncMapUint64IntfR(f *codecFnInfo, rv reflect.Value) {
8953 fastpathTV.EncMapUint64IntfV(rv2i(rv).(map[uint64]interface{}), e)
8954 }
8955 func (_ fastpathT) EncMapUint64IntfV(v map[uint64]interface{}, e *Encoder) {
8956 ee, esep := e.e, e.hh.hasElemSeparators()
8957 ee.WriteMapStart(len(v))
8958 if e.h.Canonical {
8959 v2 := make([]uint64, len(v))
8960 var i int
8961 for k, _ := range v {
8962 v2[i] = uint64(k)
8963 i++
8964 }
8965 sort.Sort(uintSlice(v2))
8966 for _, k2 := range v2 {
8967 if esep {
8968 ee.WriteMapElemKey()
8969 }
8970 ee.EncodeUint(uint64(uint64(k2)))
8971 if esep {
8972 ee.WriteMapElemValue()
8973 }
8974 e.encode(v[uint64(k2)])
8975 }
8976 } else {
8977 for k2, v2 := range v {
8978 if esep {
8979 ee.WriteMapElemKey()
8980 }
8981 ee.EncodeUint(uint64(k2))
8982 if esep {
8983 ee.WriteMapElemValue()
8984 }
8985 e.encode(v2)
8986 }
8987 }
8988 ee.WriteMapEnd()
8989 }
8990
8991 func (e *Encoder) fastpathEncMapUint64StringR(f *codecFnInfo, rv reflect.Value) {
8992 fastpathTV.EncMapUint64StringV(rv2i(rv).(map[uint64]string), e)
8993 }
8994 func (_ fastpathT) EncMapUint64StringV(v map[uint64]string, e *Encoder) {
8995 ee, esep := e.e, e.hh.hasElemSeparators()
8996 ee.WriteMapStart(len(v))
8997 if e.h.Canonical {
8998 v2 := make([]uint64, len(v))
8999 var i int
9000 for k, _ := range v {
9001 v2[i] = uint64(k)
9002 i++
9003 }
9004 sort.Sort(uintSlice(v2))
9005 for _, k2 := range v2 {
9006 if esep {
9007 ee.WriteMapElemKey()
9008 }
9009 ee.EncodeUint(uint64(uint64(k2)))
9010 if esep {
9011 ee.WriteMapElemValue()
9012 }
9013 ee.EncodeString(c_UTF8, v[uint64(k2)])
9014 }
9015 } else {
9016 for k2, v2 := range v {
9017 if esep {
9018 ee.WriteMapElemKey()
9019 }
9020 ee.EncodeUint(uint64(k2))
9021 if esep {
9022 ee.WriteMapElemValue()
9023 }
9024 ee.EncodeString(c_UTF8, v2)
9025 }
9026 }
9027 ee.WriteMapEnd()
9028 }
9029
9030 func (e *Encoder) fastpathEncMapUint64UintR(f *codecFnInfo, rv reflect.Value) {
9031 fastpathTV.EncMapUint64UintV(rv2i(rv).(map[uint64]uint), e)
9032 }
9033 func (_ fastpathT) EncMapUint64UintV(v map[uint64]uint, e *Encoder) {
9034 ee, esep := e.e, e.hh.hasElemSeparators()
9035 ee.WriteMapStart(len(v))
9036 if e.h.Canonical {
9037 v2 := make([]uint64, len(v))
9038 var i int
9039 for k, _ := range v {
9040 v2[i] = uint64(k)
9041 i++
9042 }
9043 sort.Sort(uintSlice(v2))
9044 for _, k2 := range v2 {
9045 if esep {
9046 ee.WriteMapElemKey()
9047 }
9048 ee.EncodeUint(uint64(uint64(k2)))
9049 if esep {
9050 ee.WriteMapElemValue()
9051 }
9052 ee.EncodeUint(uint64(v[uint64(k2)]))
9053 }
9054 } else {
9055 for k2, v2 := range v {
9056 if esep {
9057 ee.WriteMapElemKey()
9058 }
9059 ee.EncodeUint(uint64(k2))
9060 if esep {
9061 ee.WriteMapElemValue()
9062 }
9063 ee.EncodeUint(uint64(v2))
9064 }
9065 }
9066 ee.WriteMapEnd()
9067 }
9068
9069 func (e *Encoder) fastpathEncMapUint64Uint8R(f *codecFnInfo, rv reflect.Value) {
9070 fastpathTV.EncMapUint64Uint8V(rv2i(rv).(map[uint64]uint8), e)
9071 }
9072 func (_ fastpathT) EncMapUint64Uint8V(v map[uint64]uint8, e *Encoder) {
9073 ee, esep := e.e, e.hh.hasElemSeparators()
9074 ee.WriteMapStart(len(v))
9075 if e.h.Canonical {
9076 v2 := make([]uint64, len(v))
9077 var i int
9078 for k, _ := range v {
9079 v2[i] = uint64(k)
9080 i++
9081 }
9082 sort.Sort(uintSlice(v2))
9083 for _, k2 := range v2 {
9084 if esep {
9085 ee.WriteMapElemKey()
9086 }
9087 ee.EncodeUint(uint64(uint64(k2)))
9088 if esep {
9089 ee.WriteMapElemValue()
9090 }
9091 ee.EncodeUint(uint64(v[uint64(k2)]))
9092 }
9093 } else {
9094 for k2, v2 := range v {
9095 if esep {
9096 ee.WriteMapElemKey()
9097 }
9098 ee.EncodeUint(uint64(k2))
9099 if esep {
9100 ee.WriteMapElemValue()
9101 }
9102 ee.EncodeUint(uint64(v2))
9103 }
9104 }
9105 ee.WriteMapEnd()
9106 }
9107
9108 func (e *Encoder) fastpathEncMapUint64Uint16R(f *codecFnInfo, rv reflect.Value) {
9109 fastpathTV.EncMapUint64Uint16V(rv2i(rv).(map[uint64]uint16), e)
9110 }
9111 func (_ fastpathT) EncMapUint64Uint16V(v map[uint64]uint16, e *Encoder) {
9112 ee, esep := e.e, e.hh.hasElemSeparators()
9113 ee.WriteMapStart(len(v))
9114 if e.h.Canonical {
9115 v2 := make([]uint64, len(v))
9116 var i int
9117 for k, _ := range v {
9118 v2[i] = uint64(k)
9119 i++
9120 }
9121 sort.Sort(uintSlice(v2))
9122 for _, k2 := range v2 {
9123 if esep {
9124 ee.WriteMapElemKey()
9125 }
9126 ee.EncodeUint(uint64(uint64(k2)))
9127 if esep {
9128 ee.WriteMapElemValue()
9129 }
9130 ee.EncodeUint(uint64(v[uint64(k2)]))
9131 }
9132 } else {
9133 for k2, v2 := range v {
9134 if esep {
9135 ee.WriteMapElemKey()
9136 }
9137 ee.EncodeUint(uint64(k2))
9138 if esep {
9139 ee.WriteMapElemValue()
9140 }
9141 ee.EncodeUint(uint64(v2))
9142 }
9143 }
9144 ee.WriteMapEnd()
9145 }
9146
9147 func (e *Encoder) fastpathEncMapUint64Uint32R(f *codecFnInfo, rv reflect.Value) {
9148 fastpathTV.EncMapUint64Uint32V(rv2i(rv).(map[uint64]uint32), e)
9149 }
9150 func (_ fastpathT) EncMapUint64Uint32V(v map[uint64]uint32, e *Encoder) {
9151 ee, esep := e.e, e.hh.hasElemSeparators()
9152 ee.WriteMapStart(len(v))
9153 if e.h.Canonical {
9154 v2 := make([]uint64, len(v))
9155 var i int
9156 for k, _ := range v {
9157 v2[i] = uint64(k)
9158 i++
9159 }
9160 sort.Sort(uintSlice(v2))
9161 for _, k2 := range v2 {
9162 if esep {
9163 ee.WriteMapElemKey()
9164 }
9165 ee.EncodeUint(uint64(uint64(k2)))
9166 if esep {
9167 ee.WriteMapElemValue()
9168 }
9169 ee.EncodeUint(uint64(v[uint64(k2)]))
9170 }
9171 } else {
9172 for k2, v2 := range v {
9173 if esep {
9174 ee.WriteMapElemKey()
9175 }
9176 ee.EncodeUint(uint64(k2))
9177 if esep {
9178 ee.WriteMapElemValue()
9179 }
9180 ee.EncodeUint(uint64(v2))
9181 }
9182 }
9183 ee.WriteMapEnd()
9184 }
9185
9186 func (e *Encoder) fastpathEncMapUint64Uint64R(f *codecFnInfo, rv reflect.Value) {
9187 fastpathTV.EncMapUint64Uint64V(rv2i(rv).(map[uint64]uint64), e)
9188 }
9189 func (_ fastpathT) EncMapUint64Uint64V(v map[uint64]uint64, e *Encoder) {
9190 ee, esep := e.e, e.hh.hasElemSeparators()
9191 ee.WriteMapStart(len(v))
9192 if e.h.Canonical {
9193 v2 := make([]uint64, len(v))
9194 var i int
9195 for k, _ := range v {
9196 v2[i] = uint64(k)
9197 i++
9198 }
9199 sort.Sort(uintSlice(v2))
9200 for _, k2 := range v2 {
9201 if esep {
9202 ee.WriteMapElemKey()
9203 }
9204 ee.EncodeUint(uint64(uint64(k2)))
9205 if esep {
9206 ee.WriteMapElemValue()
9207 }
9208 ee.EncodeUint(uint64(v[uint64(k2)]))
9209 }
9210 } else {
9211 for k2, v2 := range v {
9212 if esep {
9213 ee.WriteMapElemKey()
9214 }
9215 ee.EncodeUint(uint64(k2))
9216 if esep {
9217 ee.WriteMapElemValue()
9218 }
9219 ee.EncodeUint(uint64(v2))
9220 }
9221 }
9222 ee.WriteMapEnd()
9223 }
9224
9225 func (e *Encoder) fastpathEncMapUint64UintptrR(f *codecFnInfo, rv reflect.Value) {
9226 fastpathTV.EncMapUint64UintptrV(rv2i(rv).(map[uint64]uintptr), e)
9227 }
9228 func (_ fastpathT) EncMapUint64UintptrV(v map[uint64]uintptr, e *Encoder) {
9229 ee, esep := e.e, e.hh.hasElemSeparators()
9230 ee.WriteMapStart(len(v))
9231 if e.h.Canonical {
9232 v2 := make([]uint64, len(v))
9233 var i int
9234 for k, _ := range v {
9235 v2[i] = uint64(k)
9236 i++
9237 }
9238 sort.Sort(uintSlice(v2))
9239 for _, k2 := range v2 {
9240 if esep {
9241 ee.WriteMapElemKey()
9242 }
9243 ee.EncodeUint(uint64(uint64(k2)))
9244 if esep {
9245 ee.WriteMapElemValue()
9246 }
9247 e.encode(v[uint64(k2)])
9248 }
9249 } else {
9250 for k2, v2 := range v {
9251 if esep {
9252 ee.WriteMapElemKey()
9253 }
9254 ee.EncodeUint(uint64(k2))
9255 if esep {
9256 ee.WriteMapElemValue()
9257 }
9258 e.encode(v2)
9259 }
9260 }
9261 ee.WriteMapEnd()
9262 }
9263
9264 func (e *Encoder) fastpathEncMapUint64IntR(f *codecFnInfo, rv reflect.Value) {
9265 fastpathTV.EncMapUint64IntV(rv2i(rv).(map[uint64]int), e)
9266 }
9267 func (_ fastpathT) EncMapUint64IntV(v map[uint64]int, e *Encoder) {
9268 ee, esep := e.e, e.hh.hasElemSeparators()
9269 ee.WriteMapStart(len(v))
9270 if e.h.Canonical {
9271 v2 := make([]uint64, len(v))
9272 var i int
9273 for k, _ := range v {
9274 v2[i] = uint64(k)
9275 i++
9276 }
9277 sort.Sort(uintSlice(v2))
9278 for _, k2 := range v2 {
9279 if esep {
9280 ee.WriteMapElemKey()
9281 }
9282 ee.EncodeUint(uint64(uint64(k2)))
9283 if esep {
9284 ee.WriteMapElemValue()
9285 }
9286 ee.EncodeInt(int64(v[uint64(k2)]))
9287 }
9288 } else {
9289 for k2, v2 := range v {
9290 if esep {
9291 ee.WriteMapElemKey()
9292 }
9293 ee.EncodeUint(uint64(k2))
9294 if esep {
9295 ee.WriteMapElemValue()
9296 }
9297 ee.EncodeInt(int64(v2))
9298 }
9299 }
9300 ee.WriteMapEnd()
9301 }
9302
9303 func (e *Encoder) fastpathEncMapUint64Int8R(f *codecFnInfo, rv reflect.Value) {
9304 fastpathTV.EncMapUint64Int8V(rv2i(rv).(map[uint64]int8), e)
9305 }
9306 func (_ fastpathT) EncMapUint64Int8V(v map[uint64]int8, e *Encoder) {
9307 ee, esep := e.e, e.hh.hasElemSeparators()
9308 ee.WriteMapStart(len(v))
9309 if e.h.Canonical {
9310 v2 := make([]uint64, len(v))
9311 var i int
9312 for k, _ := range v {
9313 v2[i] = uint64(k)
9314 i++
9315 }
9316 sort.Sort(uintSlice(v2))
9317 for _, k2 := range v2 {
9318 if esep {
9319 ee.WriteMapElemKey()
9320 }
9321 ee.EncodeUint(uint64(uint64(k2)))
9322 if esep {
9323 ee.WriteMapElemValue()
9324 }
9325 ee.EncodeInt(int64(v[uint64(k2)]))
9326 }
9327 } else {
9328 for k2, v2 := range v {
9329 if esep {
9330 ee.WriteMapElemKey()
9331 }
9332 ee.EncodeUint(uint64(k2))
9333 if esep {
9334 ee.WriteMapElemValue()
9335 }
9336 ee.EncodeInt(int64(v2))
9337 }
9338 }
9339 ee.WriteMapEnd()
9340 }
9341
9342 func (e *Encoder) fastpathEncMapUint64Int16R(f *codecFnInfo, rv reflect.Value) {
9343 fastpathTV.EncMapUint64Int16V(rv2i(rv).(map[uint64]int16), e)
9344 }
9345 func (_ fastpathT) EncMapUint64Int16V(v map[uint64]int16, e *Encoder) {
9346 ee, esep := e.e, e.hh.hasElemSeparators()
9347 ee.WriteMapStart(len(v))
9348 if e.h.Canonical {
9349 v2 := make([]uint64, len(v))
9350 var i int
9351 for k, _ := range v {
9352 v2[i] = uint64(k)
9353 i++
9354 }
9355 sort.Sort(uintSlice(v2))
9356 for _, k2 := range v2 {
9357 if esep {
9358 ee.WriteMapElemKey()
9359 }
9360 ee.EncodeUint(uint64(uint64(k2)))
9361 if esep {
9362 ee.WriteMapElemValue()
9363 }
9364 ee.EncodeInt(int64(v[uint64(k2)]))
9365 }
9366 } else {
9367 for k2, v2 := range v {
9368 if esep {
9369 ee.WriteMapElemKey()
9370 }
9371 ee.EncodeUint(uint64(k2))
9372 if esep {
9373 ee.WriteMapElemValue()
9374 }
9375 ee.EncodeInt(int64(v2))
9376 }
9377 }
9378 ee.WriteMapEnd()
9379 }
9380
9381 func (e *Encoder) fastpathEncMapUint64Int32R(f *codecFnInfo, rv reflect.Value) {
9382 fastpathTV.EncMapUint64Int32V(rv2i(rv).(map[uint64]int32), e)
9383 }
9384 func (_ fastpathT) EncMapUint64Int32V(v map[uint64]int32, e *Encoder) {
9385 ee, esep := e.e, e.hh.hasElemSeparators()
9386 ee.WriteMapStart(len(v))
9387 if e.h.Canonical {
9388 v2 := make([]uint64, len(v))
9389 var i int
9390 for k, _ := range v {
9391 v2[i] = uint64(k)
9392 i++
9393 }
9394 sort.Sort(uintSlice(v2))
9395 for _, k2 := range v2 {
9396 if esep {
9397 ee.WriteMapElemKey()
9398 }
9399 ee.EncodeUint(uint64(uint64(k2)))
9400 if esep {
9401 ee.WriteMapElemValue()
9402 }
9403 ee.EncodeInt(int64(v[uint64(k2)]))
9404 }
9405 } else {
9406 for k2, v2 := range v {
9407 if esep {
9408 ee.WriteMapElemKey()
9409 }
9410 ee.EncodeUint(uint64(k2))
9411 if esep {
9412 ee.WriteMapElemValue()
9413 }
9414 ee.EncodeInt(int64(v2))
9415 }
9416 }
9417 ee.WriteMapEnd()
9418 }
9419
9420 func (e *Encoder) fastpathEncMapUint64Int64R(f *codecFnInfo, rv reflect.Value) {
9421 fastpathTV.EncMapUint64Int64V(rv2i(rv).(map[uint64]int64), e)
9422 }
9423 func (_ fastpathT) EncMapUint64Int64V(v map[uint64]int64, e *Encoder) {
9424 ee, esep := e.e, e.hh.hasElemSeparators()
9425 ee.WriteMapStart(len(v))
9426 if e.h.Canonical {
9427 v2 := make([]uint64, len(v))
9428 var i int
9429 for k, _ := range v {
9430 v2[i] = uint64(k)
9431 i++
9432 }
9433 sort.Sort(uintSlice(v2))
9434 for _, k2 := range v2 {
9435 if esep {
9436 ee.WriteMapElemKey()
9437 }
9438 ee.EncodeUint(uint64(uint64(k2)))
9439 if esep {
9440 ee.WriteMapElemValue()
9441 }
9442 ee.EncodeInt(int64(v[uint64(k2)]))
9443 }
9444 } else {
9445 for k2, v2 := range v {
9446 if esep {
9447 ee.WriteMapElemKey()
9448 }
9449 ee.EncodeUint(uint64(k2))
9450 if esep {
9451 ee.WriteMapElemValue()
9452 }
9453 ee.EncodeInt(int64(v2))
9454 }
9455 }
9456 ee.WriteMapEnd()
9457 }
9458
9459 func (e *Encoder) fastpathEncMapUint64Float32R(f *codecFnInfo, rv reflect.Value) {
9460 fastpathTV.EncMapUint64Float32V(rv2i(rv).(map[uint64]float32), e)
9461 }
9462 func (_ fastpathT) EncMapUint64Float32V(v map[uint64]float32, e *Encoder) {
9463 ee, esep := e.e, e.hh.hasElemSeparators()
9464 ee.WriteMapStart(len(v))
9465 if e.h.Canonical {
9466 v2 := make([]uint64, len(v))
9467 var i int
9468 for k, _ := range v {
9469 v2[i] = uint64(k)
9470 i++
9471 }
9472 sort.Sort(uintSlice(v2))
9473 for _, k2 := range v2 {
9474 if esep {
9475 ee.WriteMapElemKey()
9476 }
9477 ee.EncodeUint(uint64(uint64(k2)))
9478 if esep {
9479 ee.WriteMapElemValue()
9480 }
9481 ee.EncodeFloat32(v[uint64(k2)])
9482 }
9483 } else {
9484 for k2, v2 := range v {
9485 if esep {
9486 ee.WriteMapElemKey()
9487 }
9488 ee.EncodeUint(uint64(k2))
9489 if esep {
9490 ee.WriteMapElemValue()
9491 }
9492 ee.EncodeFloat32(v2)
9493 }
9494 }
9495 ee.WriteMapEnd()
9496 }
9497
9498 func (e *Encoder) fastpathEncMapUint64Float64R(f *codecFnInfo, rv reflect.Value) {
9499 fastpathTV.EncMapUint64Float64V(rv2i(rv).(map[uint64]float64), e)
9500 }
9501 func (_ fastpathT) EncMapUint64Float64V(v map[uint64]float64, e *Encoder) {
9502 ee, esep := e.e, e.hh.hasElemSeparators()
9503 ee.WriteMapStart(len(v))
9504 if e.h.Canonical {
9505 v2 := make([]uint64, len(v))
9506 var i int
9507 for k, _ := range v {
9508 v2[i] = uint64(k)
9509 i++
9510 }
9511 sort.Sort(uintSlice(v2))
9512 for _, k2 := range v2 {
9513 if esep {
9514 ee.WriteMapElemKey()
9515 }
9516 ee.EncodeUint(uint64(uint64(k2)))
9517 if esep {
9518 ee.WriteMapElemValue()
9519 }
9520 ee.EncodeFloat64(v[uint64(k2)])
9521 }
9522 } else {
9523 for k2, v2 := range v {
9524 if esep {
9525 ee.WriteMapElemKey()
9526 }
9527 ee.EncodeUint(uint64(k2))
9528 if esep {
9529 ee.WriteMapElemValue()
9530 }
9531 ee.EncodeFloat64(v2)
9532 }
9533 }
9534 ee.WriteMapEnd()
9535 }
9536
9537 func (e *Encoder) fastpathEncMapUint64BoolR(f *codecFnInfo, rv reflect.Value) {
9538 fastpathTV.EncMapUint64BoolV(rv2i(rv).(map[uint64]bool), e)
9539 }
9540 func (_ fastpathT) EncMapUint64BoolV(v map[uint64]bool, e *Encoder) {
9541 ee, esep := e.e, e.hh.hasElemSeparators()
9542 ee.WriteMapStart(len(v))
9543 if e.h.Canonical {
9544 v2 := make([]uint64, len(v))
9545 var i int
9546 for k, _ := range v {
9547 v2[i] = uint64(k)
9548 i++
9549 }
9550 sort.Sort(uintSlice(v2))
9551 for _, k2 := range v2 {
9552 if esep {
9553 ee.WriteMapElemKey()
9554 }
9555 ee.EncodeUint(uint64(uint64(k2)))
9556 if esep {
9557 ee.WriteMapElemValue()
9558 }
9559 ee.EncodeBool(v[uint64(k2)])
9560 }
9561 } else {
9562 for k2, v2 := range v {
9563 if esep {
9564 ee.WriteMapElemKey()
9565 }
9566 ee.EncodeUint(uint64(k2))
9567 if esep {
9568 ee.WriteMapElemValue()
9569 }
9570 ee.EncodeBool(v2)
9571 }
9572 }
9573 ee.WriteMapEnd()
9574 }
9575
9576 func (e *Encoder) fastpathEncMapUintptrIntfR(f *codecFnInfo, rv reflect.Value) {
9577 fastpathTV.EncMapUintptrIntfV(rv2i(rv).(map[uintptr]interface{}), e)
9578 }
9579 func (_ fastpathT) EncMapUintptrIntfV(v map[uintptr]interface{}, e *Encoder) {
9580 ee, esep := e.e, e.hh.hasElemSeparators()
9581 ee.WriteMapStart(len(v))
9582 if e.h.Canonical {
9583 v2 := make([]uint64, len(v))
9584 var i int
9585 for k, _ := range v {
9586 v2[i] = uint64(k)
9587 i++
9588 }
9589 sort.Sort(uintSlice(v2))
9590 for _, k2 := range v2 {
9591 if esep {
9592 ee.WriteMapElemKey()
9593 }
9594 e.encode(uintptr(k2))
9595 if esep {
9596 ee.WriteMapElemValue()
9597 }
9598 e.encode(v[uintptr(k2)])
9599 }
9600 } else {
9601 for k2, v2 := range v {
9602 if esep {
9603 ee.WriteMapElemKey()
9604 }
9605 e.encode(k2)
9606 if esep {
9607 ee.WriteMapElemValue()
9608 }
9609 e.encode(v2)
9610 }
9611 }
9612 ee.WriteMapEnd()
9613 }
9614
9615 func (e *Encoder) fastpathEncMapUintptrStringR(f *codecFnInfo, rv reflect.Value) {
9616 fastpathTV.EncMapUintptrStringV(rv2i(rv).(map[uintptr]string), e)
9617 }
9618 func (_ fastpathT) EncMapUintptrStringV(v map[uintptr]string, e *Encoder) {
9619 ee, esep := e.e, e.hh.hasElemSeparators()
9620 ee.WriteMapStart(len(v))
9621 if e.h.Canonical {
9622 v2 := make([]uint64, len(v))
9623 var i int
9624 for k, _ := range v {
9625 v2[i] = uint64(k)
9626 i++
9627 }
9628 sort.Sort(uintSlice(v2))
9629 for _, k2 := range v2 {
9630 if esep {
9631 ee.WriteMapElemKey()
9632 }
9633 e.encode(uintptr(k2))
9634 if esep {
9635 ee.WriteMapElemValue()
9636 }
9637 ee.EncodeString(c_UTF8, v[uintptr(k2)])
9638 }
9639 } else {
9640 for k2, v2 := range v {
9641 if esep {
9642 ee.WriteMapElemKey()
9643 }
9644 e.encode(k2)
9645 if esep {
9646 ee.WriteMapElemValue()
9647 }
9648 ee.EncodeString(c_UTF8, v2)
9649 }
9650 }
9651 ee.WriteMapEnd()
9652 }
9653
9654 func (e *Encoder) fastpathEncMapUintptrUintR(f *codecFnInfo, rv reflect.Value) {
9655 fastpathTV.EncMapUintptrUintV(rv2i(rv).(map[uintptr]uint), e)
9656 }
9657 func (_ fastpathT) EncMapUintptrUintV(v map[uintptr]uint, e *Encoder) {
9658 ee, esep := e.e, e.hh.hasElemSeparators()
9659 ee.WriteMapStart(len(v))
9660 if e.h.Canonical {
9661 v2 := make([]uint64, len(v))
9662 var i int
9663 for k, _ := range v {
9664 v2[i] = uint64(k)
9665 i++
9666 }
9667 sort.Sort(uintSlice(v2))
9668 for _, k2 := range v2 {
9669 if esep {
9670 ee.WriteMapElemKey()
9671 }
9672 e.encode(uintptr(k2))
9673 if esep {
9674 ee.WriteMapElemValue()
9675 }
9676 ee.EncodeUint(uint64(v[uintptr(k2)]))
9677 }
9678 } else {
9679 for k2, v2 := range v {
9680 if esep {
9681 ee.WriteMapElemKey()
9682 }
9683 e.encode(k2)
9684 if esep {
9685 ee.WriteMapElemValue()
9686 }
9687 ee.EncodeUint(uint64(v2))
9688 }
9689 }
9690 ee.WriteMapEnd()
9691 }
9692
9693 func (e *Encoder) fastpathEncMapUintptrUint8R(f *codecFnInfo, rv reflect.Value) {
9694 fastpathTV.EncMapUintptrUint8V(rv2i(rv).(map[uintptr]uint8), e)
9695 }
9696 func (_ fastpathT) EncMapUintptrUint8V(v map[uintptr]uint8, e *Encoder) {
9697 ee, esep := e.e, e.hh.hasElemSeparators()
9698 ee.WriteMapStart(len(v))
9699 if e.h.Canonical {
9700 v2 := make([]uint64, len(v))
9701 var i int
9702 for k, _ := range v {
9703 v2[i] = uint64(k)
9704 i++
9705 }
9706 sort.Sort(uintSlice(v2))
9707 for _, k2 := range v2 {
9708 if esep {
9709 ee.WriteMapElemKey()
9710 }
9711 e.encode(uintptr(k2))
9712 if esep {
9713 ee.WriteMapElemValue()
9714 }
9715 ee.EncodeUint(uint64(v[uintptr(k2)]))
9716 }
9717 } else {
9718 for k2, v2 := range v {
9719 if esep {
9720 ee.WriteMapElemKey()
9721 }
9722 e.encode(k2)
9723 if esep {
9724 ee.WriteMapElemValue()
9725 }
9726 ee.EncodeUint(uint64(v2))
9727 }
9728 }
9729 ee.WriteMapEnd()
9730 }
9731
9732 func (e *Encoder) fastpathEncMapUintptrUint16R(f *codecFnInfo, rv reflect.Value) {
9733 fastpathTV.EncMapUintptrUint16V(rv2i(rv).(map[uintptr]uint16), e)
9734 }
9735 func (_ fastpathT) EncMapUintptrUint16V(v map[uintptr]uint16, e *Encoder) {
9736 ee, esep := e.e, e.hh.hasElemSeparators()
9737 ee.WriteMapStart(len(v))
9738 if e.h.Canonical {
9739 v2 := make([]uint64, len(v))
9740 var i int
9741 for k, _ := range v {
9742 v2[i] = uint64(k)
9743 i++
9744 }
9745 sort.Sort(uintSlice(v2))
9746 for _, k2 := range v2 {
9747 if esep {
9748 ee.WriteMapElemKey()
9749 }
9750 e.encode(uintptr(k2))
9751 if esep {
9752 ee.WriteMapElemValue()
9753 }
9754 ee.EncodeUint(uint64(v[uintptr(k2)]))
9755 }
9756 } else {
9757 for k2, v2 := range v {
9758 if esep {
9759 ee.WriteMapElemKey()
9760 }
9761 e.encode(k2)
9762 if esep {
9763 ee.WriteMapElemValue()
9764 }
9765 ee.EncodeUint(uint64(v2))
9766 }
9767 }
9768 ee.WriteMapEnd()
9769 }
9770
9771 func (e *Encoder) fastpathEncMapUintptrUint32R(f *codecFnInfo, rv reflect.Value) {
9772 fastpathTV.EncMapUintptrUint32V(rv2i(rv).(map[uintptr]uint32), e)
9773 }
9774 func (_ fastpathT) EncMapUintptrUint32V(v map[uintptr]uint32, e *Encoder) {
9775 ee, esep := e.e, e.hh.hasElemSeparators()
9776 ee.WriteMapStart(len(v))
9777 if e.h.Canonical {
9778 v2 := make([]uint64, len(v))
9779 var i int
9780 for k, _ := range v {
9781 v2[i] = uint64(k)
9782 i++
9783 }
9784 sort.Sort(uintSlice(v2))
9785 for _, k2 := range v2 {
9786 if esep {
9787 ee.WriteMapElemKey()
9788 }
9789 e.encode(uintptr(k2))
9790 if esep {
9791 ee.WriteMapElemValue()
9792 }
9793 ee.EncodeUint(uint64(v[uintptr(k2)]))
9794 }
9795 } else {
9796 for k2, v2 := range v {
9797 if esep {
9798 ee.WriteMapElemKey()
9799 }
9800 e.encode(k2)
9801 if esep {
9802 ee.WriteMapElemValue()
9803 }
9804 ee.EncodeUint(uint64(v2))
9805 }
9806 }
9807 ee.WriteMapEnd()
9808 }
9809
9810 func (e *Encoder) fastpathEncMapUintptrUint64R(f *codecFnInfo, rv reflect.Value) {
9811 fastpathTV.EncMapUintptrUint64V(rv2i(rv).(map[uintptr]uint64), e)
9812 }
9813 func (_ fastpathT) EncMapUintptrUint64V(v map[uintptr]uint64, e *Encoder) {
9814 ee, esep := e.e, e.hh.hasElemSeparators()
9815 ee.WriteMapStart(len(v))
9816 if e.h.Canonical {
9817 v2 := make([]uint64, len(v))
9818 var i int
9819 for k, _ := range v {
9820 v2[i] = uint64(k)
9821 i++
9822 }
9823 sort.Sort(uintSlice(v2))
9824 for _, k2 := range v2 {
9825 if esep {
9826 ee.WriteMapElemKey()
9827 }
9828 e.encode(uintptr(k2))
9829 if esep {
9830 ee.WriteMapElemValue()
9831 }
9832 ee.EncodeUint(uint64(v[uintptr(k2)]))
9833 }
9834 } else {
9835 for k2, v2 := range v {
9836 if esep {
9837 ee.WriteMapElemKey()
9838 }
9839 e.encode(k2)
9840 if esep {
9841 ee.WriteMapElemValue()
9842 }
9843 ee.EncodeUint(uint64(v2))
9844 }
9845 }
9846 ee.WriteMapEnd()
9847 }
9848
9849 func (e *Encoder) fastpathEncMapUintptrUintptrR(f *codecFnInfo, rv reflect.Value) {
9850 fastpathTV.EncMapUintptrUintptrV(rv2i(rv).(map[uintptr]uintptr), e)
9851 }
9852 func (_ fastpathT) EncMapUintptrUintptrV(v map[uintptr]uintptr, e *Encoder) {
9853 ee, esep := e.e, e.hh.hasElemSeparators()
9854 ee.WriteMapStart(len(v))
9855 if e.h.Canonical {
9856 v2 := make([]uint64, len(v))
9857 var i int
9858 for k, _ := range v {
9859 v2[i] = uint64(k)
9860 i++
9861 }
9862 sort.Sort(uintSlice(v2))
9863 for _, k2 := range v2 {
9864 if esep {
9865 ee.WriteMapElemKey()
9866 }
9867 e.encode(uintptr(k2))
9868 if esep {
9869 ee.WriteMapElemValue()
9870 }
9871 e.encode(v[uintptr(k2)])
9872 }
9873 } else {
9874 for k2, v2 := range v {
9875 if esep {
9876 ee.WriteMapElemKey()
9877 }
9878 e.encode(k2)
9879 if esep {
9880 ee.WriteMapElemValue()
9881 }
9882 e.encode(v2)
9883 }
9884 }
9885 ee.WriteMapEnd()
9886 }
9887
9888 func (e *Encoder) fastpathEncMapUintptrIntR(f *codecFnInfo, rv reflect.Value) {
9889 fastpathTV.EncMapUintptrIntV(rv2i(rv).(map[uintptr]int), e)
9890 }
9891 func (_ fastpathT) EncMapUintptrIntV(v map[uintptr]int, e *Encoder) {
9892 ee, esep := e.e, e.hh.hasElemSeparators()
9893 ee.WriteMapStart(len(v))
9894 if e.h.Canonical {
9895 v2 := make([]uint64, len(v))
9896 var i int
9897 for k, _ := range v {
9898 v2[i] = uint64(k)
9899 i++
9900 }
9901 sort.Sort(uintSlice(v2))
9902 for _, k2 := range v2 {
9903 if esep {
9904 ee.WriteMapElemKey()
9905 }
9906 e.encode(uintptr(k2))
9907 if esep {
9908 ee.WriteMapElemValue()
9909 }
9910 ee.EncodeInt(int64(v[uintptr(k2)]))
9911 }
9912 } else {
9913 for k2, v2 := range v {
9914 if esep {
9915 ee.WriteMapElemKey()
9916 }
9917 e.encode(k2)
9918 if esep {
9919 ee.WriteMapElemValue()
9920 }
9921 ee.EncodeInt(int64(v2))
9922 }
9923 }
9924 ee.WriteMapEnd()
9925 }
9926
9927 func (e *Encoder) fastpathEncMapUintptrInt8R(f *codecFnInfo, rv reflect.Value) {
9928 fastpathTV.EncMapUintptrInt8V(rv2i(rv).(map[uintptr]int8), e)
9929 }
9930 func (_ fastpathT) EncMapUintptrInt8V(v map[uintptr]int8, e *Encoder) {
9931 ee, esep := e.e, e.hh.hasElemSeparators()
9932 ee.WriteMapStart(len(v))
9933 if e.h.Canonical {
9934 v2 := make([]uint64, len(v))
9935 var i int
9936 for k, _ := range v {
9937 v2[i] = uint64(k)
9938 i++
9939 }
9940 sort.Sort(uintSlice(v2))
9941 for _, k2 := range v2 {
9942 if esep {
9943 ee.WriteMapElemKey()
9944 }
9945 e.encode(uintptr(k2))
9946 if esep {
9947 ee.WriteMapElemValue()
9948 }
9949 ee.EncodeInt(int64(v[uintptr(k2)]))
9950 }
9951 } else {
9952 for k2, v2 := range v {
9953 if esep {
9954 ee.WriteMapElemKey()
9955 }
9956 e.encode(k2)
9957 if esep {
9958 ee.WriteMapElemValue()
9959 }
9960 ee.EncodeInt(int64(v2))
9961 }
9962 }
9963 ee.WriteMapEnd()
9964 }
9965
9966 func (e *Encoder) fastpathEncMapUintptrInt16R(f *codecFnInfo, rv reflect.Value) {
9967 fastpathTV.EncMapUintptrInt16V(rv2i(rv).(map[uintptr]int16), e)
9968 }
9969 func (_ fastpathT) EncMapUintptrInt16V(v map[uintptr]int16, e *Encoder) {
9970 ee, esep := e.e, e.hh.hasElemSeparators()
9971 ee.WriteMapStart(len(v))
9972 if e.h.Canonical {
9973 v2 := make([]uint64, len(v))
9974 var i int
9975 for k, _ := range v {
9976 v2[i] = uint64(k)
9977 i++
9978 }
9979 sort.Sort(uintSlice(v2))
9980 for _, k2 := range v2 {
9981 if esep {
9982 ee.WriteMapElemKey()
9983 }
9984 e.encode(uintptr(k2))
9985 if esep {
9986 ee.WriteMapElemValue()
9987 }
9988 ee.EncodeInt(int64(v[uintptr(k2)]))
9989 }
9990 } else {
9991 for k2, v2 := range v {
9992 if esep {
9993 ee.WriteMapElemKey()
9994 }
9995 e.encode(k2)
9996 if esep {
9997 ee.WriteMapElemValue()
9998 }
9999 ee.EncodeInt(int64(v2))
10000 }
10001 }
10002 ee.WriteMapEnd()
10003 }
10004
10005 func (e *Encoder) fastpathEncMapUintptrInt32R(f *codecFnInfo, rv reflect.Value) {
10006 fastpathTV.EncMapUintptrInt32V(rv2i(rv).(map[uintptr]int32), e)
10007 }
10008 func (_ fastpathT) EncMapUintptrInt32V(v map[uintptr]int32, e *Encoder) {
10009 ee, esep := e.e, e.hh.hasElemSeparators()
10010 ee.WriteMapStart(len(v))
10011 if e.h.Canonical {
10012 v2 := make([]uint64, len(v))
10013 var i int
10014 for k, _ := range v {
10015 v2[i] = uint64(k)
10016 i++
10017 }
10018 sort.Sort(uintSlice(v2))
10019 for _, k2 := range v2 {
10020 if esep {
10021 ee.WriteMapElemKey()
10022 }
10023 e.encode(uintptr(k2))
10024 if esep {
10025 ee.WriteMapElemValue()
10026 }
10027 ee.EncodeInt(int64(v[uintptr(k2)]))
10028 }
10029 } else {
10030 for k2, v2 := range v {
10031 if esep {
10032 ee.WriteMapElemKey()
10033 }
10034 e.encode(k2)
10035 if esep {
10036 ee.WriteMapElemValue()
10037 }
10038 ee.EncodeInt(int64(v2))
10039 }
10040 }
10041 ee.WriteMapEnd()
10042 }
10043
10044 func (e *Encoder) fastpathEncMapUintptrInt64R(f *codecFnInfo, rv reflect.Value) {
10045 fastpathTV.EncMapUintptrInt64V(rv2i(rv).(map[uintptr]int64), e)
10046 }
10047 func (_ fastpathT) EncMapUintptrInt64V(v map[uintptr]int64, e *Encoder) {
10048 ee, esep := e.e, e.hh.hasElemSeparators()
10049 ee.WriteMapStart(len(v))
10050 if e.h.Canonical {
10051 v2 := make([]uint64, len(v))
10052 var i int
10053 for k, _ := range v {
10054 v2[i] = uint64(k)
10055 i++
10056 }
10057 sort.Sort(uintSlice(v2))
10058 for _, k2 := range v2 {
10059 if esep {
10060 ee.WriteMapElemKey()
10061 }
10062 e.encode(uintptr(k2))
10063 if esep {
10064 ee.WriteMapElemValue()
10065 }
10066 ee.EncodeInt(int64(v[uintptr(k2)]))
10067 }
10068 } else {
10069 for k2, v2 := range v {
10070 if esep {
10071 ee.WriteMapElemKey()
10072 }
10073 e.encode(k2)
10074 if esep {
10075 ee.WriteMapElemValue()
10076 }
10077 ee.EncodeInt(int64(v2))
10078 }
10079 }
10080 ee.WriteMapEnd()
10081 }
10082
10083 func (e *Encoder) fastpathEncMapUintptrFloat32R(f *codecFnInfo, rv reflect.Value) {
10084 fastpathTV.EncMapUintptrFloat32V(rv2i(rv).(map[uintptr]float32), e)
10085 }
10086 func (_ fastpathT) EncMapUintptrFloat32V(v map[uintptr]float32, e *Encoder) {
10087 ee, esep := e.e, e.hh.hasElemSeparators()
10088 ee.WriteMapStart(len(v))
10089 if e.h.Canonical {
10090 v2 := make([]uint64, len(v))
10091 var i int
10092 for k, _ := range v {
10093 v2[i] = uint64(k)
10094 i++
10095 }
10096 sort.Sort(uintSlice(v2))
10097 for _, k2 := range v2 {
10098 if esep {
10099 ee.WriteMapElemKey()
10100 }
10101 e.encode(uintptr(k2))
10102 if esep {
10103 ee.WriteMapElemValue()
10104 }
10105 ee.EncodeFloat32(v[uintptr(k2)])
10106 }
10107 } else {
10108 for k2, v2 := range v {
10109 if esep {
10110 ee.WriteMapElemKey()
10111 }
10112 e.encode(k2)
10113 if esep {
10114 ee.WriteMapElemValue()
10115 }
10116 ee.EncodeFloat32(v2)
10117 }
10118 }
10119 ee.WriteMapEnd()
10120 }
10121
10122 func (e *Encoder) fastpathEncMapUintptrFloat64R(f *codecFnInfo, rv reflect.Value) {
10123 fastpathTV.EncMapUintptrFloat64V(rv2i(rv).(map[uintptr]float64), e)
10124 }
10125 func (_ fastpathT) EncMapUintptrFloat64V(v map[uintptr]float64, e *Encoder) {
10126 ee, esep := e.e, e.hh.hasElemSeparators()
10127 ee.WriteMapStart(len(v))
10128 if e.h.Canonical {
10129 v2 := make([]uint64, len(v))
10130 var i int
10131 for k, _ := range v {
10132 v2[i] = uint64(k)
10133 i++
10134 }
10135 sort.Sort(uintSlice(v2))
10136 for _, k2 := range v2 {
10137 if esep {
10138 ee.WriteMapElemKey()
10139 }
10140 e.encode(uintptr(k2))
10141 if esep {
10142 ee.WriteMapElemValue()
10143 }
10144 ee.EncodeFloat64(v[uintptr(k2)])
10145 }
10146 } else {
10147 for k2, v2 := range v {
10148 if esep {
10149 ee.WriteMapElemKey()
10150 }
10151 e.encode(k2)
10152 if esep {
10153 ee.WriteMapElemValue()
10154 }
10155 ee.EncodeFloat64(v2)
10156 }
10157 }
10158 ee.WriteMapEnd()
10159 }
10160
10161 func (e *Encoder) fastpathEncMapUintptrBoolR(f *codecFnInfo, rv reflect.Value) {
10162 fastpathTV.EncMapUintptrBoolV(rv2i(rv).(map[uintptr]bool), e)
10163 }
10164 func (_ fastpathT) EncMapUintptrBoolV(v map[uintptr]bool, e *Encoder) {
10165 ee, esep := e.e, e.hh.hasElemSeparators()
10166 ee.WriteMapStart(len(v))
10167 if e.h.Canonical {
10168 v2 := make([]uint64, len(v))
10169 var i int
10170 for k, _ := range v {
10171 v2[i] = uint64(k)
10172 i++
10173 }
10174 sort.Sort(uintSlice(v2))
10175 for _, k2 := range v2 {
10176 if esep {
10177 ee.WriteMapElemKey()
10178 }
10179 e.encode(uintptr(k2))
10180 if esep {
10181 ee.WriteMapElemValue()
10182 }
10183 ee.EncodeBool(v[uintptr(k2)])
10184 }
10185 } else {
10186 for k2, v2 := range v {
10187 if esep {
10188 ee.WriteMapElemKey()
10189 }
10190 e.encode(k2)
10191 if esep {
10192 ee.WriteMapElemValue()
10193 }
10194 ee.EncodeBool(v2)
10195 }
10196 }
10197 ee.WriteMapEnd()
10198 }
10199
10200 func (e *Encoder) fastpathEncMapIntIntfR(f *codecFnInfo, rv reflect.Value) {
10201 fastpathTV.EncMapIntIntfV(rv2i(rv).(map[int]interface{}), e)
10202 }
10203 func (_ fastpathT) EncMapIntIntfV(v map[int]interface{}, e *Encoder) {
10204 ee, esep := e.e, e.hh.hasElemSeparators()
10205 ee.WriteMapStart(len(v))
10206 if e.h.Canonical {
10207 v2 := make([]int64, len(v))
10208 var i int
10209 for k, _ := range v {
10210 v2[i] = int64(k)
10211 i++
10212 }
10213 sort.Sort(intSlice(v2))
10214 for _, k2 := range v2 {
10215 if esep {
10216 ee.WriteMapElemKey()
10217 }
10218 ee.EncodeInt(int64(int(k2)))
10219 if esep {
10220 ee.WriteMapElemValue()
10221 }
10222 e.encode(v[int(k2)])
10223 }
10224 } else {
10225 for k2, v2 := range v {
10226 if esep {
10227 ee.WriteMapElemKey()
10228 }
10229 ee.EncodeInt(int64(k2))
10230 if esep {
10231 ee.WriteMapElemValue()
10232 }
10233 e.encode(v2)
10234 }
10235 }
10236 ee.WriteMapEnd()
10237 }
10238
10239 func (e *Encoder) fastpathEncMapIntStringR(f *codecFnInfo, rv reflect.Value) {
10240 fastpathTV.EncMapIntStringV(rv2i(rv).(map[int]string), e)
10241 }
10242 func (_ fastpathT) EncMapIntStringV(v map[int]string, e *Encoder) {
10243 ee, esep := e.e, e.hh.hasElemSeparators()
10244 ee.WriteMapStart(len(v))
10245 if e.h.Canonical {
10246 v2 := make([]int64, len(v))
10247 var i int
10248 for k, _ := range v {
10249 v2[i] = int64(k)
10250 i++
10251 }
10252 sort.Sort(intSlice(v2))
10253 for _, k2 := range v2 {
10254 if esep {
10255 ee.WriteMapElemKey()
10256 }
10257 ee.EncodeInt(int64(int(k2)))
10258 if esep {
10259 ee.WriteMapElemValue()
10260 }
10261 ee.EncodeString(c_UTF8, v[int(k2)])
10262 }
10263 } else {
10264 for k2, v2 := range v {
10265 if esep {
10266 ee.WriteMapElemKey()
10267 }
10268 ee.EncodeInt(int64(k2))
10269 if esep {
10270 ee.WriteMapElemValue()
10271 }
10272 ee.EncodeString(c_UTF8, v2)
10273 }
10274 }
10275 ee.WriteMapEnd()
10276 }
10277
10278 func (e *Encoder) fastpathEncMapIntUintR(f *codecFnInfo, rv reflect.Value) {
10279 fastpathTV.EncMapIntUintV(rv2i(rv).(map[int]uint), e)
10280 }
10281 func (_ fastpathT) EncMapIntUintV(v map[int]uint, e *Encoder) {
10282 ee, esep := e.e, e.hh.hasElemSeparators()
10283 ee.WriteMapStart(len(v))
10284 if e.h.Canonical {
10285 v2 := make([]int64, len(v))
10286 var i int
10287 for k, _ := range v {
10288 v2[i] = int64(k)
10289 i++
10290 }
10291 sort.Sort(intSlice(v2))
10292 for _, k2 := range v2 {
10293 if esep {
10294 ee.WriteMapElemKey()
10295 }
10296 ee.EncodeInt(int64(int(k2)))
10297 if esep {
10298 ee.WriteMapElemValue()
10299 }
10300 ee.EncodeUint(uint64(v[int(k2)]))
10301 }
10302 } else {
10303 for k2, v2 := range v {
10304 if esep {
10305 ee.WriteMapElemKey()
10306 }
10307 ee.EncodeInt(int64(k2))
10308 if esep {
10309 ee.WriteMapElemValue()
10310 }
10311 ee.EncodeUint(uint64(v2))
10312 }
10313 }
10314 ee.WriteMapEnd()
10315 }
10316
10317 func (e *Encoder) fastpathEncMapIntUint8R(f *codecFnInfo, rv reflect.Value) {
10318 fastpathTV.EncMapIntUint8V(rv2i(rv).(map[int]uint8), e)
10319 }
10320 func (_ fastpathT) EncMapIntUint8V(v map[int]uint8, e *Encoder) {
10321 ee, esep := e.e, e.hh.hasElemSeparators()
10322 ee.WriteMapStart(len(v))
10323 if e.h.Canonical {
10324 v2 := make([]int64, len(v))
10325 var i int
10326 for k, _ := range v {
10327 v2[i] = int64(k)
10328 i++
10329 }
10330 sort.Sort(intSlice(v2))
10331 for _, k2 := range v2 {
10332 if esep {
10333 ee.WriteMapElemKey()
10334 }
10335 ee.EncodeInt(int64(int(k2)))
10336 if esep {
10337 ee.WriteMapElemValue()
10338 }
10339 ee.EncodeUint(uint64(v[int(k2)]))
10340 }
10341 } else {
10342 for k2, v2 := range v {
10343 if esep {
10344 ee.WriteMapElemKey()
10345 }
10346 ee.EncodeInt(int64(k2))
10347 if esep {
10348 ee.WriteMapElemValue()
10349 }
10350 ee.EncodeUint(uint64(v2))
10351 }
10352 }
10353 ee.WriteMapEnd()
10354 }
10355
10356 func (e *Encoder) fastpathEncMapIntUint16R(f *codecFnInfo, rv reflect.Value) {
10357 fastpathTV.EncMapIntUint16V(rv2i(rv).(map[int]uint16), e)
10358 }
10359 func (_ fastpathT) EncMapIntUint16V(v map[int]uint16, e *Encoder) {
10360 ee, esep := e.e, e.hh.hasElemSeparators()
10361 ee.WriteMapStart(len(v))
10362 if e.h.Canonical {
10363 v2 := make([]int64, len(v))
10364 var i int
10365 for k, _ := range v {
10366 v2[i] = int64(k)
10367 i++
10368 }
10369 sort.Sort(intSlice(v2))
10370 for _, k2 := range v2 {
10371 if esep {
10372 ee.WriteMapElemKey()
10373 }
10374 ee.EncodeInt(int64(int(k2)))
10375 if esep {
10376 ee.WriteMapElemValue()
10377 }
10378 ee.EncodeUint(uint64(v[int(k2)]))
10379 }
10380 } else {
10381 for k2, v2 := range v {
10382 if esep {
10383 ee.WriteMapElemKey()
10384 }
10385 ee.EncodeInt(int64(k2))
10386 if esep {
10387 ee.WriteMapElemValue()
10388 }
10389 ee.EncodeUint(uint64(v2))
10390 }
10391 }
10392 ee.WriteMapEnd()
10393 }
10394
10395 func (e *Encoder) fastpathEncMapIntUint32R(f *codecFnInfo, rv reflect.Value) {
10396 fastpathTV.EncMapIntUint32V(rv2i(rv).(map[int]uint32), e)
10397 }
10398 func (_ fastpathT) EncMapIntUint32V(v map[int]uint32, e *Encoder) {
10399 ee, esep := e.e, e.hh.hasElemSeparators()
10400 ee.WriteMapStart(len(v))
10401 if e.h.Canonical {
10402 v2 := make([]int64, len(v))
10403 var i int
10404 for k, _ := range v {
10405 v2[i] = int64(k)
10406 i++
10407 }
10408 sort.Sort(intSlice(v2))
10409 for _, k2 := range v2 {
10410 if esep {
10411 ee.WriteMapElemKey()
10412 }
10413 ee.EncodeInt(int64(int(k2)))
10414 if esep {
10415 ee.WriteMapElemValue()
10416 }
10417 ee.EncodeUint(uint64(v[int(k2)]))
10418 }
10419 } else {
10420 for k2, v2 := range v {
10421 if esep {
10422 ee.WriteMapElemKey()
10423 }
10424 ee.EncodeInt(int64(k2))
10425 if esep {
10426 ee.WriteMapElemValue()
10427 }
10428 ee.EncodeUint(uint64(v2))
10429 }
10430 }
10431 ee.WriteMapEnd()
10432 }
10433
10434 func (e *Encoder) fastpathEncMapIntUint64R(f *codecFnInfo, rv reflect.Value) {
10435 fastpathTV.EncMapIntUint64V(rv2i(rv).(map[int]uint64), e)
10436 }
10437 func (_ fastpathT) EncMapIntUint64V(v map[int]uint64, e *Encoder) {
10438 ee, esep := e.e, e.hh.hasElemSeparators()
10439 ee.WriteMapStart(len(v))
10440 if e.h.Canonical {
10441 v2 := make([]int64, len(v))
10442 var i int
10443 for k, _ := range v {
10444 v2[i] = int64(k)
10445 i++
10446 }
10447 sort.Sort(intSlice(v2))
10448 for _, k2 := range v2 {
10449 if esep {
10450 ee.WriteMapElemKey()
10451 }
10452 ee.EncodeInt(int64(int(k2)))
10453 if esep {
10454 ee.WriteMapElemValue()
10455 }
10456 ee.EncodeUint(uint64(v[int(k2)]))
10457 }
10458 } else {
10459 for k2, v2 := range v {
10460 if esep {
10461 ee.WriteMapElemKey()
10462 }
10463 ee.EncodeInt(int64(k2))
10464 if esep {
10465 ee.WriteMapElemValue()
10466 }
10467 ee.EncodeUint(uint64(v2))
10468 }
10469 }
10470 ee.WriteMapEnd()
10471 }
10472
10473 func (e *Encoder) fastpathEncMapIntUintptrR(f *codecFnInfo, rv reflect.Value) {
10474 fastpathTV.EncMapIntUintptrV(rv2i(rv).(map[int]uintptr), e)
10475 }
10476 func (_ fastpathT) EncMapIntUintptrV(v map[int]uintptr, e *Encoder) {
10477 ee, esep := e.e, e.hh.hasElemSeparators()
10478 ee.WriteMapStart(len(v))
10479 if e.h.Canonical {
10480 v2 := make([]int64, len(v))
10481 var i int
10482 for k, _ := range v {
10483 v2[i] = int64(k)
10484 i++
10485 }
10486 sort.Sort(intSlice(v2))
10487 for _, k2 := range v2 {
10488 if esep {
10489 ee.WriteMapElemKey()
10490 }
10491 ee.EncodeInt(int64(int(k2)))
10492 if esep {
10493 ee.WriteMapElemValue()
10494 }
10495 e.encode(v[int(k2)])
10496 }
10497 } else {
10498 for k2, v2 := range v {
10499 if esep {
10500 ee.WriteMapElemKey()
10501 }
10502 ee.EncodeInt(int64(k2))
10503 if esep {
10504 ee.WriteMapElemValue()
10505 }
10506 e.encode(v2)
10507 }
10508 }
10509 ee.WriteMapEnd()
10510 }
10511
10512 func (e *Encoder) fastpathEncMapIntIntR(f *codecFnInfo, rv reflect.Value) {
10513 fastpathTV.EncMapIntIntV(rv2i(rv).(map[int]int), e)
10514 }
10515 func (_ fastpathT) EncMapIntIntV(v map[int]int, e *Encoder) {
10516 ee, esep := e.e, e.hh.hasElemSeparators()
10517 ee.WriteMapStart(len(v))
10518 if e.h.Canonical {
10519 v2 := make([]int64, len(v))
10520 var i int
10521 for k, _ := range v {
10522 v2[i] = int64(k)
10523 i++
10524 }
10525 sort.Sort(intSlice(v2))
10526 for _, k2 := range v2 {
10527 if esep {
10528 ee.WriteMapElemKey()
10529 }
10530 ee.EncodeInt(int64(int(k2)))
10531 if esep {
10532 ee.WriteMapElemValue()
10533 }
10534 ee.EncodeInt(int64(v[int(k2)]))
10535 }
10536 } else {
10537 for k2, v2 := range v {
10538 if esep {
10539 ee.WriteMapElemKey()
10540 }
10541 ee.EncodeInt(int64(k2))
10542 if esep {
10543 ee.WriteMapElemValue()
10544 }
10545 ee.EncodeInt(int64(v2))
10546 }
10547 }
10548 ee.WriteMapEnd()
10549 }
10550
10551 func (e *Encoder) fastpathEncMapIntInt8R(f *codecFnInfo, rv reflect.Value) {
10552 fastpathTV.EncMapIntInt8V(rv2i(rv).(map[int]int8), e)
10553 }
10554 func (_ fastpathT) EncMapIntInt8V(v map[int]int8, e *Encoder) {
10555 ee, esep := e.e, e.hh.hasElemSeparators()
10556 ee.WriteMapStart(len(v))
10557 if e.h.Canonical {
10558 v2 := make([]int64, len(v))
10559 var i int
10560 for k, _ := range v {
10561 v2[i] = int64(k)
10562 i++
10563 }
10564 sort.Sort(intSlice(v2))
10565 for _, k2 := range v2 {
10566 if esep {
10567 ee.WriteMapElemKey()
10568 }
10569 ee.EncodeInt(int64(int(k2)))
10570 if esep {
10571 ee.WriteMapElemValue()
10572 }
10573 ee.EncodeInt(int64(v[int(k2)]))
10574 }
10575 } else {
10576 for k2, v2 := range v {
10577 if esep {
10578 ee.WriteMapElemKey()
10579 }
10580 ee.EncodeInt(int64(k2))
10581 if esep {
10582 ee.WriteMapElemValue()
10583 }
10584 ee.EncodeInt(int64(v2))
10585 }
10586 }
10587 ee.WriteMapEnd()
10588 }
10589
10590 func (e *Encoder) fastpathEncMapIntInt16R(f *codecFnInfo, rv reflect.Value) {
10591 fastpathTV.EncMapIntInt16V(rv2i(rv).(map[int]int16), e)
10592 }
10593 func (_ fastpathT) EncMapIntInt16V(v map[int]int16, e *Encoder) {
10594 ee, esep := e.e, e.hh.hasElemSeparators()
10595 ee.WriteMapStart(len(v))
10596 if e.h.Canonical {
10597 v2 := make([]int64, len(v))
10598 var i int
10599 for k, _ := range v {
10600 v2[i] = int64(k)
10601 i++
10602 }
10603 sort.Sort(intSlice(v2))
10604 for _, k2 := range v2 {
10605 if esep {
10606 ee.WriteMapElemKey()
10607 }
10608 ee.EncodeInt(int64(int(k2)))
10609 if esep {
10610 ee.WriteMapElemValue()
10611 }
10612 ee.EncodeInt(int64(v[int(k2)]))
10613 }
10614 } else {
10615 for k2, v2 := range v {
10616 if esep {
10617 ee.WriteMapElemKey()
10618 }
10619 ee.EncodeInt(int64(k2))
10620 if esep {
10621 ee.WriteMapElemValue()
10622 }
10623 ee.EncodeInt(int64(v2))
10624 }
10625 }
10626 ee.WriteMapEnd()
10627 }
10628
10629 func (e *Encoder) fastpathEncMapIntInt32R(f *codecFnInfo, rv reflect.Value) {
10630 fastpathTV.EncMapIntInt32V(rv2i(rv).(map[int]int32), e)
10631 }
10632 func (_ fastpathT) EncMapIntInt32V(v map[int]int32, e *Encoder) {
10633 ee, esep := e.e, e.hh.hasElemSeparators()
10634 ee.WriteMapStart(len(v))
10635 if e.h.Canonical {
10636 v2 := make([]int64, len(v))
10637 var i int
10638 for k, _ := range v {
10639 v2[i] = int64(k)
10640 i++
10641 }
10642 sort.Sort(intSlice(v2))
10643 for _, k2 := range v2 {
10644 if esep {
10645 ee.WriteMapElemKey()
10646 }
10647 ee.EncodeInt(int64(int(k2)))
10648 if esep {
10649 ee.WriteMapElemValue()
10650 }
10651 ee.EncodeInt(int64(v[int(k2)]))
10652 }
10653 } else {
10654 for k2, v2 := range v {
10655 if esep {
10656 ee.WriteMapElemKey()
10657 }
10658 ee.EncodeInt(int64(k2))
10659 if esep {
10660 ee.WriteMapElemValue()
10661 }
10662 ee.EncodeInt(int64(v2))
10663 }
10664 }
10665 ee.WriteMapEnd()
10666 }
10667
10668 func (e *Encoder) fastpathEncMapIntInt64R(f *codecFnInfo, rv reflect.Value) {
10669 fastpathTV.EncMapIntInt64V(rv2i(rv).(map[int]int64), e)
10670 }
10671 func (_ fastpathT) EncMapIntInt64V(v map[int]int64, e *Encoder) {
10672 ee, esep := e.e, e.hh.hasElemSeparators()
10673 ee.WriteMapStart(len(v))
10674 if e.h.Canonical {
10675 v2 := make([]int64, len(v))
10676 var i int
10677 for k, _ := range v {
10678 v2[i] = int64(k)
10679 i++
10680 }
10681 sort.Sort(intSlice(v2))
10682 for _, k2 := range v2 {
10683 if esep {
10684 ee.WriteMapElemKey()
10685 }
10686 ee.EncodeInt(int64(int(k2)))
10687 if esep {
10688 ee.WriteMapElemValue()
10689 }
10690 ee.EncodeInt(int64(v[int(k2)]))
10691 }
10692 } else {
10693 for k2, v2 := range v {
10694 if esep {
10695 ee.WriteMapElemKey()
10696 }
10697 ee.EncodeInt(int64(k2))
10698 if esep {
10699 ee.WriteMapElemValue()
10700 }
10701 ee.EncodeInt(int64(v2))
10702 }
10703 }
10704 ee.WriteMapEnd()
10705 }
10706
10707 func (e *Encoder) fastpathEncMapIntFloat32R(f *codecFnInfo, rv reflect.Value) {
10708 fastpathTV.EncMapIntFloat32V(rv2i(rv).(map[int]float32), e)
10709 }
10710 func (_ fastpathT) EncMapIntFloat32V(v map[int]float32, e *Encoder) {
10711 ee, esep := e.e, e.hh.hasElemSeparators()
10712 ee.WriteMapStart(len(v))
10713 if e.h.Canonical {
10714 v2 := make([]int64, len(v))
10715 var i int
10716 for k, _ := range v {
10717 v2[i] = int64(k)
10718 i++
10719 }
10720 sort.Sort(intSlice(v2))
10721 for _, k2 := range v2 {
10722 if esep {
10723 ee.WriteMapElemKey()
10724 }
10725 ee.EncodeInt(int64(int(k2)))
10726 if esep {
10727 ee.WriteMapElemValue()
10728 }
10729 ee.EncodeFloat32(v[int(k2)])
10730 }
10731 } else {
10732 for k2, v2 := range v {
10733 if esep {
10734 ee.WriteMapElemKey()
10735 }
10736 ee.EncodeInt(int64(k2))
10737 if esep {
10738 ee.WriteMapElemValue()
10739 }
10740 ee.EncodeFloat32(v2)
10741 }
10742 }
10743 ee.WriteMapEnd()
10744 }
10745
10746 func (e *Encoder) fastpathEncMapIntFloat64R(f *codecFnInfo, rv reflect.Value) {
10747 fastpathTV.EncMapIntFloat64V(rv2i(rv).(map[int]float64), e)
10748 }
10749 func (_ fastpathT) EncMapIntFloat64V(v map[int]float64, e *Encoder) {
10750 ee, esep := e.e, e.hh.hasElemSeparators()
10751 ee.WriteMapStart(len(v))
10752 if e.h.Canonical {
10753 v2 := make([]int64, len(v))
10754 var i int
10755 for k, _ := range v {
10756 v2[i] = int64(k)
10757 i++
10758 }
10759 sort.Sort(intSlice(v2))
10760 for _, k2 := range v2 {
10761 if esep {
10762 ee.WriteMapElemKey()
10763 }
10764 ee.EncodeInt(int64(int(k2)))
10765 if esep {
10766 ee.WriteMapElemValue()
10767 }
10768 ee.EncodeFloat64(v[int(k2)])
10769 }
10770 } else {
10771 for k2, v2 := range v {
10772 if esep {
10773 ee.WriteMapElemKey()
10774 }
10775 ee.EncodeInt(int64(k2))
10776 if esep {
10777 ee.WriteMapElemValue()
10778 }
10779 ee.EncodeFloat64(v2)
10780 }
10781 }
10782 ee.WriteMapEnd()
10783 }
10784
10785 func (e *Encoder) fastpathEncMapIntBoolR(f *codecFnInfo, rv reflect.Value) {
10786 fastpathTV.EncMapIntBoolV(rv2i(rv).(map[int]bool), e)
10787 }
10788 func (_ fastpathT) EncMapIntBoolV(v map[int]bool, e *Encoder) {
10789 ee, esep := e.e, e.hh.hasElemSeparators()
10790 ee.WriteMapStart(len(v))
10791 if e.h.Canonical {
10792 v2 := make([]int64, len(v))
10793 var i int
10794 for k, _ := range v {
10795 v2[i] = int64(k)
10796 i++
10797 }
10798 sort.Sort(intSlice(v2))
10799 for _, k2 := range v2 {
10800 if esep {
10801 ee.WriteMapElemKey()
10802 }
10803 ee.EncodeInt(int64(int(k2)))
10804 if esep {
10805 ee.WriteMapElemValue()
10806 }
10807 ee.EncodeBool(v[int(k2)])
10808 }
10809 } else {
10810 for k2, v2 := range v {
10811 if esep {
10812 ee.WriteMapElemKey()
10813 }
10814 ee.EncodeInt(int64(k2))
10815 if esep {
10816 ee.WriteMapElemValue()
10817 }
10818 ee.EncodeBool(v2)
10819 }
10820 }
10821 ee.WriteMapEnd()
10822 }
10823
10824 func (e *Encoder) fastpathEncMapInt8IntfR(f *codecFnInfo, rv reflect.Value) {
10825 fastpathTV.EncMapInt8IntfV(rv2i(rv).(map[int8]interface{}), e)
10826 }
10827 func (_ fastpathT) EncMapInt8IntfV(v map[int8]interface{}, e *Encoder) {
10828 ee, esep := e.e, e.hh.hasElemSeparators()
10829 ee.WriteMapStart(len(v))
10830 if e.h.Canonical {
10831 v2 := make([]int64, len(v))
10832 var i int
10833 for k, _ := range v {
10834 v2[i] = int64(k)
10835 i++
10836 }
10837 sort.Sort(intSlice(v2))
10838 for _, k2 := range v2 {
10839 if esep {
10840 ee.WriteMapElemKey()
10841 }
10842 ee.EncodeInt(int64(int8(k2)))
10843 if esep {
10844 ee.WriteMapElemValue()
10845 }
10846 e.encode(v[int8(k2)])
10847 }
10848 } else {
10849 for k2, v2 := range v {
10850 if esep {
10851 ee.WriteMapElemKey()
10852 }
10853 ee.EncodeInt(int64(k2))
10854 if esep {
10855 ee.WriteMapElemValue()
10856 }
10857 e.encode(v2)
10858 }
10859 }
10860 ee.WriteMapEnd()
10861 }
10862
10863 func (e *Encoder) fastpathEncMapInt8StringR(f *codecFnInfo, rv reflect.Value) {
10864 fastpathTV.EncMapInt8StringV(rv2i(rv).(map[int8]string), e)
10865 }
10866 func (_ fastpathT) EncMapInt8StringV(v map[int8]string, e *Encoder) {
10867 ee, esep := e.e, e.hh.hasElemSeparators()
10868 ee.WriteMapStart(len(v))
10869 if e.h.Canonical {
10870 v2 := make([]int64, len(v))
10871 var i int
10872 for k, _ := range v {
10873 v2[i] = int64(k)
10874 i++
10875 }
10876 sort.Sort(intSlice(v2))
10877 for _, k2 := range v2 {
10878 if esep {
10879 ee.WriteMapElemKey()
10880 }
10881 ee.EncodeInt(int64(int8(k2)))
10882 if esep {
10883 ee.WriteMapElemValue()
10884 }
10885 ee.EncodeString(c_UTF8, v[int8(k2)])
10886 }
10887 } else {
10888 for k2, v2 := range v {
10889 if esep {
10890 ee.WriteMapElemKey()
10891 }
10892 ee.EncodeInt(int64(k2))
10893 if esep {
10894 ee.WriteMapElemValue()
10895 }
10896 ee.EncodeString(c_UTF8, v2)
10897 }
10898 }
10899 ee.WriteMapEnd()
10900 }
10901
10902 func (e *Encoder) fastpathEncMapInt8UintR(f *codecFnInfo, rv reflect.Value) {
10903 fastpathTV.EncMapInt8UintV(rv2i(rv).(map[int8]uint), e)
10904 }
10905 func (_ fastpathT) EncMapInt8UintV(v map[int8]uint, e *Encoder) {
10906 ee, esep := e.e, e.hh.hasElemSeparators()
10907 ee.WriteMapStart(len(v))
10908 if e.h.Canonical {
10909 v2 := make([]int64, len(v))
10910 var i int
10911 for k, _ := range v {
10912 v2[i] = int64(k)
10913 i++
10914 }
10915 sort.Sort(intSlice(v2))
10916 for _, k2 := range v2 {
10917 if esep {
10918 ee.WriteMapElemKey()
10919 }
10920 ee.EncodeInt(int64(int8(k2)))
10921 if esep {
10922 ee.WriteMapElemValue()
10923 }
10924 ee.EncodeUint(uint64(v[int8(k2)]))
10925 }
10926 } else {
10927 for k2, v2 := range v {
10928 if esep {
10929 ee.WriteMapElemKey()
10930 }
10931 ee.EncodeInt(int64(k2))
10932 if esep {
10933 ee.WriteMapElemValue()
10934 }
10935 ee.EncodeUint(uint64(v2))
10936 }
10937 }
10938 ee.WriteMapEnd()
10939 }
10940
10941 func (e *Encoder) fastpathEncMapInt8Uint8R(f *codecFnInfo, rv reflect.Value) {
10942 fastpathTV.EncMapInt8Uint8V(rv2i(rv).(map[int8]uint8), e)
10943 }
10944 func (_ fastpathT) EncMapInt8Uint8V(v map[int8]uint8, e *Encoder) {
10945 ee, esep := e.e, e.hh.hasElemSeparators()
10946 ee.WriteMapStart(len(v))
10947 if e.h.Canonical {
10948 v2 := make([]int64, len(v))
10949 var i int
10950 for k, _ := range v {
10951 v2[i] = int64(k)
10952 i++
10953 }
10954 sort.Sort(intSlice(v2))
10955 for _, k2 := range v2 {
10956 if esep {
10957 ee.WriteMapElemKey()
10958 }
10959 ee.EncodeInt(int64(int8(k2)))
10960 if esep {
10961 ee.WriteMapElemValue()
10962 }
10963 ee.EncodeUint(uint64(v[int8(k2)]))
10964 }
10965 } else {
10966 for k2, v2 := range v {
10967 if esep {
10968 ee.WriteMapElemKey()
10969 }
10970 ee.EncodeInt(int64(k2))
10971 if esep {
10972 ee.WriteMapElemValue()
10973 }
10974 ee.EncodeUint(uint64(v2))
10975 }
10976 }
10977 ee.WriteMapEnd()
10978 }
10979
10980 func (e *Encoder) fastpathEncMapInt8Uint16R(f *codecFnInfo, rv reflect.Value) {
10981 fastpathTV.EncMapInt8Uint16V(rv2i(rv).(map[int8]uint16), e)
10982 }
10983 func (_ fastpathT) EncMapInt8Uint16V(v map[int8]uint16, e *Encoder) {
10984 ee, esep := e.e, e.hh.hasElemSeparators()
10985 ee.WriteMapStart(len(v))
10986 if e.h.Canonical {
10987 v2 := make([]int64, len(v))
10988 var i int
10989 for k, _ := range v {
10990 v2[i] = int64(k)
10991 i++
10992 }
10993 sort.Sort(intSlice(v2))
10994 for _, k2 := range v2 {
10995 if esep {
10996 ee.WriteMapElemKey()
10997 }
10998 ee.EncodeInt(int64(int8(k2)))
10999 if esep {
11000 ee.WriteMapElemValue()
11001 }
11002 ee.EncodeUint(uint64(v[int8(k2)]))
11003 }
11004 } else {
11005 for k2, v2 := range v {
11006 if esep {
11007 ee.WriteMapElemKey()
11008 }
11009 ee.EncodeInt(int64(k2))
11010 if esep {
11011 ee.WriteMapElemValue()
11012 }
11013 ee.EncodeUint(uint64(v2))
11014 }
11015 }
11016 ee.WriteMapEnd()
11017 }
11018
11019 func (e *Encoder) fastpathEncMapInt8Uint32R(f *codecFnInfo, rv reflect.Value) {
11020 fastpathTV.EncMapInt8Uint32V(rv2i(rv).(map[int8]uint32), e)
11021 }
11022 func (_ fastpathT) EncMapInt8Uint32V(v map[int8]uint32, e *Encoder) {
11023 ee, esep := e.e, e.hh.hasElemSeparators()
11024 ee.WriteMapStart(len(v))
11025 if e.h.Canonical {
11026 v2 := make([]int64, len(v))
11027 var i int
11028 for k, _ := range v {
11029 v2[i] = int64(k)
11030 i++
11031 }
11032 sort.Sort(intSlice(v2))
11033 for _, k2 := range v2 {
11034 if esep {
11035 ee.WriteMapElemKey()
11036 }
11037 ee.EncodeInt(int64(int8(k2)))
11038 if esep {
11039 ee.WriteMapElemValue()
11040 }
11041 ee.EncodeUint(uint64(v[int8(k2)]))
11042 }
11043 } else {
11044 for k2, v2 := range v {
11045 if esep {
11046 ee.WriteMapElemKey()
11047 }
11048 ee.EncodeInt(int64(k2))
11049 if esep {
11050 ee.WriteMapElemValue()
11051 }
11052 ee.EncodeUint(uint64(v2))
11053 }
11054 }
11055 ee.WriteMapEnd()
11056 }
11057
11058 func (e *Encoder) fastpathEncMapInt8Uint64R(f *codecFnInfo, rv reflect.Value) {
11059 fastpathTV.EncMapInt8Uint64V(rv2i(rv).(map[int8]uint64), e)
11060 }
11061 func (_ fastpathT) EncMapInt8Uint64V(v map[int8]uint64, e *Encoder) {
11062 ee, esep := e.e, e.hh.hasElemSeparators()
11063 ee.WriteMapStart(len(v))
11064 if e.h.Canonical {
11065 v2 := make([]int64, len(v))
11066 var i int
11067 for k, _ := range v {
11068 v2[i] = int64(k)
11069 i++
11070 }
11071 sort.Sort(intSlice(v2))
11072 for _, k2 := range v2 {
11073 if esep {
11074 ee.WriteMapElemKey()
11075 }
11076 ee.EncodeInt(int64(int8(k2)))
11077 if esep {
11078 ee.WriteMapElemValue()
11079 }
11080 ee.EncodeUint(uint64(v[int8(k2)]))
11081 }
11082 } else {
11083 for k2, v2 := range v {
11084 if esep {
11085 ee.WriteMapElemKey()
11086 }
11087 ee.EncodeInt(int64(k2))
11088 if esep {
11089 ee.WriteMapElemValue()
11090 }
11091 ee.EncodeUint(uint64(v2))
11092 }
11093 }
11094 ee.WriteMapEnd()
11095 }
11096
11097 func (e *Encoder) fastpathEncMapInt8UintptrR(f *codecFnInfo, rv reflect.Value) {
11098 fastpathTV.EncMapInt8UintptrV(rv2i(rv).(map[int8]uintptr), e)
11099 }
11100 func (_ fastpathT) EncMapInt8UintptrV(v map[int8]uintptr, e *Encoder) {
11101 ee, esep := e.e, e.hh.hasElemSeparators()
11102 ee.WriteMapStart(len(v))
11103 if e.h.Canonical {
11104 v2 := make([]int64, len(v))
11105 var i int
11106 for k, _ := range v {
11107 v2[i] = int64(k)
11108 i++
11109 }
11110 sort.Sort(intSlice(v2))
11111 for _, k2 := range v2 {
11112 if esep {
11113 ee.WriteMapElemKey()
11114 }
11115 ee.EncodeInt(int64(int8(k2)))
11116 if esep {
11117 ee.WriteMapElemValue()
11118 }
11119 e.encode(v[int8(k2)])
11120 }
11121 } else {
11122 for k2, v2 := range v {
11123 if esep {
11124 ee.WriteMapElemKey()
11125 }
11126 ee.EncodeInt(int64(k2))
11127 if esep {
11128 ee.WriteMapElemValue()
11129 }
11130 e.encode(v2)
11131 }
11132 }
11133 ee.WriteMapEnd()
11134 }
11135
11136 func (e *Encoder) fastpathEncMapInt8IntR(f *codecFnInfo, rv reflect.Value) {
11137 fastpathTV.EncMapInt8IntV(rv2i(rv).(map[int8]int), e)
11138 }
11139 func (_ fastpathT) EncMapInt8IntV(v map[int8]int, e *Encoder) {
11140 ee, esep := e.e, e.hh.hasElemSeparators()
11141 ee.WriteMapStart(len(v))
11142 if e.h.Canonical {
11143 v2 := make([]int64, len(v))
11144 var i int
11145 for k, _ := range v {
11146 v2[i] = int64(k)
11147 i++
11148 }
11149 sort.Sort(intSlice(v2))
11150 for _, k2 := range v2 {
11151 if esep {
11152 ee.WriteMapElemKey()
11153 }
11154 ee.EncodeInt(int64(int8(k2)))
11155 if esep {
11156 ee.WriteMapElemValue()
11157 }
11158 ee.EncodeInt(int64(v[int8(k2)]))
11159 }
11160 } else {
11161 for k2, v2 := range v {
11162 if esep {
11163 ee.WriteMapElemKey()
11164 }
11165 ee.EncodeInt(int64(k2))
11166 if esep {
11167 ee.WriteMapElemValue()
11168 }
11169 ee.EncodeInt(int64(v2))
11170 }
11171 }
11172 ee.WriteMapEnd()
11173 }
11174
11175 func (e *Encoder) fastpathEncMapInt8Int8R(f *codecFnInfo, rv reflect.Value) {
11176 fastpathTV.EncMapInt8Int8V(rv2i(rv).(map[int8]int8), e)
11177 }
11178 func (_ fastpathT) EncMapInt8Int8V(v map[int8]int8, e *Encoder) {
11179 ee, esep := e.e, e.hh.hasElemSeparators()
11180 ee.WriteMapStart(len(v))
11181 if e.h.Canonical {
11182 v2 := make([]int64, len(v))
11183 var i int
11184 for k, _ := range v {
11185 v2[i] = int64(k)
11186 i++
11187 }
11188 sort.Sort(intSlice(v2))
11189 for _, k2 := range v2 {
11190 if esep {
11191 ee.WriteMapElemKey()
11192 }
11193 ee.EncodeInt(int64(int8(k2)))
11194 if esep {
11195 ee.WriteMapElemValue()
11196 }
11197 ee.EncodeInt(int64(v[int8(k2)]))
11198 }
11199 } else {
11200 for k2, v2 := range v {
11201 if esep {
11202 ee.WriteMapElemKey()
11203 }
11204 ee.EncodeInt(int64(k2))
11205 if esep {
11206 ee.WriteMapElemValue()
11207 }
11208 ee.EncodeInt(int64(v2))
11209 }
11210 }
11211 ee.WriteMapEnd()
11212 }
11213
11214 func (e *Encoder) fastpathEncMapInt8Int16R(f *codecFnInfo, rv reflect.Value) {
11215 fastpathTV.EncMapInt8Int16V(rv2i(rv).(map[int8]int16), e)
11216 }
11217 func (_ fastpathT) EncMapInt8Int16V(v map[int8]int16, e *Encoder) {
11218 ee, esep := e.e, e.hh.hasElemSeparators()
11219 ee.WriteMapStart(len(v))
11220 if e.h.Canonical {
11221 v2 := make([]int64, len(v))
11222 var i int
11223 for k, _ := range v {
11224 v2[i] = int64(k)
11225 i++
11226 }
11227 sort.Sort(intSlice(v2))
11228 for _, k2 := range v2 {
11229 if esep {
11230 ee.WriteMapElemKey()
11231 }
11232 ee.EncodeInt(int64(int8(k2)))
11233 if esep {
11234 ee.WriteMapElemValue()
11235 }
11236 ee.EncodeInt(int64(v[int8(k2)]))
11237 }
11238 } else {
11239 for k2, v2 := range v {
11240 if esep {
11241 ee.WriteMapElemKey()
11242 }
11243 ee.EncodeInt(int64(k2))
11244 if esep {
11245 ee.WriteMapElemValue()
11246 }
11247 ee.EncodeInt(int64(v2))
11248 }
11249 }
11250 ee.WriteMapEnd()
11251 }
11252
11253 func (e *Encoder) fastpathEncMapInt8Int32R(f *codecFnInfo, rv reflect.Value) {
11254 fastpathTV.EncMapInt8Int32V(rv2i(rv).(map[int8]int32), e)
11255 }
11256 func (_ fastpathT) EncMapInt8Int32V(v map[int8]int32, e *Encoder) {
11257 ee, esep := e.e, e.hh.hasElemSeparators()
11258 ee.WriteMapStart(len(v))
11259 if e.h.Canonical {
11260 v2 := make([]int64, len(v))
11261 var i int
11262 for k, _ := range v {
11263 v2[i] = int64(k)
11264 i++
11265 }
11266 sort.Sort(intSlice(v2))
11267 for _, k2 := range v2 {
11268 if esep {
11269 ee.WriteMapElemKey()
11270 }
11271 ee.EncodeInt(int64(int8(k2)))
11272 if esep {
11273 ee.WriteMapElemValue()
11274 }
11275 ee.EncodeInt(int64(v[int8(k2)]))
11276 }
11277 } else {
11278 for k2, v2 := range v {
11279 if esep {
11280 ee.WriteMapElemKey()
11281 }
11282 ee.EncodeInt(int64(k2))
11283 if esep {
11284 ee.WriteMapElemValue()
11285 }
11286 ee.EncodeInt(int64(v2))
11287 }
11288 }
11289 ee.WriteMapEnd()
11290 }
11291
11292 func (e *Encoder) fastpathEncMapInt8Int64R(f *codecFnInfo, rv reflect.Value) {
11293 fastpathTV.EncMapInt8Int64V(rv2i(rv).(map[int8]int64), e)
11294 }
11295 func (_ fastpathT) EncMapInt8Int64V(v map[int8]int64, e *Encoder) {
11296 ee, esep := e.e, e.hh.hasElemSeparators()
11297 ee.WriteMapStart(len(v))
11298 if e.h.Canonical {
11299 v2 := make([]int64, len(v))
11300 var i int
11301 for k, _ := range v {
11302 v2[i] = int64(k)
11303 i++
11304 }
11305 sort.Sort(intSlice(v2))
11306 for _, k2 := range v2 {
11307 if esep {
11308 ee.WriteMapElemKey()
11309 }
11310 ee.EncodeInt(int64(int8(k2)))
11311 if esep {
11312 ee.WriteMapElemValue()
11313 }
11314 ee.EncodeInt(int64(v[int8(k2)]))
11315 }
11316 } else {
11317 for k2, v2 := range v {
11318 if esep {
11319 ee.WriteMapElemKey()
11320 }
11321 ee.EncodeInt(int64(k2))
11322 if esep {
11323 ee.WriteMapElemValue()
11324 }
11325 ee.EncodeInt(int64(v2))
11326 }
11327 }
11328 ee.WriteMapEnd()
11329 }
11330
11331 func (e *Encoder) fastpathEncMapInt8Float32R(f *codecFnInfo, rv reflect.Value) {
11332 fastpathTV.EncMapInt8Float32V(rv2i(rv).(map[int8]float32), e)
11333 }
11334 func (_ fastpathT) EncMapInt8Float32V(v map[int8]float32, e *Encoder) {
11335 ee, esep := e.e, e.hh.hasElemSeparators()
11336 ee.WriteMapStart(len(v))
11337 if e.h.Canonical {
11338 v2 := make([]int64, len(v))
11339 var i int
11340 for k, _ := range v {
11341 v2[i] = int64(k)
11342 i++
11343 }
11344 sort.Sort(intSlice(v2))
11345 for _, k2 := range v2 {
11346 if esep {
11347 ee.WriteMapElemKey()
11348 }
11349 ee.EncodeInt(int64(int8(k2)))
11350 if esep {
11351 ee.WriteMapElemValue()
11352 }
11353 ee.EncodeFloat32(v[int8(k2)])
11354 }
11355 } else {
11356 for k2, v2 := range v {
11357 if esep {
11358 ee.WriteMapElemKey()
11359 }
11360 ee.EncodeInt(int64(k2))
11361 if esep {
11362 ee.WriteMapElemValue()
11363 }
11364 ee.EncodeFloat32(v2)
11365 }
11366 }
11367 ee.WriteMapEnd()
11368 }
11369
11370 func (e *Encoder) fastpathEncMapInt8Float64R(f *codecFnInfo, rv reflect.Value) {
11371 fastpathTV.EncMapInt8Float64V(rv2i(rv).(map[int8]float64), e)
11372 }
11373 func (_ fastpathT) EncMapInt8Float64V(v map[int8]float64, e *Encoder) {
11374 ee, esep := e.e, e.hh.hasElemSeparators()
11375 ee.WriteMapStart(len(v))
11376 if e.h.Canonical {
11377 v2 := make([]int64, len(v))
11378 var i int
11379 for k, _ := range v {
11380 v2[i] = int64(k)
11381 i++
11382 }
11383 sort.Sort(intSlice(v2))
11384 for _, k2 := range v2 {
11385 if esep {
11386 ee.WriteMapElemKey()
11387 }
11388 ee.EncodeInt(int64(int8(k2)))
11389 if esep {
11390 ee.WriteMapElemValue()
11391 }
11392 ee.EncodeFloat64(v[int8(k2)])
11393 }
11394 } else {
11395 for k2, v2 := range v {
11396 if esep {
11397 ee.WriteMapElemKey()
11398 }
11399 ee.EncodeInt(int64(k2))
11400 if esep {
11401 ee.WriteMapElemValue()
11402 }
11403 ee.EncodeFloat64(v2)
11404 }
11405 }
11406 ee.WriteMapEnd()
11407 }
11408
11409 func (e *Encoder) fastpathEncMapInt8BoolR(f *codecFnInfo, rv reflect.Value) {
11410 fastpathTV.EncMapInt8BoolV(rv2i(rv).(map[int8]bool), e)
11411 }
11412 func (_ fastpathT) EncMapInt8BoolV(v map[int8]bool, e *Encoder) {
11413 ee, esep := e.e, e.hh.hasElemSeparators()
11414 ee.WriteMapStart(len(v))
11415 if e.h.Canonical {
11416 v2 := make([]int64, len(v))
11417 var i int
11418 for k, _ := range v {
11419 v2[i] = int64(k)
11420 i++
11421 }
11422 sort.Sort(intSlice(v2))
11423 for _, k2 := range v2 {
11424 if esep {
11425 ee.WriteMapElemKey()
11426 }
11427 ee.EncodeInt(int64(int8(k2)))
11428 if esep {
11429 ee.WriteMapElemValue()
11430 }
11431 ee.EncodeBool(v[int8(k2)])
11432 }
11433 } else {
11434 for k2, v2 := range v {
11435 if esep {
11436 ee.WriteMapElemKey()
11437 }
11438 ee.EncodeInt(int64(k2))
11439 if esep {
11440 ee.WriteMapElemValue()
11441 }
11442 ee.EncodeBool(v2)
11443 }
11444 }
11445 ee.WriteMapEnd()
11446 }
11447
11448 func (e *Encoder) fastpathEncMapInt16IntfR(f *codecFnInfo, rv reflect.Value) {
11449 fastpathTV.EncMapInt16IntfV(rv2i(rv).(map[int16]interface{}), e)
11450 }
11451 func (_ fastpathT) EncMapInt16IntfV(v map[int16]interface{}, e *Encoder) {
11452 ee, esep := e.e, e.hh.hasElemSeparators()
11453 ee.WriteMapStart(len(v))
11454 if e.h.Canonical {
11455 v2 := make([]int64, len(v))
11456 var i int
11457 for k, _ := range v {
11458 v2[i] = int64(k)
11459 i++
11460 }
11461 sort.Sort(intSlice(v2))
11462 for _, k2 := range v2 {
11463 if esep {
11464 ee.WriteMapElemKey()
11465 }
11466 ee.EncodeInt(int64(int16(k2)))
11467 if esep {
11468 ee.WriteMapElemValue()
11469 }
11470 e.encode(v[int16(k2)])
11471 }
11472 } else {
11473 for k2, v2 := range v {
11474 if esep {
11475 ee.WriteMapElemKey()
11476 }
11477 ee.EncodeInt(int64(k2))
11478 if esep {
11479 ee.WriteMapElemValue()
11480 }
11481 e.encode(v2)
11482 }
11483 }
11484 ee.WriteMapEnd()
11485 }
11486
11487 func (e *Encoder) fastpathEncMapInt16StringR(f *codecFnInfo, rv reflect.Value) {
11488 fastpathTV.EncMapInt16StringV(rv2i(rv).(map[int16]string), e)
11489 }
11490 func (_ fastpathT) EncMapInt16StringV(v map[int16]string, e *Encoder) {
11491 ee, esep := e.e, e.hh.hasElemSeparators()
11492 ee.WriteMapStart(len(v))
11493 if e.h.Canonical {
11494 v2 := make([]int64, len(v))
11495 var i int
11496 for k, _ := range v {
11497 v2[i] = int64(k)
11498 i++
11499 }
11500 sort.Sort(intSlice(v2))
11501 for _, k2 := range v2 {
11502 if esep {
11503 ee.WriteMapElemKey()
11504 }
11505 ee.EncodeInt(int64(int16(k2)))
11506 if esep {
11507 ee.WriteMapElemValue()
11508 }
11509 ee.EncodeString(c_UTF8, v[int16(k2)])
11510 }
11511 } else {
11512 for k2, v2 := range v {
11513 if esep {
11514 ee.WriteMapElemKey()
11515 }
11516 ee.EncodeInt(int64(k2))
11517 if esep {
11518 ee.WriteMapElemValue()
11519 }
11520 ee.EncodeString(c_UTF8, v2)
11521 }
11522 }
11523 ee.WriteMapEnd()
11524 }
11525
11526 func (e *Encoder) fastpathEncMapInt16UintR(f *codecFnInfo, rv reflect.Value) {
11527 fastpathTV.EncMapInt16UintV(rv2i(rv).(map[int16]uint), e)
11528 }
11529 func (_ fastpathT) EncMapInt16UintV(v map[int16]uint, e *Encoder) {
11530 ee, esep := e.e, e.hh.hasElemSeparators()
11531 ee.WriteMapStart(len(v))
11532 if e.h.Canonical {
11533 v2 := make([]int64, len(v))
11534 var i int
11535 for k, _ := range v {
11536 v2[i] = int64(k)
11537 i++
11538 }
11539 sort.Sort(intSlice(v2))
11540 for _, k2 := range v2 {
11541 if esep {
11542 ee.WriteMapElemKey()
11543 }
11544 ee.EncodeInt(int64(int16(k2)))
11545 if esep {
11546 ee.WriteMapElemValue()
11547 }
11548 ee.EncodeUint(uint64(v[int16(k2)]))
11549 }
11550 } else {
11551 for k2, v2 := range v {
11552 if esep {
11553 ee.WriteMapElemKey()
11554 }
11555 ee.EncodeInt(int64(k2))
11556 if esep {
11557 ee.WriteMapElemValue()
11558 }
11559 ee.EncodeUint(uint64(v2))
11560 }
11561 }
11562 ee.WriteMapEnd()
11563 }
11564
11565 func (e *Encoder) fastpathEncMapInt16Uint8R(f *codecFnInfo, rv reflect.Value) {
11566 fastpathTV.EncMapInt16Uint8V(rv2i(rv).(map[int16]uint8), e)
11567 }
11568 func (_ fastpathT) EncMapInt16Uint8V(v map[int16]uint8, e *Encoder) {
11569 ee, esep := e.e, e.hh.hasElemSeparators()
11570 ee.WriteMapStart(len(v))
11571 if e.h.Canonical {
11572 v2 := make([]int64, len(v))
11573 var i int
11574 for k, _ := range v {
11575 v2[i] = int64(k)
11576 i++
11577 }
11578 sort.Sort(intSlice(v2))
11579 for _, k2 := range v2 {
11580 if esep {
11581 ee.WriteMapElemKey()
11582 }
11583 ee.EncodeInt(int64(int16(k2)))
11584 if esep {
11585 ee.WriteMapElemValue()
11586 }
11587 ee.EncodeUint(uint64(v[int16(k2)]))
11588 }
11589 } else {
11590 for k2, v2 := range v {
11591 if esep {
11592 ee.WriteMapElemKey()
11593 }
11594 ee.EncodeInt(int64(k2))
11595 if esep {
11596 ee.WriteMapElemValue()
11597 }
11598 ee.EncodeUint(uint64(v2))
11599 }
11600 }
11601 ee.WriteMapEnd()
11602 }
11603
11604 func (e *Encoder) fastpathEncMapInt16Uint16R(f *codecFnInfo, rv reflect.Value) {
11605 fastpathTV.EncMapInt16Uint16V(rv2i(rv).(map[int16]uint16), e)
11606 }
11607 func (_ fastpathT) EncMapInt16Uint16V(v map[int16]uint16, e *Encoder) {
11608 ee, esep := e.e, e.hh.hasElemSeparators()
11609 ee.WriteMapStart(len(v))
11610 if e.h.Canonical {
11611 v2 := make([]int64, len(v))
11612 var i int
11613 for k, _ := range v {
11614 v2[i] = int64(k)
11615 i++
11616 }
11617 sort.Sort(intSlice(v2))
11618 for _, k2 := range v2 {
11619 if esep {
11620 ee.WriteMapElemKey()
11621 }
11622 ee.EncodeInt(int64(int16(k2)))
11623 if esep {
11624 ee.WriteMapElemValue()
11625 }
11626 ee.EncodeUint(uint64(v[int16(k2)]))
11627 }
11628 } else {
11629 for k2, v2 := range v {
11630 if esep {
11631 ee.WriteMapElemKey()
11632 }
11633 ee.EncodeInt(int64(k2))
11634 if esep {
11635 ee.WriteMapElemValue()
11636 }
11637 ee.EncodeUint(uint64(v2))
11638 }
11639 }
11640 ee.WriteMapEnd()
11641 }
11642
11643 func (e *Encoder) fastpathEncMapInt16Uint32R(f *codecFnInfo, rv reflect.Value) {
11644 fastpathTV.EncMapInt16Uint32V(rv2i(rv).(map[int16]uint32), e)
11645 }
11646 func (_ fastpathT) EncMapInt16Uint32V(v map[int16]uint32, e *Encoder) {
11647 ee, esep := e.e, e.hh.hasElemSeparators()
11648 ee.WriteMapStart(len(v))
11649 if e.h.Canonical {
11650 v2 := make([]int64, len(v))
11651 var i int
11652 for k, _ := range v {
11653 v2[i] = int64(k)
11654 i++
11655 }
11656 sort.Sort(intSlice(v2))
11657 for _, k2 := range v2 {
11658 if esep {
11659 ee.WriteMapElemKey()
11660 }
11661 ee.EncodeInt(int64(int16(k2)))
11662 if esep {
11663 ee.WriteMapElemValue()
11664 }
11665 ee.EncodeUint(uint64(v[int16(k2)]))
11666 }
11667 } else {
11668 for k2, v2 := range v {
11669 if esep {
11670 ee.WriteMapElemKey()
11671 }
11672 ee.EncodeInt(int64(k2))
11673 if esep {
11674 ee.WriteMapElemValue()
11675 }
11676 ee.EncodeUint(uint64(v2))
11677 }
11678 }
11679 ee.WriteMapEnd()
11680 }
11681
11682 func (e *Encoder) fastpathEncMapInt16Uint64R(f *codecFnInfo, rv reflect.Value) {
11683 fastpathTV.EncMapInt16Uint64V(rv2i(rv).(map[int16]uint64), e)
11684 }
11685 func (_ fastpathT) EncMapInt16Uint64V(v map[int16]uint64, e *Encoder) {
11686 ee, esep := e.e, e.hh.hasElemSeparators()
11687 ee.WriteMapStart(len(v))
11688 if e.h.Canonical {
11689 v2 := make([]int64, len(v))
11690 var i int
11691 for k, _ := range v {
11692 v2[i] = int64(k)
11693 i++
11694 }
11695 sort.Sort(intSlice(v2))
11696 for _, k2 := range v2 {
11697 if esep {
11698 ee.WriteMapElemKey()
11699 }
11700 ee.EncodeInt(int64(int16(k2)))
11701 if esep {
11702 ee.WriteMapElemValue()
11703 }
11704 ee.EncodeUint(uint64(v[int16(k2)]))
11705 }
11706 } else {
11707 for k2, v2 := range v {
11708 if esep {
11709 ee.WriteMapElemKey()
11710 }
11711 ee.EncodeInt(int64(k2))
11712 if esep {
11713 ee.WriteMapElemValue()
11714 }
11715 ee.EncodeUint(uint64(v2))
11716 }
11717 }
11718 ee.WriteMapEnd()
11719 }
11720
11721 func (e *Encoder) fastpathEncMapInt16UintptrR(f *codecFnInfo, rv reflect.Value) {
11722 fastpathTV.EncMapInt16UintptrV(rv2i(rv).(map[int16]uintptr), e)
11723 }
11724 func (_ fastpathT) EncMapInt16UintptrV(v map[int16]uintptr, e *Encoder) {
11725 ee, esep := e.e, e.hh.hasElemSeparators()
11726 ee.WriteMapStart(len(v))
11727 if e.h.Canonical {
11728 v2 := make([]int64, len(v))
11729 var i int
11730 for k, _ := range v {
11731 v2[i] = int64(k)
11732 i++
11733 }
11734 sort.Sort(intSlice(v2))
11735 for _, k2 := range v2 {
11736 if esep {
11737 ee.WriteMapElemKey()
11738 }
11739 ee.EncodeInt(int64(int16(k2)))
11740 if esep {
11741 ee.WriteMapElemValue()
11742 }
11743 e.encode(v[int16(k2)])
11744 }
11745 } else {
11746 for k2, v2 := range v {
11747 if esep {
11748 ee.WriteMapElemKey()
11749 }
11750 ee.EncodeInt(int64(k2))
11751 if esep {
11752 ee.WriteMapElemValue()
11753 }
11754 e.encode(v2)
11755 }
11756 }
11757 ee.WriteMapEnd()
11758 }
11759
11760 func (e *Encoder) fastpathEncMapInt16IntR(f *codecFnInfo, rv reflect.Value) {
11761 fastpathTV.EncMapInt16IntV(rv2i(rv).(map[int16]int), e)
11762 }
11763 func (_ fastpathT) EncMapInt16IntV(v map[int16]int, e *Encoder) {
11764 ee, esep := e.e, e.hh.hasElemSeparators()
11765 ee.WriteMapStart(len(v))
11766 if e.h.Canonical {
11767 v2 := make([]int64, len(v))
11768 var i int
11769 for k, _ := range v {
11770 v2[i] = int64(k)
11771 i++
11772 }
11773 sort.Sort(intSlice(v2))
11774 for _, k2 := range v2 {
11775 if esep {
11776 ee.WriteMapElemKey()
11777 }
11778 ee.EncodeInt(int64(int16(k2)))
11779 if esep {
11780 ee.WriteMapElemValue()
11781 }
11782 ee.EncodeInt(int64(v[int16(k2)]))
11783 }
11784 } else {
11785 for k2, v2 := range v {
11786 if esep {
11787 ee.WriteMapElemKey()
11788 }
11789 ee.EncodeInt(int64(k2))
11790 if esep {
11791 ee.WriteMapElemValue()
11792 }
11793 ee.EncodeInt(int64(v2))
11794 }
11795 }
11796 ee.WriteMapEnd()
11797 }
11798
11799 func (e *Encoder) fastpathEncMapInt16Int8R(f *codecFnInfo, rv reflect.Value) {
11800 fastpathTV.EncMapInt16Int8V(rv2i(rv).(map[int16]int8), e)
11801 }
11802 func (_ fastpathT) EncMapInt16Int8V(v map[int16]int8, e *Encoder) {
11803 ee, esep := e.e, e.hh.hasElemSeparators()
11804 ee.WriteMapStart(len(v))
11805 if e.h.Canonical {
11806 v2 := make([]int64, len(v))
11807 var i int
11808 for k, _ := range v {
11809 v2[i] = int64(k)
11810 i++
11811 }
11812 sort.Sort(intSlice(v2))
11813 for _, k2 := range v2 {
11814 if esep {
11815 ee.WriteMapElemKey()
11816 }
11817 ee.EncodeInt(int64(int16(k2)))
11818 if esep {
11819 ee.WriteMapElemValue()
11820 }
11821 ee.EncodeInt(int64(v[int16(k2)]))
11822 }
11823 } else {
11824 for k2, v2 := range v {
11825 if esep {
11826 ee.WriteMapElemKey()
11827 }
11828 ee.EncodeInt(int64(k2))
11829 if esep {
11830 ee.WriteMapElemValue()
11831 }
11832 ee.EncodeInt(int64(v2))
11833 }
11834 }
11835 ee.WriteMapEnd()
11836 }
11837
11838 func (e *Encoder) fastpathEncMapInt16Int16R(f *codecFnInfo, rv reflect.Value) {
11839 fastpathTV.EncMapInt16Int16V(rv2i(rv).(map[int16]int16), e)
11840 }
11841 func (_ fastpathT) EncMapInt16Int16V(v map[int16]int16, e *Encoder) {
11842 ee, esep := e.e, e.hh.hasElemSeparators()
11843 ee.WriteMapStart(len(v))
11844 if e.h.Canonical {
11845 v2 := make([]int64, len(v))
11846 var i int
11847 for k, _ := range v {
11848 v2[i] = int64(k)
11849 i++
11850 }
11851 sort.Sort(intSlice(v2))
11852 for _, k2 := range v2 {
11853 if esep {
11854 ee.WriteMapElemKey()
11855 }
11856 ee.EncodeInt(int64(int16(k2)))
11857 if esep {
11858 ee.WriteMapElemValue()
11859 }
11860 ee.EncodeInt(int64(v[int16(k2)]))
11861 }
11862 } else {
11863 for k2, v2 := range v {
11864 if esep {
11865 ee.WriteMapElemKey()
11866 }
11867 ee.EncodeInt(int64(k2))
11868 if esep {
11869 ee.WriteMapElemValue()
11870 }
11871 ee.EncodeInt(int64(v2))
11872 }
11873 }
11874 ee.WriteMapEnd()
11875 }
11876
11877 func (e *Encoder) fastpathEncMapInt16Int32R(f *codecFnInfo, rv reflect.Value) {
11878 fastpathTV.EncMapInt16Int32V(rv2i(rv).(map[int16]int32), e)
11879 }
11880 func (_ fastpathT) EncMapInt16Int32V(v map[int16]int32, e *Encoder) {
11881 ee, esep := e.e, e.hh.hasElemSeparators()
11882 ee.WriteMapStart(len(v))
11883 if e.h.Canonical {
11884 v2 := make([]int64, len(v))
11885 var i int
11886 for k, _ := range v {
11887 v2[i] = int64(k)
11888 i++
11889 }
11890 sort.Sort(intSlice(v2))
11891 for _, k2 := range v2 {
11892 if esep {
11893 ee.WriteMapElemKey()
11894 }
11895 ee.EncodeInt(int64(int16(k2)))
11896 if esep {
11897 ee.WriteMapElemValue()
11898 }
11899 ee.EncodeInt(int64(v[int16(k2)]))
11900 }
11901 } else {
11902 for k2, v2 := range v {
11903 if esep {
11904 ee.WriteMapElemKey()
11905 }
11906 ee.EncodeInt(int64(k2))
11907 if esep {
11908 ee.WriteMapElemValue()
11909 }
11910 ee.EncodeInt(int64(v2))
11911 }
11912 }
11913 ee.WriteMapEnd()
11914 }
11915
11916 func (e *Encoder) fastpathEncMapInt16Int64R(f *codecFnInfo, rv reflect.Value) {
11917 fastpathTV.EncMapInt16Int64V(rv2i(rv).(map[int16]int64), e)
11918 }
11919 func (_ fastpathT) EncMapInt16Int64V(v map[int16]int64, e *Encoder) {
11920 ee, esep := e.e, e.hh.hasElemSeparators()
11921 ee.WriteMapStart(len(v))
11922 if e.h.Canonical {
11923 v2 := make([]int64, len(v))
11924 var i int
11925 for k, _ := range v {
11926 v2[i] = int64(k)
11927 i++
11928 }
11929 sort.Sort(intSlice(v2))
11930 for _, k2 := range v2 {
11931 if esep {
11932 ee.WriteMapElemKey()
11933 }
11934 ee.EncodeInt(int64(int16(k2)))
11935 if esep {
11936 ee.WriteMapElemValue()
11937 }
11938 ee.EncodeInt(int64(v[int16(k2)]))
11939 }
11940 } else {
11941 for k2, v2 := range v {
11942 if esep {
11943 ee.WriteMapElemKey()
11944 }
11945 ee.EncodeInt(int64(k2))
11946 if esep {
11947 ee.WriteMapElemValue()
11948 }
11949 ee.EncodeInt(int64(v2))
11950 }
11951 }
11952 ee.WriteMapEnd()
11953 }
11954
11955 func (e *Encoder) fastpathEncMapInt16Float32R(f *codecFnInfo, rv reflect.Value) {
11956 fastpathTV.EncMapInt16Float32V(rv2i(rv).(map[int16]float32), e)
11957 }
11958 func (_ fastpathT) EncMapInt16Float32V(v map[int16]float32, e *Encoder) {
11959 ee, esep := e.e, e.hh.hasElemSeparators()
11960 ee.WriteMapStart(len(v))
11961 if e.h.Canonical {
11962 v2 := make([]int64, len(v))
11963 var i int
11964 for k, _ := range v {
11965 v2[i] = int64(k)
11966 i++
11967 }
11968 sort.Sort(intSlice(v2))
11969 for _, k2 := range v2 {
11970 if esep {
11971 ee.WriteMapElemKey()
11972 }
11973 ee.EncodeInt(int64(int16(k2)))
11974 if esep {
11975 ee.WriteMapElemValue()
11976 }
11977 ee.EncodeFloat32(v[int16(k2)])
11978 }
11979 } else {
11980 for k2, v2 := range v {
11981 if esep {
11982 ee.WriteMapElemKey()
11983 }
11984 ee.EncodeInt(int64(k2))
11985 if esep {
11986 ee.WriteMapElemValue()
11987 }
11988 ee.EncodeFloat32(v2)
11989 }
11990 }
11991 ee.WriteMapEnd()
11992 }
11993
11994 func (e *Encoder) fastpathEncMapInt16Float64R(f *codecFnInfo, rv reflect.Value) {
11995 fastpathTV.EncMapInt16Float64V(rv2i(rv).(map[int16]float64), e)
11996 }
11997 func (_ fastpathT) EncMapInt16Float64V(v map[int16]float64, e *Encoder) {
11998 ee, esep := e.e, e.hh.hasElemSeparators()
11999 ee.WriteMapStart(len(v))
12000 if e.h.Canonical {
12001 v2 := make([]int64, len(v))
12002 var i int
12003 for k, _ := range v {
12004 v2[i] = int64(k)
12005 i++
12006 }
12007 sort.Sort(intSlice(v2))
12008 for _, k2 := range v2 {
12009 if esep {
12010 ee.WriteMapElemKey()
12011 }
12012 ee.EncodeInt(int64(int16(k2)))
12013 if esep {
12014 ee.WriteMapElemValue()
12015 }
12016 ee.EncodeFloat64(v[int16(k2)])
12017 }
12018 } else {
12019 for k2, v2 := range v {
12020 if esep {
12021 ee.WriteMapElemKey()
12022 }
12023 ee.EncodeInt(int64(k2))
12024 if esep {
12025 ee.WriteMapElemValue()
12026 }
12027 ee.EncodeFloat64(v2)
12028 }
12029 }
12030 ee.WriteMapEnd()
12031 }
12032
12033 func (e *Encoder) fastpathEncMapInt16BoolR(f *codecFnInfo, rv reflect.Value) {
12034 fastpathTV.EncMapInt16BoolV(rv2i(rv).(map[int16]bool), e)
12035 }
12036 func (_ fastpathT) EncMapInt16BoolV(v map[int16]bool, e *Encoder) {
12037 ee, esep := e.e, e.hh.hasElemSeparators()
12038 ee.WriteMapStart(len(v))
12039 if e.h.Canonical {
12040 v2 := make([]int64, len(v))
12041 var i int
12042 for k, _ := range v {
12043 v2[i] = int64(k)
12044 i++
12045 }
12046 sort.Sort(intSlice(v2))
12047 for _, k2 := range v2 {
12048 if esep {
12049 ee.WriteMapElemKey()
12050 }
12051 ee.EncodeInt(int64(int16(k2)))
12052 if esep {
12053 ee.WriteMapElemValue()
12054 }
12055 ee.EncodeBool(v[int16(k2)])
12056 }
12057 } else {
12058 for k2, v2 := range v {
12059 if esep {
12060 ee.WriteMapElemKey()
12061 }
12062 ee.EncodeInt(int64(k2))
12063 if esep {
12064 ee.WriteMapElemValue()
12065 }
12066 ee.EncodeBool(v2)
12067 }
12068 }
12069 ee.WriteMapEnd()
12070 }
12071
12072 func (e *Encoder) fastpathEncMapInt32IntfR(f *codecFnInfo, rv reflect.Value) {
12073 fastpathTV.EncMapInt32IntfV(rv2i(rv).(map[int32]interface{}), e)
12074 }
12075 func (_ fastpathT) EncMapInt32IntfV(v map[int32]interface{}, e *Encoder) {
12076 ee, esep := e.e, e.hh.hasElemSeparators()
12077 ee.WriteMapStart(len(v))
12078 if e.h.Canonical {
12079 v2 := make([]int64, len(v))
12080 var i int
12081 for k, _ := range v {
12082 v2[i] = int64(k)
12083 i++
12084 }
12085 sort.Sort(intSlice(v2))
12086 for _, k2 := range v2 {
12087 if esep {
12088 ee.WriteMapElemKey()
12089 }
12090 ee.EncodeInt(int64(int32(k2)))
12091 if esep {
12092 ee.WriteMapElemValue()
12093 }
12094 e.encode(v[int32(k2)])
12095 }
12096 } else {
12097 for k2, v2 := range v {
12098 if esep {
12099 ee.WriteMapElemKey()
12100 }
12101 ee.EncodeInt(int64(k2))
12102 if esep {
12103 ee.WriteMapElemValue()
12104 }
12105 e.encode(v2)
12106 }
12107 }
12108 ee.WriteMapEnd()
12109 }
12110
12111 func (e *Encoder) fastpathEncMapInt32StringR(f *codecFnInfo, rv reflect.Value) {
12112 fastpathTV.EncMapInt32StringV(rv2i(rv).(map[int32]string), e)
12113 }
12114 func (_ fastpathT) EncMapInt32StringV(v map[int32]string, e *Encoder) {
12115 ee, esep := e.e, e.hh.hasElemSeparators()
12116 ee.WriteMapStart(len(v))
12117 if e.h.Canonical {
12118 v2 := make([]int64, len(v))
12119 var i int
12120 for k, _ := range v {
12121 v2[i] = int64(k)
12122 i++
12123 }
12124 sort.Sort(intSlice(v2))
12125 for _, k2 := range v2 {
12126 if esep {
12127 ee.WriteMapElemKey()
12128 }
12129 ee.EncodeInt(int64(int32(k2)))
12130 if esep {
12131 ee.WriteMapElemValue()
12132 }
12133 ee.EncodeString(c_UTF8, v[int32(k2)])
12134 }
12135 } else {
12136 for k2, v2 := range v {
12137 if esep {
12138 ee.WriteMapElemKey()
12139 }
12140 ee.EncodeInt(int64(k2))
12141 if esep {
12142 ee.WriteMapElemValue()
12143 }
12144 ee.EncodeString(c_UTF8, v2)
12145 }
12146 }
12147 ee.WriteMapEnd()
12148 }
12149
12150 func (e *Encoder) fastpathEncMapInt32UintR(f *codecFnInfo, rv reflect.Value) {
12151 fastpathTV.EncMapInt32UintV(rv2i(rv).(map[int32]uint), e)
12152 }
12153 func (_ fastpathT) EncMapInt32UintV(v map[int32]uint, e *Encoder) {
12154 ee, esep := e.e, e.hh.hasElemSeparators()
12155 ee.WriteMapStart(len(v))
12156 if e.h.Canonical {
12157 v2 := make([]int64, len(v))
12158 var i int
12159 for k, _ := range v {
12160 v2[i] = int64(k)
12161 i++
12162 }
12163 sort.Sort(intSlice(v2))
12164 for _, k2 := range v2 {
12165 if esep {
12166 ee.WriteMapElemKey()
12167 }
12168 ee.EncodeInt(int64(int32(k2)))
12169 if esep {
12170 ee.WriteMapElemValue()
12171 }
12172 ee.EncodeUint(uint64(v[int32(k2)]))
12173 }
12174 } else {
12175 for k2, v2 := range v {
12176 if esep {
12177 ee.WriteMapElemKey()
12178 }
12179 ee.EncodeInt(int64(k2))
12180 if esep {
12181 ee.WriteMapElemValue()
12182 }
12183 ee.EncodeUint(uint64(v2))
12184 }
12185 }
12186 ee.WriteMapEnd()
12187 }
12188
12189 func (e *Encoder) fastpathEncMapInt32Uint8R(f *codecFnInfo, rv reflect.Value) {
12190 fastpathTV.EncMapInt32Uint8V(rv2i(rv).(map[int32]uint8), e)
12191 }
12192 func (_ fastpathT) EncMapInt32Uint8V(v map[int32]uint8, e *Encoder) {
12193 ee, esep := e.e, e.hh.hasElemSeparators()
12194 ee.WriteMapStart(len(v))
12195 if e.h.Canonical {
12196 v2 := make([]int64, len(v))
12197 var i int
12198 for k, _ := range v {
12199 v2[i] = int64(k)
12200 i++
12201 }
12202 sort.Sort(intSlice(v2))
12203 for _, k2 := range v2 {
12204 if esep {
12205 ee.WriteMapElemKey()
12206 }
12207 ee.EncodeInt(int64(int32(k2)))
12208 if esep {
12209 ee.WriteMapElemValue()
12210 }
12211 ee.EncodeUint(uint64(v[int32(k2)]))
12212 }
12213 } else {
12214 for k2, v2 := range v {
12215 if esep {
12216 ee.WriteMapElemKey()
12217 }
12218 ee.EncodeInt(int64(k2))
12219 if esep {
12220 ee.WriteMapElemValue()
12221 }
12222 ee.EncodeUint(uint64(v2))
12223 }
12224 }
12225 ee.WriteMapEnd()
12226 }
12227
12228 func (e *Encoder) fastpathEncMapInt32Uint16R(f *codecFnInfo, rv reflect.Value) {
12229 fastpathTV.EncMapInt32Uint16V(rv2i(rv).(map[int32]uint16), e)
12230 }
12231 func (_ fastpathT) EncMapInt32Uint16V(v map[int32]uint16, e *Encoder) {
12232 ee, esep := e.e, e.hh.hasElemSeparators()
12233 ee.WriteMapStart(len(v))
12234 if e.h.Canonical {
12235 v2 := make([]int64, len(v))
12236 var i int
12237 for k, _ := range v {
12238 v2[i] = int64(k)
12239 i++
12240 }
12241 sort.Sort(intSlice(v2))
12242 for _, k2 := range v2 {
12243 if esep {
12244 ee.WriteMapElemKey()
12245 }
12246 ee.EncodeInt(int64(int32(k2)))
12247 if esep {
12248 ee.WriteMapElemValue()
12249 }
12250 ee.EncodeUint(uint64(v[int32(k2)]))
12251 }
12252 } else {
12253 for k2, v2 := range v {
12254 if esep {
12255 ee.WriteMapElemKey()
12256 }
12257 ee.EncodeInt(int64(k2))
12258 if esep {
12259 ee.WriteMapElemValue()
12260 }
12261 ee.EncodeUint(uint64(v2))
12262 }
12263 }
12264 ee.WriteMapEnd()
12265 }
12266
12267 func (e *Encoder) fastpathEncMapInt32Uint32R(f *codecFnInfo, rv reflect.Value) {
12268 fastpathTV.EncMapInt32Uint32V(rv2i(rv).(map[int32]uint32), e)
12269 }
12270 func (_ fastpathT) EncMapInt32Uint32V(v map[int32]uint32, e *Encoder) {
12271 ee, esep := e.e, e.hh.hasElemSeparators()
12272 ee.WriteMapStart(len(v))
12273 if e.h.Canonical {
12274 v2 := make([]int64, len(v))
12275 var i int
12276 for k, _ := range v {
12277 v2[i] = int64(k)
12278 i++
12279 }
12280 sort.Sort(intSlice(v2))
12281 for _, k2 := range v2 {
12282 if esep {
12283 ee.WriteMapElemKey()
12284 }
12285 ee.EncodeInt(int64(int32(k2)))
12286 if esep {
12287 ee.WriteMapElemValue()
12288 }
12289 ee.EncodeUint(uint64(v[int32(k2)]))
12290 }
12291 } else {
12292 for k2, v2 := range v {
12293 if esep {
12294 ee.WriteMapElemKey()
12295 }
12296 ee.EncodeInt(int64(k2))
12297 if esep {
12298 ee.WriteMapElemValue()
12299 }
12300 ee.EncodeUint(uint64(v2))
12301 }
12302 }
12303 ee.WriteMapEnd()
12304 }
12305
12306 func (e *Encoder) fastpathEncMapInt32Uint64R(f *codecFnInfo, rv reflect.Value) {
12307 fastpathTV.EncMapInt32Uint64V(rv2i(rv).(map[int32]uint64), e)
12308 }
12309 func (_ fastpathT) EncMapInt32Uint64V(v map[int32]uint64, e *Encoder) {
12310 ee, esep := e.e, e.hh.hasElemSeparators()
12311 ee.WriteMapStart(len(v))
12312 if e.h.Canonical {
12313 v2 := make([]int64, len(v))
12314 var i int
12315 for k, _ := range v {
12316 v2[i] = int64(k)
12317 i++
12318 }
12319 sort.Sort(intSlice(v2))
12320 for _, k2 := range v2 {
12321 if esep {
12322 ee.WriteMapElemKey()
12323 }
12324 ee.EncodeInt(int64(int32(k2)))
12325 if esep {
12326 ee.WriteMapElemValue()
12327 }
12328 ee.EncodeUint(uint64(v[int32(k2)]))
12329 }
12330 } else {
12331 for k2, v2 := range v {
12332 if esep {
12333 ee.WriteMapElemKey()
12334 }
12335 ee.EncodeInt(int64(k2))
12336 if esep {
12337 ee.WriteMapElemValue()
12338 }
12339 ee.EncodeUint(uint64(v2))
12340 }
12341 }
12342 ee.WriteMapEnd()
12343 }
12344
12345 func (e *Encoder) fastpathEncMapInt32UintptrR(f *codecFnInfo, rv reflect.Value) {
12346 fastpathTV.EncMapInt32UintptrV(rv2i(rv).(map[int32]uintptr), e)
12347 }
12348 func (_ fastpathT) EncMapInt32UintptrV(v map[int32]uintptr, e *Encoder) {
12349 ee, esep := e.e, e.hh.hasElemSeparators()
12350 ee.WriteMapStart(len(v))
12351 if e.h.Canonical {
12352 v2 := make([]int64, len(v))
12353 var i int
12354 for k, _ := range v {
12355 v2[i] = int64(k)
12356 i++
12357 }
12358 sort.Sort(intSlice(v2))
12359 for _, k2 := range v2 {
12360 if esep {
12361 ee.WriteMapElemKey()
12362 }
12363 ee.EncodeInt(int64(int32(k2)))
12364 if esep {
12365 ee.WriteMapElemValue()
12366 }
12367 e.encode(v[int32(k2)])
12368 }
12369 } else {
12370 for k2, v2 := range v {
12371 if esep {
12372 ee.WriteMapElemKey()
12373 }
12374 ee.EncodeInt(int64(k2))
12375 if esep {
12376 ee.WriteMapElemValue()
12377 }
12378 e.encode(v2)
12379 }
12380 }
12381 ee.WriteMapEnd()
12382 }
12383
12384 func (e *Encoder) fastpathEncMapInt32IntR(f *codecFnInfo, rv reflect.Value) {
12385 fastpathTV.EncMapInt32IntV(rv2i(rv).(map[int32]int), e)
12386 }
12387 func (_ fastpathT) EncMapInt32IntV(v map[int32]int, e *Encoder) {
12388 ee, esep := e.e, e.hh.hasElemSeparators()
12389 ee.WriteMapStart(len(v))
12390 if e.h.Canonical {
12391 v2 := make([]int64, len(v))
12392 var i int
12393 for k, _ := range v {
12394 v2[i] = int64(k)
12395 i++
12396 }
12397 sort.Sort(intSlice(v2))
12398 for _, k2 := range v2 {
12399 if esep {
12400 ee.WriteMapElemKey()
12401 }
12402 ee.EncodeInt(int64(int32(k2)))
12403 if esep {
12404 ee.WriteMapElemValue()
12405 }
12406 ee.EncodeInt(int64(v[int32(k2)]))
12407 }
12408 } else {
12409 for k2, v2 := range v {
12410 if esep {
12411 ee.WriteMapElemKey()
12412 }
12413 ee.EncodeInt(int64(k2))
12414 if esep {
12415 ee.WriteMapElemValue()
12416 }
12417 ee.EncodeInt(int64(v2))
12418 }
12419 }
12420 ee.WriteMapEnd()
12421 }
12422
12423 func (e *Encoder) fastpathEncMapInt32Int8R(f *codecFnInfo, rv reflect.Value) {
12424 fastpathTV.EncMapInt32Int8V(rv2i(rv).(map[int32]int8), e)
12425 }
12426 func (_ fastpathT) EncMapInt32Int8V(v map[int32]int8, e *Encoder) {
12427 ee, esep := e.e, e.hh.hasElemSeparators()
12428 ee.WriteMapStart(len(v))
12429 if e.h.Canonical {
12430 v2 := make([]int64, len(v))
12431 var i int
12432 for k, _ := range v {
12433 v2[i] = int64(k)
12434 i++
12435 }
12436 sort.Sort(intSlice(v2))
12437 for _, k2 := range v2 {
12438 if esep {
12439 ee.WriteMapElemKey()
12440 }
12441 ee.EncodeInt(int64(int32(k2)))
12442 if esep {
12443 ee.WriteMapElemValue()
12444 }
12445 ee.EncodeInt(int64(v[int32(k2)]))
12446 }
12447 } else {
12448 for k2, v2 := range v {
12449 if esep {
12450 ee.WriteMapElemKey()
12451 }
12452 ee.EncodeInt(int64(k2))
12453 if esep {
12454 ee.WriteMapElemValue()
12455 }
12456 ee.EncodeInt(int64(v2))
12457 }
12458 }
12459 ee.WriteMapEnd()
12460 }
12461
12462 func (e *Encoder) fastpathEncMapInt32Int16R(f *codecFnInfo, rv reflect.Value) {
12463 fastpathTV.EncMapInt32Int16V(rv2i(rv).(map[int32]int16), e)
12464 }
12465 func (_ fastpathT) EncMapInt32Int16V(v map[int32]int16, e *Encoder) {
12466 ee, esep := e.e, e.hh.hasElemSeparators()
12467 ee.WriteMapStart(len(v))
12468 if e.h.Canonical {
12469 v2 := make([]int64, len(v))
12470 var i int
12471 for k, _ := range v {
12472 v2[i] = int64(k)
12473 i++
12474 }
12475 sort.Sort(intSlice(v2))
12476 for _, k2 := range v2 {
12477 if esep {
12478 ee.WriteMapElemKey()
12479 }
12480 ee.EncodeInt(int64(int32(k2)))
12481 if esep {
12482 ee.WriteMapElemValue()
12483 }
12484 ee.EncodeInt(int64(v[int32(k2)]))
12485 }
12486 } else {
12487 for k2, v2 := range v {
12488 if esep {
12489 ee.WriteMapElemKey()
12490 }
12491 ee.EncodeInt(int64(k2))
12492 if esep {
12493 ee.WriteMapElemValue()
12494 }
12495 ee.EncodeInt(int64(v2))
12496 }
12497 }
12498 ee.WriteMapEnd()
12499 }
12500
12501 func (e *Encoder) fastpathEncMapInt32Int32R(f *codecFnInfo, rv reflect.Value) {
12502 fastpathTV.EncMapInt32Int32V(rv2i(rv).(map[int32]int32), e)
12503 }
12504 func (_ fastpathT) EncMapInt32Int32V(v map[int32]int32, e *Encoder) {
12505 ee, esep := e.e, e.hh.hasElemSeparators()
12506 ee.WriteMapStart(len(v))
12507 if e.h.Canonical {
12508 v2 := make([]int64, len(v))
12509 var i int
12510 for k, _ := range v {
12511 v2[i] = int64(k)
12512 i++
12513 }
12514 sort.Sort(intSlice(v2))
12515 for _, k2 := range v2 {
12516 if esep {
12517 ee.WriteMapElemKey()
12518 }
12519 ee.EncodeInt(int64(int32(k2)))
12520 if esep {
12521 ee.WriteMapElemValue()
12522 }
12523 ee.EncodeInt(int64(v[int32(k2)]))
12524 }
12525 } else {
12526 for k2, v2 := range v {
12527 if esep {
12528 ee.WriteMapElemKey()
12529 }
12530 ee.EncodeInt(int64(k2))
12531 if esep {
12532 ee.WriteMapElemValue()
12533 }
12534 ee.EncodeInt(int64(v2))
12535 }
12536 }
12537 ee.WriteMapEnd()
12538 }
12539
12540 func (e *Encoder) fastpathEncMapInt32Int64R(f *codecFnInfo, rv reflect.Value) {
12541 fastpathTV.EncMapInt32Int64V(rv2i(rv).(map[int32]int64), e)
12542 }
12543 func (_ fastpathT) EncMapInt32Int64V(v map[int32]int64, e *Encoder) {
12544 ee, esep := e.e, e.hh.hasElemSeparators()
12545 ee.WriteMapStart(len(v))
12546 if e.h.Canonical {
12547 v2 := make([]int64, len(v))
12548 var i int
12549 for k, _ := range v {
12550 v2[i] = int64(k)
12551 i++
12552 }
12553 sort.Sort(intSlice(v2))
12554 for _, k2 := range v2 {
12555 if esep {
12556 ee.WriteMapElemKey()
12557 }
12558 ee.EncodeInt(int64(int32(k2)))
12559 if esep {
12560 ee.WriteMapElemValue()
12561 }
12562 ee.EncodeInt(int64(v[int32(k2)]))
12563 }
12564 } else {
12565 for k2, v2 := range v {
12566 if esep {
12567 ee.WriteMapElemKey()
12568 }
12569 ee.EncodeInt(int64(k2))
12570 if esep {
12571 ee.WriteMapElemValue()
12572 }
12573 ee.EncodeInt(int64(v2))
12574 }
12575 }
12576 ee.WriteMapEnd()
12577 }
12578
12579 func (e *Encoder) fastpathEncMapInt32Float32R(f *codecFnInfo, rv reflect.Value) {
12580 fastpathTV.EncMapInt32Float32V(rv2i(rv).(map[int32]float32), e)
12581 }
12582 func (_ fastpathT) EncMapInt32Float32V(v map[int32]float32, e *Encoder) {
12583 ee, esep := e.e, e.hh.hasElemSeparators()
12584 ee.WriteMapStart(len(v))
12585 if e.h.Canonical {
12586 v2 := make([]int64, len(v))
12587 var i int
12588 for k, _ := range v {
12589 v2[i] = int64(k)
12590 i++
12591 }
12592 sort.Sort(intSlice(v2))
12593 for _, k2 := range v2 {
12594 if esep {
12595 ee.WriteMapElemKey()
12596 }
12597 ee.EncodeInt(int64(int32(k2)))
12598 if esep {
12599 ee.WriteMapElemValue()
12600 }
12601 ee.EncodeFloat32(v[int32(k2)])
12602 }
12603 } else {
12604 for k2, v2 := range v {
12605 if esep {
12606 ee.WriteMapElemKey()
12607 }
12608 ee.EncodeInt(int64(k2))
12609 if esep {
12610 ee.WriteMapElemValue()
12611 }
12612 ee.EncodeFloat32(v2)
12613 }
12614 }
12615 ee.WriteMapEnd()
12616 }
12617
12618 func (e *Encoder) fastpathEncMapInt32Float64R(f *codecFnInfo, rv reflect.Value) {
12619 fastpathTV.EncMapInt32Float64V(rv2i(rv).(map[int32]float64), e)
12620 }
12621 func (_ fastpathT) EncMapInt32Float64V(v map[int32]float64, e *Encoder) {
12622 ee, esep := e.e, e.hh.hasElemSeparators()
12623 ee.WriteMapStart(len(v))
12624 if e.h.Canonical {
12625 v2 := make([]int64, len(v))
12626 var i int
12627 for k, _ := range v {
12628 v2[i] = int64(k)
12629 i++
12630 }
12631 sort.Sort(intSlice(v2))
12632 for _, k2 := range v2 {
12633 if esep {
12634 ee.WriteMapElemKey()
12635 }
12636 ee.EncodeInt(int64(int32(k2)))
12637 if esep {
12638 ee.WriteMapElemValue()
12639 }
12640 ee.EncodeFloat64(v[int32(k2)])
12641 }
12642 } else {
12643 for k2, v2 := range v {
12644 if esep {
12645 ee.WriteMapElemKey()
12646 }
12647 ee.EncodeInt(int64(k2))
12648 if esep {
12649 ee.WriteMapElemValue()
12650 }
12651 ee.EncodeFloat64(v2)
12652 }
12653 }
12654 ee.WriteMapEnd()
12655 }
12656
12657 func (e *Encoder) fastpathEncMapInt32BoolR(f *codecFnInfo, rv reflect.Value) {
12658 fastpathTV.EncMapInt32BoolV(rv2i(rv).(map[int32]bool), e)
12659 }
12660 func (_ fastpathT) EncMapInt32BoolV(v map[int32]bool, e *Encoder) {
12661 ee, esep := e.e, e.hh.hasElemSeparators()
12662 ee.WriteMapStart(len(v))
12663 if e.h.Canonical {
12664 v2 := make([]int64, len(v))
12665 var i int
12666 for k, _ := range v {
12667 v2[i] = int64(k)
12668 i++
12669 }
12670 sort.Sort(intSlice(v2))
12671 for _, k2 := range v2 {
12672 if esep {
12673 ee.WriteMapElemKey()
12674 }
12675 ee.EncodeInt(int64(int32(k2)))
12676 if esep {
12677 ee.WriteMapElemValue()
12678 }
12679 ee.EncodeBool(v[int32(k2)])
12680 }
12681 } else {
12682 for k2, v2 := range v {
12683 if esep {
12684 ee.WriteMapElemKey()
12685 }
12686 ee.EncodeInt(int64(k2))
12687 if esep {
12688 ee.WriteMapElemValue()
12689 }
12690 ee.EncodeBool(v2)
12691 }
12692 }
12693 ee.WriteMapEnd()
12694 }
12695
12696 func (e *Encoder) fastpathEncMapInt64IntfR(f *codecFnInfo, rv reflect.Value) {
12697 fastpathTV.EncMapInt64IntfV(rv2i(rv).(map[int64]interface{}), e)
12698 }
12699 func (_ fastpathT) EncMapInt64IntfV(v map[int64]interface{}, e *Encoder) {
12700 ee, esep := e.e, e.hh.hasElemSeparators()
12701 ee.WriteMapStart(len(v))
12702 if e.h.Canonical {
12703 v2 := make([]int64, len(v))
12704 var i int
12705 for k, _ := range v {
12706 v2[i] = int64(k)
12707 i++
12708 }
12709 sort.Sort(intSlice(v2))
12710 for _, k2 := range v2 {
12711 if esep {
12712 ee.WriteMapElemKey()
12713 }
12714 ee.EncodeInt(int64(int64(k2)))
12715 if esep {
12716 ee.WriteMapElemValue()
12717 }
12718 e.encode(v[int64(k2)])
12719 }
12720 } else {
12721 for k2, v2 := range v {
12722 if esep {
12723 ee.WriteMapElemKey()
12724 }
12725 ee.EncodeInt(int64(k2))
12726 if esep {
12727 ee.WriteMapElemValue()
12728 }
12729 e.encode(v2)
12730 }
12731 }
12732 ee.WriteMapEnd()
12733 }
12734
12735 func (e *Encoder) fastpathEncMapInt64StringR(f *codecFnInfo, rv reflect.Value) {
12736 fastpathTV.EncMapInt64StringV(rv2i(rv).(map[int64]string), e)
12737 }
12738 func (_ fastpathT) EncMapInt64StringV(v map[int64]string, e *Encoder) {
12739 ee, esep := e.e, e.hh.hasElemSeparators()
12740 ee.WriteMapStart(len(v))
12741 if e.h.Canonical {
12742 v2 := make([]int64, len(v))
12743 var i int
12744 for k, _ := range v {
12745 v2[i] = int64(k)
12746 i++
12747 }
12748 sort.Sort(intSlice(v2))
12749 for _, k2 := range v2 {
12750 if esep {
12751 ee.WriteMapElemKey()
12752 }
12753 ee.EncodeInt(int64(int64(k2)))
12754 if esep {
12755 ee.WriteMapElemValue()
12756 }
12757 ee.EncodeString(c_UTF8, v[int64(k2)])
12758 }
12759 } else {
12760 for k2, v2 := range v {
12761 if esep {
12762 ee.WriteMapElemKey()
12763 }
12764 ee.EncodeInt(int64(k2))
12765 if esep {
12766 ee.WriteMapElemValue()
12767 }
12768 ee.EncodeString(c_UTF8, v2)
12769 }
12770 }
12771 ee.WriteMapEnd()
12772 }
12773
12774 func (e *Encoder) fastpathEncMapInt64UintR(f *codecFnInfo, rv reflect.Value) {
12775 fastpathTV.EncMapInt64UintV(rv2i(rv).(map[int64]uint), e)
12776 }
12777 func (_ fastpathT) EncMapInt64UintV(v map[int64]uint, e *Encoder) {
12778 ee, esep := e.e, e.hh.hasElemSeparators()
12779 ee.WriteMapStart(len(v))
12780 if e.h.Canonical {
12781 v2 := make([]int64, len(v))
12782 var i int
12783 for k, _ := range v {
12784 v2[i] = int64(k)
12785 i++
12786 }
12787 sort.Sort(intSlice(v2))
12788 for _, k2 := range v2 {
12789 if esep {
12790 ee.WriteMapElemKey()
12791 }
12792 ee.EncodeInt(int64(int64(k2)))
12793 if esep {
12794 ee.WriteMapElemValue()
12795 }
12796 ee.EncodeUint(uint64(v[int64(k2)]))
12797 }
12798 } else {
12799 for k2, v2 := range v {
12800 if esep {
12801 ee.WriteMapElemKey()
12802 }
12803 ee.EncodeInt(int64(k2))
12804 if esep {
12805 ee.WriteMapElemValue()
12806 }
12807 ee.EncodeUint(uint64(v2))
12808 }
12809 }
12810 ee.WriteMapEnd()
12811 }
12812
12813 func (e *Encoder) fastpathEncMapInt64Uint8R(f *codecFnInfo, rv reflect.Value) {
12814 fastpathTV.EncMapInt64Uint8V(rv2i(rv).(map[int64]uint8), e)
12815 }
12816 func (_ fastpathT) EncMapInt64Uint8V(v map[int64]uint8, e *Encoder) {
12817 ee, esep := e.e, e.hh.hasElemSeparators()
12818 ee.WriteMapStart(len(v))
12819 if e.h.Canonical {
12820 v2 := make([]int64, len(v))
12821 var i int
12822 for k, _ := range v {
12823 v2[i] = int64(k)
12824 i++
12825 }
12826 sort.Sort(intSlice(v2))
12827 for _, k2 := range v2 {
12828 if esep {
12829 ee.WriteMapElemKey()
12830 }
12831 ee.EncodeInt(int64(int64(k2)))
12832 if esep {
12833 ee.WriteMapElemValue()
12834 }
12835 ee.EncodeUint(uint64(v[int64(k2)]))
12836 }
12837 } else {
12838 for k2, v2 := range v {
12839 if esep {
12840 ee.WriteMapElemKey()
12841 }
12842 ee.EncodeInt(int64(k2))
12843 if esep {
12844 ee.WriteMapElemValue()
12845 }
12846 ee.EncodeUint(uint64(v2))
12847 }
12848 }
12849 ee.WriteMapEnd()
12850 }
12851
12852 func (e *Encoder) fastpathEncMapInt64Uint16R(f *codecFnInfo, rv reflect.Value) {
12853 fastpathTV.EncMapInt64Uint16V(rv2i(rv).(map[int64]uint16), e)
12854 }
12855 func (_ fastpathT) EncMapInt64Uint16V(v map[int64]uint16, e *Encoder) {
12856 ee, esep := e.e, e.hh.hasElemSeparators()
12857 ee.WriteMapStart(len(v))
12858 if e.h.Canonical {
12859 v2 := make([]int64, len(v))
12860 var i int
12861 for k, _ := range v {
12862 v2[i] = int64(k)
12863 i++
12864 }
12865 sort.Sort(intSlice(v2))
12866 for _, k2 := range v2 {
12867 if esep {
12868 ee.WriteMapElemKey()
12869 }
12870 ee.EncodeInt(int64(int64(k2)))
12871 if esep {
12872 ee.WriteMapElemValue()
12873 }
12874 ee.EncodeUint(uint64(v[int64(k2)]))
12875 }
12876 } else {
12877 for k2, v2 := range v {
12878 if esep {
12879 ee.WriteMapElemKey()
12880 }
12881 ee.EncodeInt(int64(k2))
12882 if esep {
12883 ee.WriteMapElemValue()
12884 }
12885 ee.EncodeUint(uint64(v2))
12886 }
12887 }
12888 ee.WriteMapEnd()
12889 }
12890
12891 func (e *Encoder) fastpathEncMapInt64Uint32R(f *codecFnInfo, rv reflect.Value) {
12892 fastpathTV.EncMapInt64Uint32V(rv2i(rv).(map[int64]uint32), e)
12893 }
12894 func (_ fastpathT) EncMapInt64Uint32V(v map[int64]uint32, e *Encoder) {
12895 ee, esep := e.e, e.hh.hasElemSeparators()
12896 ee.WriteMapStart(len(v))
12897 if e.h.Canonical {
12898 v2 := make([]int64, len(v))
12899 var i int
12900 for k, _ := range v {
12901 v2[i] = int64(k)
12902 i++
12903 }
12904 sort.Sort(intSlice(v2))
12905 for _, k2 := range v2 {
12906 if esep {
12907 ee.WriteMapElemKey()
12908 }
12909 ee.EncodeInt(int64(int64(k2)))
12910 if esep {
12911 ee.WriteMapElemValue()
12912 }
12913 ee.EncodeUint(uint64(v[int64(k2)]))
12914 }
12915 } else {
12916 for k2, v2 := range v {
12917 if esep {
12918 ee.WriteMapElemKey()
12919 }
12920 ee.EncodeInt(int64(k2))
12921 if esep {
12922 ee.WriteMapElemValue()
12923 }
12924 ee.EncodeUint(uint64(v2))
12925 }
12926 }
12927 ee.WriteMapEnd()
12928 }
12929
12930 func (e *Encoder) fastpathEncMapInt64Uint64R(f *codecFnInfo, rv reflect.Value) {
12931 fastpathTV.EncMapInt64Uint64V(rv2i(rv).(map[int64]uint64), e)
12932 }
12933 func (_ fastpathT) EncMapInt64Uint64V(v map[int64]uint64, e *Encoder) {
12934 ee, esep := e.e, e.hh.hasElemSeparators()
12935 ee.WriteMapStart(len(v))
12936 if e.h.Canonical {
12937 v2 := make([]int64, len(v))
12938 var i int
12939 for k, _ := range v {
12940 v2[i] = int64(k)
12941 i++
12942 }
12943 sort.Sort(intSlice(v2))
12944 for _, k2 := range v2 {
12945 if esep {
12946 ee.WriteMapElemKey()
12947 }
12948 ee.EncodeInt(int64(int64(k2)))
12949 if esep {
12950 ee.WriteMapElemValue()
12951 }
12952 ee.EncodeUint(uint64(v[int64(k2)]))
12953 }
12954 } else {
12955 for k2, v2 := range v {
12956 if esep {
12957 ee.WriteMapElemKey()
12958 }
12959 ee.EncodeInt(int64(k2))
12960 if esep {
12961 ee.WriteMapElemValue()
12962 }
12963 ee.EncodeUint(uint64(v2))
12964 }
12965 }
12966 ee.WriteMapEnd()
12967 }
12968
12969 func (e *Encoder) fastpathEncMapInt64UintptrR(f *codecFnInfo, rv reflect.Value) {
12970 fastpathTV.EncMapInt64UintptrV(rv2i(rv).(map[int64]uintptr), e)
12971 }
12972 func (_ fastpathT) EncMapInt64UintptrV(v map[int64]uintptr, e *Encoder) {
12973 ee, esep := e.e, e.hh.hasElemSeparators()
12974 ee.WriteMapStart(len(v))
12975 if e.h.Canonical {
12976 v2 := make([]int64, len(v))
12977 var i int
12978 for k, _ := range v {
12979 v2[i] = int64(k)
12980 i++
12981 }
12982 sort.Sort(intSlice(v2))
12983 for _, k2 := range v2 {
12984 if esep {
12985 ee.WriteMapElemKey()
12986 }
12987 ee.EncodeInt(int64(int64(k2)))
12988 if esep {
12989 ee.WriteMapElemValue()
12990 }
12991 e.encode(v[int64(k2)])
12992 }
12993 } else {
12994 for k2, v2 := range v {
12995 if esep {
12996 ee.WriteMapElemKey()
12997 }
12998 ee.EncodeInt(int64(k2))
12999 if esep {
13000 ee.WriteMapElemValue()
13001 }
13002 e.encode(v2)
13003 }
13004 }
13005 ee.WriteMapEnd()
13006 }
13007
13008 func (e *Encoder) fastpathEncMapInt64IntR(f *codecFnInfo, rv reflect.Value) {
13009 fastpathTV.EncMapInt64IntV(rv2i(rv).(map[int64]int), e)
13010 }
13011 func (_ fastpathT) EncMapInt64IntV(v map[int64]int, e *Encoder) {
13012 ee, esep := e.e, e.hh.hasElemSeparators()
13013 ee.WriteMapStart(len(v))
13014 if e.h.Canonical {
13015 v2 := make([]int64, len(v))
13016 var i int
13017 for k, _ := range v {
13018 v2[i] = int64(k)
13019 i++
13020 }
13021 sort.Sort(intSlice(v2))
13022 for _, k2 := range v2 {
13023 if esep {
13024 ee.WriteMapElemKey()
13025 }
13026 ee.EncodeInt(int64(int64(k2)))
13027 if esep {
13028 ee.WriteMapElemValue()
13029 }
13030 ee.EncodeInt(int64(v[int64(k2)]))
13031 }
13032 } else {
13033 for k2, v2 := range v {
13034 if esep {
13035 ee.WriteMapElemKey()
13036 }
13037 ee.EncodeInt(int64(k2))
13038 if esep {
13039 ee.WriteMapElemValue()
13040 }
13041 ee.EncodeInt(int64(v2))
13042 }
13043 }
13044 ee.WriteMapEnd()
13045 }
13046
13047 func (e *Encoder) fastpathEncMapInt64Int8R(f *codecFnInfo, rv reflect.Value) {
13048 fastpathTV.EncMapInt64Int8V(rv2i(rv).(map[int64]int8), e)
13049 }
13050 func (_ fastpathT) EncMapInt64Int8V(v map[int64]int8, e *Encoder) {
13051 ee, esep := e.e, e.hh.hasElemSeparators()
13052 ee.WriteMapStart(len(v))
13053 if e.h.Canonical {
13054 v2 := make([]int64, len(v))
13055 var i int
13056 for k, _ := range v {
13057 v2[i] = int64(k)
13058 i++
13059 }
13060 sort.Sort(intSlice(v2))
13061 for _, k2 := range v2 {
13062 if esep {
13063 ee.WriteMapElemKey()
13064 }
13065 ee.EncodeInt(int64(int64(k2)))
13066 if esep {
13067 ee.WriteMapElemValue()
13068 }
13069 ee.EncodeInt(int64(v[int64(k2)]))
13070 }
13071 } else {
13072 for k2, v2 := range v {
13073 if esep {
13074 ee.WriteMapElemKey()
13075 }
13076 ee.EncodeInt(int64(k2))
13077 if esep {
13078 ee.WriteMapElemValue()
13079 }
13080 ee.EncodeInt(int64(v2))
13081 }
13082 }
13083 ee.WriteMapEnd()
13084 }
13085
13086 func (e *Encoder) fastpathEncMapInt64Int16R(f *codecFnInfo, rv reflect.Value) {
13087 fastpathTV.EncMapInt64Int16V(rv2i(rv).(map[int64]int16), e)
13088 }
13089 func (_ fastpathT) EncMapInt64Int16V(v map[int64]int16, e *Encoder) {
13090 ee, esep := e.e, e.hh.hasElemSeparators()
13091 ee.WriteMapStart(len(v))
13092 if e.h.Canonical {
13093 v2 := make([]int64, len(v))
13094 var i int
13095 for k, _ := range v {
13096 v2[i] = int64(k)
13097 i++
13098 }
13099 sort.Sort(intSlice(v2))
13100 for _, k2 := range v2 {
13101 if esep {
13102 ee.WriteMapElemKey()
13103 }
13104 ee.EncodeInt(int64(int64(k2)))
13105 if esep {
13106 ee.WriteMapElemValue()
13107 }
13108 ee.EncodeInt(int64(v[int64(k2)]))
13109 }
13110 } else {
13111 for k2, v2 := range v {
13112 if esep {
13113 ee.WriteMapElemKey()
13114 }
13115 ee.EncodeInt(int64(k2))
13116 if esep {
13117 ee.WriteMapElemValue()
13118 }
13119 ee.EncodeInt(int64(v2))
13120 }
13121 }
13122 ee.WriteMapEnd()
13123 }
13124
13125 func (e *Encoder) fastpathEncMapInt64Int32R(f *codecFnInfo, rv reflect.Value) {
13126 fastpathTV.EncMapInt64Int32V(rv2i(rv).(map[int64]int32), e)
13127 }
13128 func (_ fastpathT) EncMapInt64Int32V(v map[int64]int32, e *Encoder) {
13129 ee, esep := e.e, e.hh.hasElemSeparators()
13130 ee.WriteMapStart(len(v))
13131 if e.h.Canonical {
13132 v2 := make([]int64, len(v))
13133 var i int
13134 for k, _ := range v {
13135 v2[i] = int64(k)
13136 i++
13137 }
13138 sort.Sort(intSlice(v2))
13139 for _, k2 := range v2 {
13140 if esep {
13141 ee.WriteMapElemKey()
13142 }
13143 ee.EncodeInt(int64(int64(k2)))
13144 if esep {
13145 ee.WriteMapElemValue()
13146 }
13147 ee.EncodeInt(int64(v[int64(k2)]))
13148 }
13149 } else {
13150 for k2, v2 := range v {
13151 if esep {
13152 ee.WriteMapElemKey()
13153 }
13154 ee.EncodeInt(int64(k2))
13155 if esep {
13156 ee.WriteMapElemValue()
13157 }
13158 ee.EncodeInt(int64(v2))
13159 }
13160 }
13161 ee.WriteMapEnd()
13162 }
13163
13164 func (e *Encoder) fastpathEncMapInt64Int64R(f *codecFnInfo, rv reflect.Value) {
13165 fastpathTV.EncMapInt64Int64V(rv2i(rv).(map[int64]int64), e)
13166 }
13167 func (_ fastpathT) EncMapInt64Int64V(v map[int64]int64, e *Encoder) {
13168 ee, esep := e.e, e.hh.hasElemSeparators()
13169 ee.WriteMapStart(len(v))
13170 if e.h.Canonical {
13171 v2 := make([]int64, len(v))
13172 var i int
13173 for k, _ := range v {
13174 v2[i] = int64(k)
13175 i++
13176 }
13177 sort.Sort(intSlice(v2))
13178 for _, k2 := range v2 {
13179 if esep {
13180 ee.WriteMapElemKey()
13181 }
13182 ee.EncodeInt(int64(int64(k2)))
13183 if esep {
13184 ee.WriteMapElemValue()
13185 }
13186 ee.EncodeInt(int64(v[int64(k2)]))
13187 }
13188 } else {
13189 for k2, v2 := range v {
13190 if esep {
13191 ee.WriteMapElemKey()
13192 }
13193 ee.EncodeInt(int64(k2))
13194 if esep {
13195 ee.WriteMapElemValue()
13196 }
13197 ee.EncodeInt(int64(v2))
13198 }
13199 }
13200 ee.WriteMapEnd()
13201 }
13202
13203 func (e *Encoder) fastpathEncMapInt64Float32R(f *codecFnInfo, rv reflect.Value) {
13204 fastpathTV.EncMapInt64Float32V(rv2i(rv).(map[int64]float32), e)
13205 }
13206 func (_ fastpathT) EncMapInt64Float32V(v map[int64]float32, e *Encoder) {
13207 ee, esep := e.e, e.hh.hasElemSeparators()
13208 ee.WriteMapStart(len(v))
13209 if e.h.Canonical {
13210 v2 := make([]int64, len(v))
13211 var i int
13212 for k, _ := range v {
13213 v2[i] = int64(k)
13214 i++
13215 }
13216 sort.Sort(intSlice(v2))
13217 for _, k2 := range v2 {
13218 if esep {
13219 ee.WriteMapElemKey()
13220 }
13221 ee.EncodeInt(int64(int64(k2)))
13222 if esep {
13223 ee.WriteMapElemValue()
13224 }
13225 ee.EncodeFloat32(v[int64(k2)])
13226 }
13227 } else {
13228 for k2, v2 := range v {
13229 if esep {
13230 ee.WriteMapElemKey()
13231 }
13232 ee.EncodeInt(int64(k2))
13233 if esep {
13234 ee.WriteMapElemValue()
13235 }
13236 ee.EncodeFloat32(v2)
13237 }
13238 }
13239 ee.WriteMapEnd()
13240 }
13241
13242 func (e *Encoder) fastpathEncMapInt64Float64R(f *codecFnInfo, rv reflect.Value) {
13243 fastpathTV.EncMapInt64Float64V(rv2i(rv).(map[int64]float64), e)
13244 }
13245 func (_ fastpathT) EncMapInt64Float64V(v map[int64]float64, e *Encoder) {
13246 ee, esep := e.e, e.hh.hasElemSeparators()
13247 ee.WriteMapStart(len(v))
13248 if e.h.Canonical {
13249 v2 := make([]int64, len(v))
13250 var i int
13251 for k, _ := range v {
13252 v2[i] = int64(k)
13253 i++
13254 }
13255 sort.Sort(intSlice(v2))
13256 for _, k2 := range v2 {
13257 if esep {
13258 ee.WriteMapElemKey()
13259 }
13260 ee.EncodeInt(int64(int64(k2)))
13261 if esep {
13262 ee.WriteMapElemValue()
13263 }
13264 ee.EncodeFloat64(v[int64(k2)])
13265 }
13266 } else {
13267 for k2, v2 := range v {
13268 if esep {
13269 ee.WriteMapElemKey()
13270 }
13271 ee.EncodeInt(int64(k2))
13272 if esep {
13273 ee.WriteMapElemValue()
13274 }
13275 ee.EncodeFloat64(v2)
13276 }
13277 }
13278 ee.WriteMapEnd()
13279 }
13280
13281 func (e *Encoder) fastpathEncMapInt64BoolR(f *codecFnInfo, rv reflect.Value) {
13282 fastpathTV.EncMapInt64BoolV(rv2i(rv).(map[int64]bool), e)
13283 }
13284 func (_ fastpathT) EncMapInt64BoolV(v map[int64]bool, e *Encoder) {
13285 ee, esep := e.e, e.hh.hasElemSeparators()
13286 ee.WriteMapStart(len(v))
13287 if e.h.Canonical {
13288 v2 := make([]int64, len(v))
13289 var i int
13290 for k, _ := range v {
13291 v2[i] = int64(k)
13292 i++
13293 }
13294 sort.Sort(intSlice(v2))
13295 for _, k2 := range v2 {
13296 if esep {
13297 ee.WriteMapElemKey()
13298 }
13299 ee.EncodeInt(int64(int64(k2)))
13300 if esep {
13301 ee.WriteMapElemValue()
13302 }
13303 ee.EncodeBool(v[int64(k2)])
13304 }
13305 } else {
13306 for k2, v2 := range v {
13307 if esep {
13308 ee.WriteMapElemKey()
13309 }
13310 ee.EncodeInt(int64(k2))
13311 if esep {
13312 ee.WriteMapElemValue()
13313 }
13314 ee.EncodeBool(v2)
13315 }
13316 }
13317 ee.WriteMapEnd()
13318 }
13319
13320 func (e *Encoder) fastpathEncMapBoolIntfR(f *codecFnInfo, rv reflect.Value) {
13321 fastpathTV.EncMapBoolIntfV(rv2i(rv).(map[bool]interface{}), e)
13322 }
13323 func (_ fastpathT) EncMapBoolIntfV(v map[bool]interface{}, e *Encoder) {
13324 ee, esep := e.e, e.hh.hasElemSeparators()
13325 ee.WriteMapStart(len(v))
13326 if e.h.Canonical {
13327 v2 := make([]bool, len(v))
13328 var i int
13329 for k, _ := range v {
13330 v2[i] = bool(k)
13331 i++
13332 }
13333 sort.Sort(boolSlice(v2))
13334 for _, k2 := range v2 {
13335 if esep {
13336 ee.WriteMapElemKey()
13337 }
13338 ee.EncodeBool(bool(k2))
13339 if esep {
13340 ee.WriteMapElemValue()
13341 }
13342 e.encode(v[bool(k2)])
13343 }
13344 } else {
13345 for k2, v2 := range v {
13346 if esep {
13347 ee.WriteMapElemKey()
13348 }
13349 ee.EncodeBool(k2)
13350 if esep {
13351 ee.WriteMapElemValue()
13352 }
13353 e.encode(v2)
13354 }
13355 }
13356 ee.WriteMapEnd()
13357 }
13358
13359 func (e *Encoder) fastpathEncMapBoolStringR(f *codecFnInfo, rv reflect.Value) {
13360 fastpathTV.EncMapBoolStringV(rv2i(rv).(map[bool]string), e)
13361 }
13362 func (_ fastpathT) EncMapBoolStringV(v map[bool]string, e *Encoder) {
13363 ee, esep := e.e, e.hh.hasElemSeparators()
13364 ee.WriteMapStart(len(v))
13365 if e.h.Canonical {
13366 v2 := make([]bool, len(v))
13367 var i int
13368 for k, _ := range v {
13369 v2[i] = bool(k)
13370 i++
13371 }
13372 sort.Sort(boolSlice(v2))
13373 for _, k2 := range v2 {
13374 if esep {
13375 ee.WriteMapElemKey()
13376 }
13377 ee.EncodeBool(bool(k2))
13378 if esep {
13379 ee.WriteMapElemValue()
13380 }
13381 ee.EncodeString(c_UTF8, v[bool(k2)])
13382 }
13383 } else {
13384 for k2, v2 := range v {
13385 if esep {
13386 ee.WriteMapElemKey()
13387 }
13388 ee.EncodeBool(k2)
13389 if esep {
13390 ee.WriteMapElemValue()
13391 }
13392 ee.EncodeString(c_UTF8, v2)
13393 }
13394 }
13395 ee.WriteMapEnd()
13396 }
13397
13398 func (e *Encoder) fastpathEncMapBoolUintR(f *codecFnInfo, rv reflect.Value) {
13399 fastpathTV.EncMapBoolUintV(rv2i(rv).(map[bool]uint), e)
13400 }
13401 func (_ fastpathT) EncMapBoolUintV(v map[bool]uint, e *Encoder) {
13402 ee, esep := e.e, e.hh.hasElemSeparators()
13403 ee.WriteMapStart(len(v))
13404 if e.h.Canonical {
13405 v2 := make([]bool, len(v))
13406 var i int
13407 for k, _ := range v {
13408 v2[i] = bool(k)
13409 i++
13410 }
13411 sort.Sort(boolSlice(v2))
13412 for _, k2 := range v2 {
13413 if esep {
13414 ee.WriteMapElemKey()
13415 }
13416 ee.EncodeBool(bool(k2))
13417 if esep {
13418 ee.WriteMapElemValue()
13419 }
13420 ee.EncodeUint(uint64(v[bool(k2)]))
13421 }
13422 } else {
13423 for k2, v2 := range v {
13424 if esep {
13425 ee.WriteMapElemKey()
13426 }
13427 ee.EncodeBool(k2)
13428 if esep {
13429 ee.WriteMapElemValue()
13430 }
13431 ee.EncodeUint(uint64(v2))
13432 }
13433 }
13434 ee.WriteMapEnd()
13435 }
13436
13437 func (e *Encoder) fastpathEncMapBoolUint8R(f *codecFnInfo, rv reflect.Value) {
13438 fastpathTV.EncMapBoolUint8V(rv2i(rv).(map[bool]uint8), e)
13439 }
13440 func (_ fastpathT) EncMapBoolUint8V(v map[bool]uint8, e *Encoder) {
13441 ee, esep := e.e, e.hh.hasElemSeparators()
13442 ee.WriteMapStart(len(v))
13443 if e.h.Canonical {
13444 v2 := make([]bool, len(v))
13445 var i int
13446 for k, _ := range v {
13447 v2[i] = bool(k)
13448 i++
13449 }
13450 sort.Sort(boolSlice(v2))
13451 for _, k2 := range v2 {
13452 if esep {
13453 ee.WriteMapElemKey()
13454 }
13455 ee.EncodeBool(bool(k2))
13456 if esep {
13457 ee.WriteMapElemValue()
13458 }
13459 ee.EncodeUint(uint64(v[bool(k2)]))
13460 }
13461 } else {
13462 for k2, v2 := range v {
13463 if esep {
13464 ee.WriteMapElemKey()
13465 }
13466 ee.EncodeBool(k2)
13467 if esep {
13468 ee.WriteMapElemValue()
13469 }
13470 ee.EncodeUint(uint64(v2))
13471 }
13472 }
13473 ee.WriteMapEnd()
13474 }
13475
13476 func (e *Encoder) fastpathEncMapBoolUint16R(f *codecFnInfo, rv reflect.Value) {
13477 fastpathTV.EncMapBoolUint16V(rv2i(rv).(map[bool]uint16), e)
13478 }
13479 func (_ fastpathT) EncMapBoolUint16V(v map[bool]uint16, e *Encoder) {
13480 ee, esep := e.e, e.hh.hasElemSeparators()
13481 ee.WriteMapStart(len(v))
13482 if e.h.Canonical {
13483 v2 := make([]bool, len(v))
13484 var i int
13485 for k, _ := range v {
13486 v2[i] = bool(k)
13487 i++
13488 }
13489 sort.Sort(boolSlice(v2))
13490 for _, k2 := range v2 {
13491 if esep {
13492 ee.WriteMapElemKey()
13493 }
13494 ee.EncodeBool(bool(k2))
13495 if esep {
13496 ee.WriteMapElemValue()
13497 }
13498 ee.EncodeUint(uint64(v[bool(k2)]))
13499 }
13500 } else {
13501 for k2, v2 := range v {
13502 if esep {
13503 ee.WriteMapElemKey()
13504 }
13505 ee.EncodeBool(k2)
13506 if esep {
13507 ee.WriteMapElemValue()
13508 }
13509 ee.EncodeUint(uint64(v2))
13510 }
13511 }
13512 ee.WriteMapEnd()
13513 }
13514
13515 func (e *Encoder) fastpathEncMapBoolUint32R(f *codecFnInfo, rv reflect.Value) {
13516 fastpathTV.EncMapBoolUint32V(rv2i(rv).(map[bool]uint32), e)
13517 }
13518 func (_ fastpathT) EncMapBoolUint32V(v map[bool]uint32, e *Encoder) {
13519 ee, esep := e.e, e.hh.hasElemSeparators()
13520 ee.WriteMapStart(len(v))
13521 if e.h.Canonical {
13522 v2 := make([]bool, len(v))
13523 var i int
13524 for k, _ := range v {
13525 v2[i] = bool(k)
13526 i++
13527 }
13528 sort.Sort(boolSlice(v2))
13529 for _, k2 := range v2 {
13530 if esep {
13531 ee.WriteMapElemKey()
13532 }
13533 ee.EncodeBool(bool(k2))
13534 if esep {
13535 ee.WriteMapElemValue()
13536 }
13537 ee.EncodeUint(uint64(v[bool(k2)]))
13538 }
13539 } else {
13540 for k2, v2 := range v {
13541 if esep {
13542 ee.WriteMapElemKey()
13543 }
13544 ee.EncodeBool(k2)
13545 if esep {
13546 ee.WriteMapElemValue()
13547 }
13548 ee.EncodeUint(uint64(v2))
13549 }
13550 }
13551 ee.WriteMapEnd()
13552 }
13553
13554 func (e *Encoder) fastpathEncMapBoolUint64R(f *codecFnInfo, rv reflect.Value) {
13555 fastpathTV.EncMapBoolUint64V(rv2i(rv).(map[bool]uint64), e)
13556 }
13557 func (_ fastpathT) EncMapBoolUint64V(v map[bool]uint64, e *Encoder) {
13558 ee, esep := e.e, e.hh.hasElemSeparators()
13559 ee.WriteMapStart(len(v))
13560 if e.h.Canonical {
13561 v2 := make([]bool, len(v))
13562 var i int
13563 for k, _ := range v {
13564 v2[i] = bool(k)
13565 i++
13566 }
13567 sort.Sort(boolSlice(v2))
13568 for _, k2 := range v2 {
13569 if esep {
13570 ee.WriteMapElemKey()
13571 }
13572 ee.EncodeBool(bool(k2))
13573 if esep {
13574 ee.WriteMapElemValue()
13575 }
13576 ee.EncodeUint(uint64(v[bool(k2)]))
13577 }
13578 } else {
13579 for k2, v2 := range v {
13580 if esep {
13581 ee.WriteMapElemKey()
13582 }
13583 ee.EncodeBool(k2)
13584 if esep {
13585 ee.WriteMapElemValue()
13586 }
13587 ee.EncodeUint(uint64(v2))
13588 }
13589 }
13590 ee.WriteMapEnd()
13591 }
13592
13593 func (e *Encoder) fastpathEncMapBoolUintptrR(f *codecFnInfo, rv reflect.Value) {
13594 fastpathTV.EncMapBoolUintptrV(rv2i(rv).(map[bool]uintptr), e)
13595 }
13596 func (_ fastpathT) EncMapBoolUintptrV(v map[bool]uintptr, e *Encoder) {
13597 ee, esep := e.e, e.hh.hasElemSeparators()
13598 ee.WriteMapStart(len(v))
13599 if e.h.Canonical {
13600 v2 := make([]bool, len(v))
13601 var i int
13602 for k, _ := range v {
13603 v2[i] = bool(k)
13604 i++
13605 }
13606 sort.Sort(boolSlice(v2))
13607 for _, k2 := range v2 {
13608 if esep {
13609 ee.WriteMapElemKey()
13610 }
13611 ee.EncodeBool(bool(k2))
13612 if esep {
13613 ee.WriteMapElemValue()
13614 }
13615 e.encode(v[bool(k2)])
13616 }
13617 } else {
13618 for k2, v2 := range v {
13619 if esep {
13620 ee.WriteMapElemKey()
13621 }
13622 ee.EncodeBool(k2)
13623 if esep {
13624 ee.WriteMapElemValue()
13625 }
13626 e.encode(v2)
13627 }
13628 }
13629 ee.WriteMapEnd()
13630 }
13631
13632 func (e *Encoder) fastpathEncMapBoolIntR(f *codecFnInfo, rv reflect.Value) {
13633 fastpathTV.EncMapBoolIntV(rv2i(rv).(map[bool]int), e)
13634 }
13635 func (_ fastpathT) EncMapBoolIntV(v map[bool]int, e *Encoder) {
13636 ee, esep := e.e, e.hh.hasElemSeparators()
13637 ee.WriteMapStart(len(v))
13638 if e.h.Canonical {
13639 v2 := make([]bool, len(v))
13640 var i int
13641 for k, _ := range v {
13642 v2[i] = bool(k)
13643 i++
13644 }
13645 sort.Sort(boolSlice(v2))
13646 for _, k2 := range v2 {
13647 if esep {
13648 ee.WriteMapElemKey()
13649 }
13650 ee.EncodeBool(bool(k2))
13651 if esep {
13652 ee.WriteMapElemValue()
13653 }
13654 ee.EncodeInt(int64(v[bool(k2)]))
13655 }
13656 } else {
13657 for k2, v2 := range v {
13658 if esep {
13659 ee.WriteMapElemKey()
13660 }
13661 ee.EncodeBool(k2)
13662 if esep {
13663 ee.WriteMapElemValue()
13664 }
13665 ee.EncodeInt(int64(v2))
13666 }
13667 }
13668 ee.WriteMapEnd()
13669 }
13670
13671 func (e *Encoder) fastpathEncMapBoolInt8R(f *codecFnInfo, rv reflect.Value) {
13672 fastpathTV.EncMapBoolInt8V(rv2i(rv).(map[bool]int8), e)
13673 }
13674 func (_ fastpathT) EncMapBoolInt8V(v map[bool]int8, e *Encoder) {
13675 ee, esep := e.e, e.hh.hasElemSeparators()
13676 ee.WriteMapStart(len(v))
13677 if e.h.Canonical {
13678 v2 := make([]bool, len(v))
13679 var i int
13680 for k, _ := range v {
13681 v2[i] = bool(k)
13682 i++
13683 }
13684 sort.Sort(boolSlice(v2))
13685 for _, k2 := range v2 {
13686 if esep {
13687 ee.WriteMapElemKey()
13688 }
13689 ee.EncodeBool(bool(k2))
13690 if esep {
13691 ee.WriteMapElemValue()
13692 }
13693 ee.EncodeInt(int64(v[bool(k2)]))
13694 }
13695 } else {
13696 for k2, v2 := range v {
13697 if esep {
13698 ee.WriteMapElemKey()
13699 }
13700 ee.EncodeBool(k2)
13701 if esep {
13702 ee.WriteMapElemValue()
13703 }
13704 ee.EncodeInt(int64(v2))
13705 }
13706 }
13707 ee.WriteMapEnd()
13708 }
13709
13710 func (e *Encoder) fastpathEncMapBoolInt16R(f *codecFnInfo, rv reflect.Value) {
13711 fastpathTV.EncMapBoolInt16V(rv2i(rv).(map[bool]int16), e)
13712 }
13713 func (_ fastpathT) EncMapBoolInt16V(v map[bool]int16, e *Encoder) {
13714 ee, esep := e.e, e.hh.hasElemSeparators()
13715 ee.WriteMapStart(len(v))
13716 if e.h.Canonical {
13717 v2 := make([]bool, len(v))
13718 var i int
13719 for k, _ := range v {
13720 v2[i] = bool(k)
13721 i++
13722 }
13723 sort.Sort(boolSlice(v2))
13724 for _, k2 := range v2 {
13725 if esep {
13726 ee.WriteMapElemKey()
13727 }
13728 ee.EncodeBool(bool(k2))
13729 if esep {
13730 ee.WriteMapElemValue()
13731 }
13732 ee.EncodeInt(int64(v[bool(k2)]))
13733 }
13734 } else {
13735 for k2, v2 := range v {
13736 if esep {
13737 ee.WriteMapElemKey()
13738 }
13739 ee.EncodeBool(k2)
13740 if esep {
13741 ee.WriteMapElemValue()
13742 }
13743 ee.EncodeInt(int64(v2))
13744 }
13745 }
13746 ee.WriteMapEnd()
13747 }
13748
13749 func (e *Encoder) fastpathEncMapBoolInt32R(f *codecFnInfo, rv reflect.Value) {
13750 fastpathTV.EncMapBoolInt32V(rv2i(rv).(map[bool]int32), e)
13751 }
13752 func (_ fastpathT) EncMapBoolInt32V(v map[bool]int32, e *Encoder) {
13753 ee, esep := e.e, e.hh.hasElemSeparators()
13754 ee.WriteMapStart(len(v))
13755 if e.h.Canonical {
13756 v2 := make([]bool, len(v))
13757 var i int
13758 for k, _ := range v {
13759 v2[i] = bool(k)
13760 i++
13761 }
13762 sort.Sort(boolSlice(v2))
13763 for _, k2 := range v2 {
13764 if esep {
13765 ee.WriteMapElemKey()
13766 }
13767 ee.EncodeBool(bool(k2))
13768 if esep {
13769 ee.WriteMapElemValue()
13770 }
13771 ee.EncodeInt(int64(v[bool(k2)]))
13772 }
13773 } else {
13774 for k2, v2 := range v {
13775 if esep {
13776 ee.WriteMapElemKey()
13777 }
13778 ee.EncodeBool(k2)
13779 if esep {
13780 ee.WriteMapElemValue()
13781 }
13782 ee.EncodeInt(int64(v2))
13783 }
13784 }
13785 ee.WriteMapEnd()
13786 }
13787
13788 func (e *Encoder) fastpathEncMapBoolInt64R(f *codecFnInfo, rv reflect.Value) {
13789 fastpathTV.EncMapBoolInt64V(rv2i(rv).(map[bool]int64), e)
13790 }
13791 func (_ fastpathT) EncMapBoolInt64V(v map[bool]int64, e *Encoder) {
13792 ee, esep := e.e, e.hh.hasElemSeparators()
13793 ee.WriteMapStart(len(v))
13794 if e.h.Canonical {
13795 v2 := make([]bool, len(v))
13796 var i int
13797 for k, _ := range v {
13798 v2[i] = bool(k)
13799 i++
13800 }
13801 sort.Sort(boolSlice(v2))
13802 for _, k2 := range v2 {
13803 if esep {
13804 ee.WriteMapElemKey()
13805 }
13806 ee.EncodeBool(bool(k2))
13807 if esep {
13808 ee.WriteMapElemValue()
13809 }
13810 ee.EncodeInt(int64(v[bool(k2)]))
13811 }
13812 } else {
13813 for k2, v2 := range v {
13814 if esep {
13815 ee.WriteMapElemKey()
13816 }
13817 ee.EncodeBool(k2)
13818 if esep {
13819 ee.WriteMapElemValue()
13820 }
13821 ee.EncodeInt(int64(v2))
13822 }
13823 }
13824 ee.WriteMapEnd()
13825 }
13826
13827 func (e *Encoder) fastpathEncMapBoolFloat32R(f *codecFnInfo, rv reflect.Value) {
13828 fastpathTV.EncMapBoolFloat32V(rv2i(rv).(map[bool]float32), e)
13829 }
13830 func (_ fastpathT) EncMapBoolFloat32V(v map[bool]float32, e *Encoder) {
13831 ee, esep := e.e, e.hh.hasElemSeparators()
13832 ee.WriteMapStart(len(v))
13833 if e.h.Canonical {
13834 v2 := make([]bool, len(v))
13835 var i int
13836 for k, _ := range v {
13837 v2[i] = bool(k)
13838 i++
13839 }
13840 sort.Sort(boolSlice(v2))
13841 for _, k2 := range v2 {
13842 if esep {
13843 ee.WriteMapElemKey()
13844 }
13845 ee.EncodeBool(bool(k2))
13846 if esep {
13847 ee.WriteMapElemValue()
13848 }
13849 ee.EncodeFloat32(v[bool(k2)])
13850 }
13851 } else {
13852 for k2, v2 := range v {
13853 if esep {
13854 ee.WriteMapElemKey()
13855 }
13856 ee.EncodeBool(k2)
13857 if esep {
13858 ee.WriteMapElemValue()
13859 }
13860 ee.EncodeFloat32(v2)
13861 }
13862 }
13863 ee.WriteMapEnd()
13864 }
13865
13866 func (e *Encoder) fastpathEncMapBoolFloat64R(f *codecFnInfo, rv reflect.Value) {
13867 fastpathTV.EncMapBoolFloat64V(rv2i(rv).(map[bool]float64), e)
13868 }
13869 func (_ fastpathT) EncMapBoolFloat64V(v map[bool]float64, e *Encoder) {
13870 ee, esep := e.e, e.hh.hasElemSeparators()
13871 ee.WriteMapStart(len(v))
13872 if e.h.Canonical {
13873 v2 := make([]bool, len(v))
13874 var i int
13875 for k, _ := range v {
13876 v2[i] = bool(k)
13877 i++
13878 }
13879 sort.Sort(boolSlice(v2))
13880 for _, k2 := range v2 {
13881 if esep {
13882 ee.WriteMapElemKey()
13883 }
13884 ee.EncodeBool(bool(k2))
13885 if esep {
13886 ee.WriteMapElemValue()
13887 }
13888 ee.EncodeFloat64(v[bool(k2)])
13889 }
13890 } else {
13891 for k2, v2 := range v {
13892 if esep {
13893 ee.WriteMapElemKey()
13894 }
13895 ee.EncodeBool(k2)
13896 if esep {
13897 ee.WriteMapElemValue()
13898 }
13899 ee.EncodeFloat64(v2)
13900 }
13901 }
13902 ee.WriteMapEnd()
13903 }
13904
13905 func (e *Encoder) fastpathEncMapBoolBoolR(f *codecFnInfo, rv reflect.Value) {
13906 fastpathTV.EncMapBoolBoolV(rv2i(rv).(map[bool]bool), e)
13907 }
13908 func (_ fastpathT) EncMapBoolBoolV(v map[bool]bool, e *Encoder) {
13909 ee, esep := e.e, e.hh.hasElemSeparators()
13910 ee.WriteMapStart(len(v))
13911 if e.h.Canonical {
13912 v2 := make([]bool, len(v))
13913 var i int
13914 for k, _ := range v {
13915 v2[i] = bool(k)
13916 i++
13917 }
13918 sort.Sort(boolSlice(v2))
13919 for _, k2 := range v2 {
13920 if esep {
13921 ee.WriteMapElemKey()
13922 }
13923 ee.EncodeBool(bool(k2))
13924 if esep {
13925 ee.WriteMapElemValue()
13926 }
13927 ee.EncodeBool(v[bool(k2)])
13928 }
13929 } else {
13930 for k2, v2 := range v {
13931 if esep {
13932 ee.WriteMapElemKey()
13933 }
13934 ee.EncodeBool(k2)
13935 if esep {
13936 ee.WriteMapElemValue()
13937 }
13938 ee.EncodeBool(v2)
13939 }
13940 }
13941 ee.WriteMapEnd()
13942 }
13943
13944 // -- decode
13945
13946 // -- -- fast path type switch
13947 func fastpathDecodeTypeSwitch(iv interface{}, d *Decoder) bool {
13948 switch v := iv.(type) {
13949
13950 case []interface{}:
13951 fastpathTV.DecSliceIntfV(v, false, d)
13952 case *[]interface{}:
13953 if v2, changed2 := fastpathTV.DecSliceIntfV(*v, true, d); changed2 {
13954 *v = v2
13955 }
13956
13957 case map[interface{}]interface{}:
13958 fastpathTV.DecMapIntfIntfV(v, false, d)
13959 case *map[interface{}]interface{}:
13960 if v2, changed2 := fastpathTV.DecMapIntfIntfV(*v, true, d); changed2 {
13961 *v = v2
13962 }
13963
13964 case map[interface{}]string:
13965 fastpathTV.DecMapIntfStringV(v, false, d)
13966 case *map[interface{}]string:
13967 if v2, changed2 := fastpathTV.DecMapIntfStringV(*v, true, d); changed2 {
13968 *v = v2
13969 }
13970
13971 case map[interface{}]uint:
13972 fastpathTV.DecMapIntfUintV(v, false, d)
13973 case *map[interface{}]uint:
13974 if v2, changed2 := fastpathTV.DecMapIntfUintV(*v, true, d); changed2 {
13975 *v = v2
13976 }
13977
13978 case map[interface{}]uint8:
13979 fastpathTV.DecMapIntfUint8V(v, false, d)
13980 case *map[interface{}]uint8:
13981 if v2, changed2 := fastpathTV.DecMapIntfUint8V(*v, true, d); changed2 {
13982 *v = v2
13983 }
13984
13985 case map[interface{}]uint16:
13986 fastpathTV.DecMapIntfUint16V(v, false, d)
13987 case *map[interface{}]uint16:
13988 if v2, changed2 := fastpathTV.DecMapIntfUint16V(*v, true, d); changed2 {
13989 *v = v2
13990 }
13991
13992 case map[interface{}]uint32:
13993 fastpathTV.DecMapIntfUint32V(v, false, d)
13994 case *map[interface{}]uint32:
13995 if v2, changed2 := fastpathTV.DecMapIntfUint32V(*v, true, d); changed2 {
13996 *v = v2
13997 }
13998
13999 case map[interface{}]uint64:
14000 fastpathTV.DecMapIntfUint64V(v, false, d)
14001 case *map[interface{}]uint64:
14002 if v2, changed2 := fastpathTV.DecMapIntfUint64V(*v, true, d); changed2 {
14003 *v = v2
14004 }
14005
14006 case map[interface{}]uintptr:
14007 fastpathTV.DecMapIntfUintptrV(v, false, d)
14008 case *map[interface{}]uintptr:
14009 if v2, changed2 := fastpathTV.DecMapIntfUintptrV(*v, true, d); changed2 {
14010 *v = v2
14011 }
14012
14013 case map[interface{}]int:
14014 fastpathTV.DecMapIntfIntV(v, false, d)
14015 case *map[interface{}]int:
14016 if v2, changed2 := fastpathTV.DecMapIntfIntV(*v, true, d); changed2 {
14017 *v = v2
14018 }
14019
14020 case map[interface{}]int8:
14021 fastpathTV.DecMapIntfInt8V(v, false, d)
14022 case *map[interface{}]int8:
14023 if v2, changed2 := fastpathTV.DecMapIntfInt8V(*v, true, d); changed2 {
14024 *v = v2
14025 }
14026
14027 case map[interface{}]int16:
14028 fastpathTV.DecMapIntfInt16V(v, false, d)
14029 case *map[interface{}]int16:
14030 if v2, changed2 := fastpathTV.DecMapIntfInt16V(*v, true, d); changed2 {
14031 *v = v2
14032 }
14033
14034 case map[interface{}]int32:
14035 fastpathTV.DecMapIntfInt32V(v, false, d)
14036 case *map[interface{}]int32:
14037 if v2, changed2 := fastpathTV.DecMapIntfInt32V(*v, true, d); changed2 {
14038 *v = v2
14039 }
14040
14041 case map[interface{}]int64:
14042 fastpathTV.DecMapIntfInt64V(v, false, d)
14043 case *map[interface{}]int64:
14044 if v2, changed2 := fastpathTV.DecMapIntfInt64V(*v, true, d); changed2 {
14045 *v = v2
14046 }
14047
14048 case map[interface{}]float32:
14049 fastpathTV.DecMapIntfFloat32V(v, false, d)
14050 case *map[interface{}]float32:
14051 if v2, changed2 := fastpathTV.DecMapIntfFloat32V(*v, true, d); changed2 {
14052 *v = v2
14053 }
14054
14055 case map[interface{}]float64:
14056 fastpathTV.DecMapIntfFloat64V(v, false, d)
14057 case *map[interface{}]float64:
14058 if v2, changed2 := fastpathTV.DecMapIntfFloat64V(*v, true, d); changed2 {
14059 *v = v2
14060 }
14061
14062 case map[interface{}]bool:
14063 fastpathTV.DecMapIntfBoolV(v, false, d)
14064 case *map[interface{}]bool:
14065 if v2, changed2 := fastpathTV.DecMapIntfBoolV(*v, true, d); changed2 {
14066 *v = v2
14067 }
14068
14069 case []string:
14070 fastpathTV.DecSliceStringV(v, false, d)
14071 case *[]string:
14072 if v2, changed2 := fastpathTV.DecSliceStringV(*v, true, d); changed2 {
14073 *v = v2
14074 }
14075
14076 case map[string]interface{}:
14077 fastpathTV.DecMapStringIntfV(v, false, d)
14078 case *map[string]interface{}:
14079 if v2, changed2 := fastpathTV.DecMapStringIntfV(*v, true, d); changed2 {
14080 *v = v2
14081 }
14082
14083 case map[string]string:
14084 fastpathTV.DecMapStringStringV(v, false, d)
14085 case *map[string]string:
14086 if v2, changed2 := fastpathTV.DecMapStringStringV(*v, true, d); changed2 {
14087 *v = v2
14088 }
14089
14090 case map[string]uint:
14091 fastpathTV.DecMapStringUintV(v, false, d)
14092 case *map[string]uint:
14093 if v2, changed2 := fastpathTV.DecMapStringUintV(*v, true, d); changed2 {
14094 *v = v2
14095 }
14096
14097 case map[string]uint8:
14098 fastpathTV.DecMapStringUint8V(v, false, d)
14099 case *map[string]uint8:
14100 if v2, changed2 := fastpathTV.DecMapStringUint8V(*v, true, d); changed2 {
14101 *v = v2
14102 }
14103
14104 case map[string]uint16:
14105 fastpathTV.DecMapStringUint16V(v, false, d)
14106 case *map[string]uint16:
14107 if v2, changed2 := fastpathTV.DecMapStringUint16V(*v, true, d); changed2 {
14108 *v = v2
14109 }
14110
14111 case map[string]uint32:
14112 fastpathTV.DecMapStringUint32V(v, false, d)
14113 case *map[string]uint32:
14114 if v2, changed2 := fastpathTV.DecMapStringUint32V(*v, true, d); changed2 {
14115 *v = v2
14116 }
14117
14118 case map[string]uint64:
14119 fastpathTV.DecMapStringUint64V(v, false, d)
14120 case *map[string]uint64:
14121 if v2, changed2 := fastpathTV.DecMapStringUint64V(*v, true, d); changed2 {
14122 *v = v2
14123 }
14124
14125 case map[string]uintptr:
14126 fastpathTV.DecMapStringUintptrV(v, false, d)
14127 case *map[string]uintptr:
14128 if v2, changed2 := fastpathTV.DecMapStringUintptrV(*v, true, d); changed2 {
14129 *v = v2
14130 }
14131
14132 case map[string]int:
14133 fastpathTV.DecMapStringIntV(v, false, d)
14134 case *map[string]int:
14135 if v2, changed2 := fastpathTV.DecMapStringIntV(*v, true, d); changed2 {
14136 *v = v2
14137 }
14138
14139 case map[string]int8:
14140 fastpathTV.DecMapStringInt8V(v, false, d)
14141 case *map[string]int8:
14142 if v2, changed2 := fastpathTV.DecMapStringInt8V(*v, true, d); changed2 {
14143 *v = v2
14144 }
14145
14146 case map[string]int16:
14147 fastpathTV.DecMapStringInt16V(v, false, d)
14148 case *map[string]int16:
14149 if v2, changed2 := fastpathTV.DecMapStringInt16V(*v, true, d); changed2 {
14150 *v = v2
14151 }
14152
14153 case map[string]int32:
14154 fastpathTV.DecMapStringInt32V(v, false, d)
14155 case *map[string]int32:
14156 if v2, changed2 := fastpathTV.DecMapStringInt32V(*v, true, d); changed2 {
14157 *v = v2
14158 }
14159
14160 case map[string]int64:
14161 fastpathTV.DecMapStringInt64V(v, false, d)
14162 case *map[string]int64:
14163 if v2, changed2 := fastpathTV.DecMapStringInt64V(*v, true, d); changed2 {
14164 *v = v2
14165 }
14166
14167 case map[string]float32:
14168 fastpathTV.DecMapStringFloat32V(v, false, d)
14169 case *map[string]float32:
14170 if v2, changed2 := fastpathTV.DecMapStringFloat32V(*v, true, d); changed2 {
14171 *v = v2
14172 }
14173
14174 case map[string]float64:
14175 fastpathTV.DecMapStringFloat64V(v, false, d)
14176 case *map[string]float64:
14177 if v2, changed2 := fastpathTV.DecMapStringFloat64V(*v, true, d); changed2 {
14178 *v = v2
14179 }
14180
14181 case map[string]bool:
14182 fastpathTV.DecMapStringBoolV(v, false, d)
14183 case *map[string]bool:
14184 if v2, changed2 := fastpathTV.DecMapStringBoolV(*v, true, d); changed2 {
14185 *v = v2
14186 }
14187
14188 case []float32:
14189 fastpathTV.DecSliceFloat32V(v, false, d)
14190 case *[]float32:
14191 if v2, changed2 := fastpathTV.DecSliceFloat32V(*v, true, d); changed2 {
14192 *v = v2
14193 }
14194
14195 case map[float32]interface{}:
14196 fastpathTV.DecMapFloat32IntfV(v, false, d)
14197 case *map[float32]interface{}:
14198 if v2, changed2 := fastpathTV.DecMapFloat32IntfV(*v, true, d); changed2 {
14199 *v = v2
14200 }
14201
14202 case map[float32]string:
14203 fastpathTV.DecMapFloat32StringV(v, false, d)
14204 case *map[float32]string:
14205 if v2, changed2 := fastpathTV.DecMapFloat32StringV(*v, true, d); changed2 {
14206 *v = v2
14207 }
14208
14209 case map[float32]uint:
14210 fastpathTV.DecMapFloat32UintV(v, false, d)
14211 case *map[float32]uint:
14212 if v2, changed2 := fastpathTV.DecMapFloat32UintV(*v, true, d); changed2 {
14213 *v = v2
14214 }
14215
14216 case map[float32]uint8:
14217 fastpathTV.DecMapFloat32Uint8V(v, false, d)
14218 case *map[float32]uint8:
14219 if v2, changed2 := fastpathTV.DecMapFloat32Uint8V(*v, true, d); changed2 {
14220 *v = v2
14221 }
14222
14223 case map[float32]uint16:
14224 fastpathTV.DecMapFloat32Uint16V(v, false, d)
14225 case *map[float32]uint16:
14226 if v2, changed2 := fastpathTV.DecMapFloat32Uint16V(*v, true, d); changed2 {
14227 *v = v2
14228 }
14229
14230 case map[float32]uint32:
14231 fastpathTV.DecMapFloat32Uint32V(v, false, d)
14232 case *map[float32]uint32:
14233 if v2, changed2 := fastpathTV.DecMapFloat32Uint32V(*v, true, d); changed2 {
14234 *v = v2
14235 }
14236
14237 case map[float32]uint64:
14238 fastpathTV.DecMapFloat32Uint64V(v, false, d)
14239 case *map[float32]uint64:
14240 if v2, changed2 := fastpathTV.DecMapFloat32Uint64V(*v, true, d); changed2 {
14241 *v = v2
14242 }
14243
14244 case map[float32]uintptr:
14245 fastpathTV.DecMapFloat32UintptrV(v, false, d)
14246 case *map[float32]uintptr:
14247 if v2, changed2 := fastpathTV.DecMapFloat32UintptrV(*v, true, d); changed2 {
14248 *v = v2
14249 }
14250
14251 case map[float32]int:
14252 fastpathTV.DecMapFloat32IntV(v, false, d)
14253 case *map[float32]int:
14254 if v2, changed2 := fastpathTV.DecMapFloat32IntV(*v, true, d); changed2 {
14255 *v = v2
14256 }
14257
14258 case map[float32]int8:
14259 fastpathTV.DecMapFloat32Int8V(v, false, d)
14260 case *map[float32]int8:
14261 if v2, changed2 := fastpathTV.DecMapFloat32Int8V(*v, true, d); changed2 {
14262 *v = v2
14263 }
14264
14265 case map[float32]int16:
14266 fastpathTV.DecMapFloat32Int16V(v, false, d)
14267 case *map[float32]int16:
14268 if v2, changed2 := fastpathTV.DecMapFloat32Int16V(*v, true, d); changed2 {
14269 *v = v2
14270 }
14271
14272 case map[float32]int32:
14273 fastpathTV.DecMapFloat32Int32V(v, false, d)
14274 case *map[float32]int32:
14275 if v2, changed2 := fastpathTV.DecMapFloat32Int32V(*v, true, d); changed2 {
14276 *v = v2
14277 }
14278
14279 case map[float32]int64:
14280 fastpathTV.DecMapFloat32Int64V(v, false, d)
14281 case *map[float32]int64:
14282 if v2, changed2 := fastpathTV.DecMapFloat32Int64V(*v, true, d); changed2 {
14283 *v = v2
14284 }
14285
14286 case map[float32]float32:
14287 fastpathTV.DecMapFloat32Float32V(v, false, d)
14288 case *map[float32]float32:
14289 if v2, changed2 := fastpathTV.DecMapFloat32Float32V(*v, true, d); changed2 {
14290 *v = v2
14291 }
14292
14293 case map[float32]float64:
14294 fastpathTV.DecMapFloat32Float64V(v, false, d)
14295 case *map[float32]float64:
14296 if v2, changed2 := fastpathTV.DecMapFloat32Float64V(*v, true, d); changed2 {
14297 *v = v2
14298 }
14299
14300 case map[float32]bool:
14301 fastpathTV.DecMapFloat32BoolV(v, false, d)
14302 case *map[float32]bool:
14303 if v2, changed2 := fastpathTV.DecMapFloat32BoolV(*v, true, d); changed2 {
14304 *v = v2
14305 }
14306
14307 case []float64:
14308 fastpathTV.DecSliceFloat64V(v, false, d)
14309 case *[]float64:
14310 if v2, changed2 := fastpathTV.DecSliceFloat64V(*v, true, d); changed2 {
14311 *v = v2
14312 }
14313
14314 case map[float64]interface{}:
14315 fastpathTV.DecMapFloat64IntfV(v, false, d)
14316 case *map[float64]interface{}:
14317 if v2, changed2 := fastpathTV.DecMapFloat64IntfV(*v, true, d); changed2 {
14318 *v = v2
14319 }
14320
14321 case map[float64]string:
14322 fastpathTV.DecMapFloat64StringV(v, false, d)
14323 case *map[float64]string:
14324 if v2, changed2 := fastpathTV.DecMapFloat64StringV(*v, true, d); changed2 {
14325 *v = v2
14326 }
14327
14328 case map[float64]uint:
14329 fastpathTV.DecMapFloat64UintV(v, false, d)
14330 case *map[float64]uint:
14331 if v2, changed2 := fastpathTV.DecMapFloat64UintV(*v, true, d); changed2 {
14332 *v = v2
14333 }
14334
14335 case map[float64]uint8:
14336 fastpathTV.DecMapFloat64Uint8V(v, false, d)
14337 case *map[float64]uint8:
14338 if v2, changed2 := fastpathTV.DecMapFloat64Uint8V(*v, true, d); changed2 {
14339 *v = v2
14340 }
14341
14342 case map[float64]uint16:
14343 fastpathTV.DecMapFloat64Uint16V(v, false, d)
14344 case *map[float64]uint16:
14345 if v2, changed2 := fastpathTV.DecMapFloat64Uint16V(*v, true, d); changed2 {
14346 *v = v2
14347 }
14348
14349 case map[float64]uint32:
14350 fastpathTV.DecMapFloat64Uint32V(v, false, d)
14351 case *map[float64]uint32:
14352 if v2, changed2 := fastpathTV.DecMapFloat64Uint32V(*v, true, d); changed2 {
14353 *v = v2
14354 }
14355
14356 case map[float64]uint64:
14357 fastpathTV.DecMapFloat64Uint64V(v, false, d)
14358 case *map[float64]uint64:
14359 if v2, changed2 := fastpathTV.DecMapFloat64Uint64V(*v, true, d); changed2 {
14360 *v = v2
14361 }
14362
14363 case map[float64]uintptr:
14364 fastpathTV.DecMapFloat64UintptrV(v, false, d)
14365 case *map[float64]uintptr:
14366 if v2, changed2 := fastpathTV.DecMapFloat64UintptrV(*v, true, d); changed2 {
14367 *v = v2
14368 }
14369
14370 case map[float64]int:
14371 fastpathTV.DecMapFloat64IntV(v, false, d)
14372 case *map[float64]int:
14373 if v2, changed2 := fastpathTV.DecMapFloat64IntV(*v, true, d); changed2 {
14374 *v = v2
14375 }
14376
14377 case map[float64]int8:
14378 fastpathTV.DecMapFloat64Int8V(v, false, d)
14379 case *map[float64]int8:
14380 if v2, changed2 := fastpathTV.DecMapFloat64Int8V(*v, true, d); changed2 {
14381 *v = v2
14382 }
14383
14384 case map[float64]int16:
14385 fastpathTV.DecMapFloat64Int16V(v, false, d)
14386 case *map[float64]int16:
14387 if v2, changed2 := fastpathTV.DecMapFloat64Int16V(*v, true, d); changed2 {
14388 *v = v2
14389 }
14390
14391 case map[float64]int32:
14392 fastpathTV.DecMapFloat64Int32V(v, false, d)
14393 case *map[float64]int32:
14394 if v2, changed2 := fastpathTV.DecMapFloat64Int32V(*v, true, d); changed2 {
14395 *v = v2
14396 }
14397
14398 case map[float64]int64:
14399 fastpathTV.DecMapFloat64Int64V(v, false, d)
14400 case *map[float64]int64:
14401 if v2, changed2 := fastpathTV.DecMapFloat64Int64V(*v, true, d); changed2 {
14402 *v = v2
14403 }
14404
14405 case map[float64]float32:
14406 fastpathTV.DecMapFloat64Float32V(v, false, d)
14407 case *map[float64]float32:
14408 if v2, changed2 := fastpathTV.DecMapFloat64Float32V(*v, true, d); changed2 {
14409 *v = v2
14410 }
14411
14412 case map[float64]float64:
14413 fastpathTV.DecMapFloat64Float64V(v, false, d)
14414 case *map[float64]float64:
14415 if v2, changed2 := fastpathTV.DecMapFloat64Float64V(*v, true, d); changed2 {
14416 *v = v2
14417 }
14418
14419 case map[float64]bool:
14420 fastpathTV.DecMapFloat64BoolV(v, false, d)
14421 case *map[float64]bool:
14422 if v2, changed2 := fastpathTV.DecMapFloat64BoolV(*v, true, d); changed2 {
14423 *v = v2
14424 }
14425
14426 case []uint:
14427 fastpathTV.DecSliceUintV(v, false, d)
14428 case *[]uint:
14429 if v2, changed2 := fastpathTV.DecSliceUintV(*v, true, d); changed2 {
14430 *v = v2
14431 }
14432
14433 case map[uint]interface{}:
14434 fastpathTV.DecMapUintIntfV(v, false, d)
14435 case *map[uint]interface{}:
14436 if v2, changed2 := fastpathTV.DecMapUintIntfV(*v, true, d); changed2 {
14437 *v = v2
14438 }
14439
14440 case map[uint]string:
14441 fastpathTV.DecMapUintStringV(v, false, d)
14442 case *map[uint]string:
14443 if v2, changed2 := fastpathTV.DecMapUintStringV(*v, true, d); changed2 {
14444 *v = v2
14445 }
14446
14447 case map[uint]uint:
14448 fastpathTV.DecMapUintUintV(v, false, d)
14449 case *map[uint]uint:
14450 if v2, changed2 := fastpathTV.DecMapUintUintV(*v, true, d); changed2 {
14451 *v = v2
14452 }
14453
14454 case map[uint]uint8:
14455 fastpathTV.DecMapUintUint8V(v, false, d)
14456 case *map[uint]uint8:
14457 if v2, changed2 := fastpathTV.DecMapUintUint8V(*v, true, d); changed2 {
14458 *v = v2
14459 }
14460
14461 case map[uint]uint16:
14462 fastpathTV.DecMapUintUint16V(v, false, d)
14463 case *map[uint]uint16:
14464 if v2, changed2 := fastpathTV.DecMapUintUint16V(*v, true, d); changed2 {
14465 *v = v2
14466 }
14467
14468 case map[uint]uint32:
14469 fastpathTV.DecMapUintUint32V(v, false, d)
14470 case *map[uint]uint32:
14471 if v2, changed2 := fastpathTV.DecMapUintUint32V(*v, true, d); changed2 {
14472 *v = v2
14473 }
14474
14475 case map[uint]uint64:
14476 fastpathTV.DecMapUintUint64V(v, false, d)
14477 case *map[uint]uint64:
14478 if v2, changed2 := fastpathTV.DecMapUintUint64V(*v, true, d); changed2 {
14479 *v = v2
14480 }
14481
14482 case map[uint]uintptr:
14483 fastpathTV.DecMapUintUintptrV(v, false, d)
14484 case *map[uint]uintptr:
14485 if v2, changed2 := fastpathTV.DecMapUintUintptrV(*v, true, d); changed2 {
14486 *v = v2
14487 }
14488
14489 case map[uint]int:
14490 fastpathTV.DecMapUintIntV(v, false, d)
14491 case *map[uint]int:
14492 if v2, changed2 := fastpathTV.DecMapUintIntV(*v, true, d); changed2 {
14493 *v = v2
14494 }
14495
14496 case map[uint]int8:
14497 fastpathTV.DecMapUintInt8V(v, false, d)
14498 case *map[uint]int8:
14499 if v2, changed2 := fastpathTV.DecMapUintInt8V(*v, true, d); changed2 {
14500 *v = v2
14501 }
14502
14503 case map[uint]int16:
14504 fastpathTV.DecMapUintInt16V(v, false, d)
14505 case *map[uint]int16:
14506 if v2, changed2 := fastpathTV.DecMapUintInt16V(*v, true, d); changed2 {
14507 *v = v2
14508 }
14509
14510 case map[uint]int32:
14511 fastpathTV.DecMapUintInt32V(v, false, d)
14512 case *map[uint]int32:
14513 if v2, changed2 := fastpathTV.DecMapUintInt32V(*v, true, d); changed2 {
14514 *v = v2
14515 }
14516
14517 case map[uint]int64:
14518 fastpathTV.DecMapUintInt64V(v, false, d)
14519 case *map[uint]int64:
14520 if v2, changed2 := fastpathTV.DecMapUintInt64V(*v, true, d); changed2 {
14521 *v = v2
14522 }
14523
14524 case map[uint]float32:
14525 fastpathTV.DecMapUintFloat32V(v, false, d)
14526 case *map[uint]float32:
14527 if v2, changed2 := fastpathTV.DecMapUintFloat32V(*v, true, d); changed2 {
14528 *v = v2
14529 }
14530
14531 case map[uint]float64:
14532 fastpathTV.DecMapUintFloat64V(v, false, d)
14533 case *map[uint]float64:
14534 if v2, changed2 := fastpathTV.DecMapUintFloat64V(*v, true, d); changed2 {
14535 *v = v2
14536 }
14537
14538 case map[uint]bool:
14539 fastpathTV.DecMapUintBoolV(v, false, d)
14540 case *map[uint]bool:
14541 if v2, changed2 := fastpathTV.DecMapUintBoolV(*v, true, d); changed2 {
14542 *v = v2
14543 }
14544
14545 case map[uint8]interface{}:
14546 fastpathTV.DecMapUint8IntfV(v, false, d)
14547 case *map[uint8]interface{}:
14548 if v2, changed2 := fastpathTV.DecMapUint8IntfV(*v, true, d); changed2 {
14549 *v = v2
14550 }
14551
14552 case map[uint8]string:
14553 fastpathTV.DecMapUint8StringV(v, false, d)
14554 case *map[uint8]string:
14555 if v2, changed2 := fastpathTV.DecMapUint8StringV(*v, true, d); changed2 {
14556 *v = v2
14557 }
14558
14559 case map[uint8]uint:
14560 fastpathTV.DecMapUint8UintV(v, false, d)
14561 case *map[uint8]uint:
14562 if v2, changed2 := fastpathTV.DecMapUint8UintV(*v, true, d); changed2 {
14563 *v = v2
14564 }
14565
14566 case map[uint8]uint8:
14567 fastpathTV.DecMapUint8Uint8V(v, false, d)
14568 case *map[uint8]uint8:
14569 if v2, changed2 := fastpathTV.DecMapUint8Uint8V(*v, true, d); changed2 {
14570 *v = v2
14571 }
14572
14573 case map[uint8]uint16:
14574 fastpathTV.DecMapUint8Uint16V(v, false, d)
14575 case *map[uint8]uint16:
14576 if v2, changed2 := fastpathTV.DecMapUint8Uint16V(*v, true, d); changed2 {
14577 *v = v2
14578 }
14579
14580 case map[uint8]uint32:
14581 fastpathTV.DecMapUint8Uint32V(v, false, d)
14582 case *map[uint8]uint32:
14583 if v2, changed2 := fastpathTV.DecMapUint8Uint32V(*v, true, d); changed2 {
14584 *v = v2
14585 }
14586
14587 case map[uint8]uint64:
14588 fastpathTV.DecMapUint8Uint64V(v, false, d)
14589 case *map[uint8]uint64:
14590 if v2, changed2 := fastpathTV.DecMapUint8Uint64V(*v, true, d); changed2 {
14591 *v = v2
14592 }
14593
14594 case map[uint8]uintptr:
14595 fastpathTV.DecMapUint8UintptrV(v, false, d)
14596 case *map[uint8]uintptr:
14597 if v2, changed2 := fastpathTV.DecMapUint8UintptrV(*v, true, d); changed2 {
14598 *v = v2
14599 }
14600
14601 case map[uint8]int:
14602 fastpathTV.DecMapUint8IntV(v, false, d)
14603 case *map[uint8]int:
14604 if v2, changed2 := fastpathTV.DecMapUint8IntV(*v, true, d); changed2 {
14605 *v = v2
14606 }
14607
14608 case map[uint8]int8:
14609 fastpathTV.DecMapUint8Int8V(v, false, d)
14610 case *map[uint8]int8:
14611 if v2, changed2 := fastpathTV.DecMapUint8Int8V(*v, true, d); changed2 {
14612 *v = v2
14613 }
14614
14615 case map[uint8]int16:
14616 fastpathTV.DecMapUint8Int16V(v, false, d)
14617 case *map[uint8]int16:
14618 if v2, changed2 := fastpathTV.DecMapUint8Int16V(*v, true, d); changed2 {
14619 *v = v2
14620 }
14621
14622 case map[uint8]int32:
14623 fastpathTV.DecMapUint8Int32V(v, false, d)
14624 case *map[uint8]int32:
14625 if v2, changed2 := fastpathTV.DecMapUint8Int32V(*v, true, d); changed2 {
14626 *v = v2
14627 }
14628
14629 case map[uint8]int64:
14630 fastpathTV.DecMapUint8Int64V(v, false, d)
14631 case *map[uint8]int64:
14632 if v2, changed2 := fastpathTV.DecMapUint8Int64V(*v, true, d); changed2 {
14633 *v = v2
14634 }
14635
14636 case map[uint8]float32:
14637 fastpathTV.DecMapUint8Float32V(v, false, d)
14638 case *map[uint8]float32:
14639 if v2, changed2 := fastpathTV.DecMapUint8Float32V(*v, true, d); changed2 {
14640 *v = v2
14641 }
14642
14643 case map[uint8]float64:
14644 fastpathTV.DecMapUint8Float64V(v, false, d)
14645 case *map[uint8]float64:
14646 if v2, changed2 := fastpathTV.DecMapUint8Float64V(*v, true, d); changed2 {
14647 *v = v2
14648 }
14649
14650 case map[uint8]bool:
14651 fastpathTV.DecMapUint8BoolV(v, false, d)
14652 case *map[uint8]bool:
14653 if v2, changed2 := fastpathTV.DecMapUint8BoolV(*v, true, d); changed2 {
14654 *v = v2
14655 }
14656
14657 case []uint16:
14658 fastpathTV.DecSliceUint16V(v, false, d)
14659 case *[]uint16:
14660 if v2, changed2 := fastpathTV.DecSliceUint16V(*v, true, d); changed2 {
14661 *v = v2
14662 }
14663
14664 case map[uint16]interface{}:
14665 fastpathTV.DecMapUint16IntfV(v, false, d)
14666 case *map[uint16]interface{}:
14667 if v2, changed2 := fastpathTV.DecMapUint16IntfV(*v, true, d); changed2 {
14668 *v = v2
14669 }
14670
14671 case map[uint16]string:
14672 fastpathTV.DecMapUint16StringV(v, false, d)
14673 case *map[uint16]string:
14674 if v2, changed2 := fastpathTV.DecMapUint16StringV(*v, true, d); changed2 {
14675 *v = v2
14676 }
14677
14678 case map[uint16]uint:
14679 fastpathTV.DecMapUint16UintV(v, false, d)
14680 case *map[uint16]uint:
14681 if v2, changed2 := fastpathTV.DecMapUint16UintV(*v, true, d); changed2 {
14682 *v = v2
14683 }
14684
14685 case map[uint16]uint8:
14686 fastpathTV.DecMapUint16Uint8V(v, false, d)
14687 case *map[uint16]uint8:
14688 if v2, changed2 := fastpathTV.DecMapUint16Uint8V(*v, true, d); changed2 {
14689 *v = v2
14690 }
14691
14692 case map[uint16]uint16:
14693 fastpathTV.DecMapUint16Uint16V(v, false, d)
14694 case *map[uint16]uint16:
14695 if v2, changed2 := fastpathTV.DecMapUint16Uint16V(*v, true, d); changed2 {
14696 *v = v2
14697 }
14698
14699 case map[uint16]uint32:
14700 fastpathTV.DecMapUint16Uint32V(v, false, d)
14701 case *map[uint16]uint32:
14702 if v2, changed2 := fastpathTV.DecMapUint16Uint32V(*v, true, d); changed2 {
14703 *v = v2
14704 }
14705
14706 case map[uint16]uint64:
14707 fastpathTV.DecMapUint16Uint64V(v, false, d)
14708 case *map[uint16]uint64:
14709 if v2, changed2 := fastpathTV.DecMapUint16Uint64V(*v, true, d); changed2 {
14710 *v = v2
14711 }
14712
14713 case map[uint16]uintptr:
14714 fastpathTV.DecMapUint16UintptrV(v, false, d)
14715 case *map[uint16]uintptr:
14716 if v2, changed2 := fastpathTV.DecMapUint16UintptrV(*v, true, d); changed2 {
14717 *v = v2
14718 }
14719
14720 case map[uint16]int:
14721 fastpathTV.DecMapUint16IntV(v, false, d)
14722 case *map[uint16]int:
14723 if v2, changed2 := fastpathTV.DecMapUint16IntV(*v, true, d); changed2 {
14724 *v = v2
14725 }
14726
14727 case map[uint16]int8:
14728 fastpathTV.DecMapUint16Int8V(v, false, d)
14729 case *map[uint16]int8:
14730 if v2, changed2 := fastpathTV.DecMapUint16Int8V(*v, true, d); changed2 {
14731 *v = v2
14732 }
14733
14734 case map[uint16]int16:
14735 fastpathTV.DecMapUint16Int16V(v, false, d)
14736 case *map[uint16]int16:
14737 if v2, changed2 := fastpathTV.DecMapUint16Int16V(*v, true, d); changed2 {
14738 *v = v2
14739 }
14740
14741 case map[uint16]int32:
14742 fastpathTV.DecMapUint16Int32V(v, false, d)
14743 case *map[uint16]int32:
14744 if v2, changed2 := fastpathTV.DecMapUint16Int32V(*v, true, d); changed2 {
14745 *v = v2
14746 }
14747
14748 case map[uint16]int64:
14749 fastpathTV.DecMapUint16Int64V(v, false, d)
14750 case *map[uint16]int64:
14751 if v2, changed2 := fastpathTV.DecMapUint16Int64V(*v, true, d); changed2 {
14752 *v = v2
14753 }
14754
14755 case map[uint16]float32:
14756 fastpathTV.DecMapUint16Float32V(v, false, d)
14757 case *map[uint16]float32:
14758 if v2, changed2 := fastpathTV.DecMapUint16Float32V(*v, true, d); changed2 {
14759 *v = v2
14760 }
14761
14762 case map[uint16]float64:
14763 fastpathTV.DecMapUint16Float64V(v, false, d)
14764 case *map[uint16]float64:
14765 if v2, changed2 := fastpathTV.DecMapUint16Float64V(*v, true, d); changed2 {
14766 *v = v2
14767 }
14768
14769 case map[uint16]bool:
14770 fastpathTV.DecMapUint16BoolV(v, false, d)
14771 case *map[uint16]bool:
14772 if v2, changed2 := fastpathTV.DecMapUint16BoolV(*v, true, d); changed2 {
14773 *v = v2
14774 }
14775
14776 case []uint32:
14777 fastpathTV.DecSliceUint32V(v, false, d)
14778 case *[]uint32:
14779 if v2, changed2 := fastpathTV.DecSliceUint32V(*v, true, d); changed2 {
14780 *v = v2
14781 }
14782
14783 case map[uint32]interface{}:
14784 fastpathTV.DecMapUint32IntfV(v, false, d)
14785 case *map[uint32]interface{}:
14786 if v2, changed2 := fastpathTV.DecMapUint32IntfV(*v, true, d); changed2 {
14787 *v = v2
14788 }
14789
14790 case map[uint32]string:
14791 fastpathTV.DecMapUint32StringV(v, false, d)
14792 case *map[uint32]string:
14793 if v2, changed2 := fastpathTV.DecMapUint32StringV(*v, true, d); changed2 {
14794 *v = v2
14795 }
14796
14797 case map[uint32]uint:
14798 fastpathTV.DecMapUint32UintV(v, false, d)
14799 case *map[uint32]uint:
14800 if v2, changed2 := fastpathTV.DecMapUint32UintV(*v, true, d); changed2 {
14801 *v = v2
14802 }
14803
14804 case map[uint32]uint8:
14805 fastpathTV.DecMapUint32Uint8V(v, false, d)
14806 case *map[uint32]uint8:
14807 if v2, changed2 := fastpathTV.DecMapUint32Uint8V(*v, true, d); changed2 {
14808 *v = v2
14809 }
14810
14811 case map[uint32]uint16:
14812 fastpathTV.DecMapUint32Uint16V(v, false, d)
14813 case *map[uint32]uint16:
14814 if v2, changed2 := fastpathTV.DecMapUint32Uint16V(*v, true, d); changed2 {
14815 *v = v2
14816 }
14817
14818 case map[uint32]uint32:
14819 fastpathTV.DecMapUint32Uint32V(v, false, d)
14820 case *map[uint32]uint32:
14821 if v2, changed2 := fastpathTV.DecMapUint32Uint32V(*v, true, d); changed2 {
14822 *v = v2
14823 }
14824
14825 case map[uint32]uint64:
14826 fastpathTV.DecMapUint32Uint64V(v, false, d)
14827 case *map[uint32]uint64:
14828 if v2, changed2 := fastpathTV.DecMapUint32Uint64V(*v, true, d); changed2 {
14829 *v = v2
14830 }
14831
14832 case map[uint32]uintptr:
14833 fastpathTV.DecMapUint32UintptrV(v, false, d)
14834 case *map[uint32]uintptr:
14835 if v2, changed2 := fastpathTV.DecMapUint32UintptrV(*v, true, d); changed2 {
14836 *v = v2
14837 }
14838
14839 case map[uint32]int:
14840 fastpathTV.DecMapUint32IntV(v, false, d)
14841 case *map[uint32]int:
14842 if v2, changed2 := fastpathTV.DecMapUint32IntV(*v, true, d); changed2 {
14843 *v = v2
14844 }
14845
14846 case map[uint32]int8:
14847 fastpathTV.DecMapUint32Int8V(v, false, d)
14848 case *map[uint32]int8:
14849 if v2, changed2 := fastpathTV.DecMapUint32Int8V(*v, true, d); changed2 {
14850 *v = v2
14851 }
14852
14853 case map[uint32]int16:
14854 fastpathTV.DecMapUint32Int16V(v, false, d)
14855 case *map[uint32]int16:
14856 if v2, changed2 := fastpathTV.DecMapUint32Int16V(*v, true, d); changed2 {
14857 *v = v2
14858 }
14859
14860 case map[uint32]int32:
14861 fastpathTV.DecMapUint32Int32V(v, false, d)
14862 case *map[uint32]int32:
14863 if v2, changed2 := fastpathTV.DecMapUint32Int32V(*v, true, d); changed2 {
14864 *v = v2
14865 }
14866
14867 case map[uint32]int64:
14868 fastpathTV.DecMapUint32Int64V(v, false, d)
14869 case *map[uint32]int64:
14870 if v2, changed2 := fastpathTV.DecMapUint32Int64V(*v, true, d); changed2 {
14871 *v = v2
14872 }
14873
14874 case map[uint32]float32:
14875 fastpathTV.DecMapUint32Float32V(v, false, d)
14876 case *map[uint32]float32:
14877 if v2, changed2 := fastpathTV.DecMapUint32Float32V(*v, true, d); changed2 {
14878 *v = v2
14879 }
14880
14881 case map[uint32]float64:
14882 fastpathTV.DecMapUint32Float64V(v, false, d)
14883 case *map[uint32]float64:
14884 if v2, changed2 := fastpathTV.DecMapUint32Float64V(*v, true, d); changed2 {
14885 *v = v2
14886 }
14887
14888 case map[uint32]bool:
14889 fastpathTV.DecMapUint32BoolV(v, false, d)
14890 case *map[uint32]bool:
14891 if v2, changed2 := fastpathTV.DecMapUint32BoolV(*v, true, d); changed2 {
14892 *v = v2
14893 }
14894
14895 case []uint64:
14896 fastpathTV.DecSliceUint64V(v, false, d)
14897 case *[]uint64:
14898 if v2, changed2 := fastpathTV.DecSliceUint64V(*v, true, d); changed2 {
14899 *v = v2
14900 }
14901
14902 case map[uint64]interface{}:
14903 fastpathTV.DecMapUint64IntfV(v, false, d)
14904 case *map[uint64]interface{}:
14905 if v2, changed2 := fastpathTV.DecMapUint64IntfV(*v, true, d); changed2 {
14906 *v = v2
14907 }
14908
14909 case map[uint64]string:
14910 fastpathTV.DecMapUint64StringV(v, false, d)
14911 case *map[uint64]string:
14912 if v2, changed2 := fastpathTV.DecMapUint64StringV(*v, true, d); changed2 {
14913 *v = v2
14914 }
14915
14916 case map[uint64]uint:
14917 fastpathTV.DecMapUint64UintV(v, false, d)
14918 case *map[uint64]uint:
14919 if v2, changed2 := fastpathTV.DecMapUint64UintV(*v, true, d); changed2 {
14920 *v = v2
14921 }
14922
14923 case map[uint64]uint8:
14924 fastpathTV.DecMapUint64Uint8V(v, false, d)
14925 case *map[uint64]uint8:
14926 if v2, changed2 := fastpathTV.DecMapUint64Uint8V(*v, true, d); changed2 {
14927 *v = v2
14928 }
14929
14930 case map[uint64]uint16:
14931 fastpathTV.DecMapUint64Uint16V(v, false, d)
14932 case *map[uint64]uint16:
14933 if v2, changed2 := fastpathTV.DecMapUint64Uint16V(*v, true, d); changed2 {
14934 *v = v2
14935 }
14936
14937 case map[uint64]uint32:
14938 fastpathTV.DecMapUint64Uint32V(v, false, d)
14939 case *map[uint64]uint32:
14940 if v2, changed2 := fastpathTV.DecMapUint64Uint32V(*v, true, d); changed2 {
14941 *v = v2
14942 }
14943
14944 case map[uint64]uint64:
14945 fastpathTV.DecMapUint64Uint64V(v, false, d)
14946 case *map[uint64]uint64:
14947 if v2, changed2 := fastpathTV.DecMapUint64Uint64V(*v, true, d); changed2 {
14948 *v = v2
14949 }
14950
14951 case map[uint64]uintptr:
14952 fastpathTV.DecMapUint64UintptrV(v, false, d)
14953 case *map[uint64]uintptr:
14954 if v2, changed2 := fastpathTV.DecMapUint64UintptrV(*v, true, d); changed2 {
14955 *v = v2
14956 }
14957
14958 case map[uint64]int:
14959 fastpathTV.DecMapUint64IntV(v, false, d)
14960 case *map[uint64]int:
14961 if v2, changed2 := fastpathTV.DecMapUint64IntV(*v, true, d); changed2 {
14962 *v = v2
14963 }
14964
14965 case map[uint64]int8:
14966 fastpathTV.DecMapUint64Int8V(v, false, d)
14967 case *map[uint64]int8:
14968 if v2, changed2 := fastpathTV.DecMapUint64Int8V(*v, true, d); changed2 {
14969 *v = v2
14970 }
14971
14972 case map[uint64]int16:
14973 fastpathTV.DecMapUint64Int16V(v, false, d)
14974 case *map[uint64]int16:
14975 if v2, changed2 := fastpathTV.DecMapUint64Int16V(*v, true, d); changed2 {
14976 *v = v2
14977 }
14978
14979 case map[uint64]int32:
14980 fastpathTV.DecMapUint64Int32V(v, false, d)
14981 case *map[uint64]int32:
14982 if v2, changed2 := fastpathTV.DecMapUint64Int32V(*v, true, d); changed2 {
14983 *v = v2
14984 }
14985
14986 case map[uint64]int64:
14987 fastpathTV.DecMapUint64Int64V(v, false, d)
14988 case *map[uint64]int64:
14989 if v2, changed2 := fastpathTV.DecMapUint64Int64V(*v, true, d); changed2 {
14990 *v = v2
14991 }
14992
14993 case map[uint64]float32:
14994 fastpathTV.DecMapUint64Float32V(v, false, d)
14995 case *map[uint64]float32:
14996 if v2, changed2 := fastpathTV.DecMapUint64Float32V(*v, true, d); changed2 {
14997 *v = v2
14998 }
14999
15000 case map[uint64]float64:
15001 fastpathTV.DecMapUint64Float64V(v, false, d)
15002 case *map[uint64]float64:
15003 if v2, changed2 := fastpathTV.DecMapUint64Float64V(*v, true, d); changed2 {
15004 *v = v2
15005 }
15006
15007 case map[uint64]bool:
15008 fastpathTV.DecMapUint64BoolV(v, false, d)
15009 case *map[uint64]bool:
15010 if v2, changed2 := fastpathTV.DecMapUint64BoolV(*v, true, d); changed2 {
15011 *v = v2
15012 }
15013
15014 case []uintptr:
15015 fastpathTV.DecSliceUintptrV(v, false, d)
15016 case *[]uintptr:
15017 if v2, changed2 := fastpathTV.DecSliceUintptrV(*v, true, d); changed2 {
15018 *v = v2
15019 }
15020
15021 case map[uintptr]interface{}:
15022 fastpathTV.DecMapUintptrIntfV(v, false, d)
15023 case *map[uintptr]interface{}:
15024 if v2, changed2 := fastpathTV.DecMapUintptrIntfV(*v, true, d); changed2 {
15025 *v = v2
15026 }
15027
15028 case map[uintptr]string:
15029 fastpathTV.DecMapUintptrStringV(v, false, d)
15030 case *map[uintptr]string:
15031 if v2, changed2 := fastpathTV.DecMapUintptrStringV(*v, true, d); changed2 {
15032 *v = v2
15033 }
15034
15035 case map[uintptr]uint:
15036 fastpathTV.DecMapUintptrUintV(v, false, d)
15037 case *map[uintptr]uint:
15038 if v2, changed2 := fastpathTV.DecMapUintptrUintV(*v, true, d); changed2 {
15039 *v = v2
15040 }
15041
15042 case map[uintptr]uint8:
15043 fastpathTV.DecMapUintptrUint8V(v, false, d)
15044 case *map[uintptr]uint8:
15045 if v2, changed2 := fastpathTV.DecMapUintptrUint8V(*v, true, d); changed2 {
15046 *v = v2
15047 }
15048
15049 case map[uintptr]uint16:
15050 fastpathTV.DecMapUintptrUint16V(v, false, d)
15051 case *map[uintptr]uint16:
15052 if v2, changed2 := fastpathTV.DecMapUintptrUint16V(*v, true, d); changed2 {
15053 *v = v2
15054 }
15055
15056 case map[uintptr]uint32:
15057 fastpathTV.DecMapUintptrUint32V(v, false, d)
15058 case *map[uintptr]uint32:
15059 if v2, changed2 := fastpathTV.DecMapUintptrUint32V(*v, true, d); changed2 {
15060 *v = v2
15061 }
15062
15063 case map[uintptr]uint64:
15064 fastpathTV.DecMapUintptrUint64V(v, false, d)
15065 case *map[uintptr]uint64:
15066 if v2, changed2 := fastpathTV.DecMapUintptrUint64V(*v, true, d); changed2 {
15067 *v = v2
15068 }
15069
15070 case map[uintptr]uintptr:
15071 fastpathTV.DecMapUintptrUintptrV(v, false, d)
15072 case *map[uintptr]uintptr:
15073 if v2, changed2 := fastpathTV.DecMapUintptrUintptrV(*v, true, d); changed2 {
15074 *v = v2
15075 }
15076
15077 case map[uintptr]int:
15078 fastpathTV.DecMapUintptrIntV(v, false, d)
15079 case *map[uintptr]int:
15080 if v2, changed2 := fastpathTV.DecMapUintptrIntV(*v, true, d); changed2 {
15081 *v = v2
15082 }
15083
15084 case map[uintptr]int8:
15085 fastpathTV.DecMapUintptrInt8V(v, false, d)
15086 case *map[uintptr]int8:
15087 if v2, changed2 := fastpathTV.DecMapUintptrInt8V(*v, true, d); changed2 {
15088 *v = v2
15089 }
15090
15091 case map[uintptr]int16:
15092 fastpathTV.DecMapUintptrInt16V(v, false, d)
15093 case *map[uintptr]int16:
15094 if v2, changed2 := fastpathTV.DecMapUintptrInt16V(*v, true, d); changed2 {
15095 *v = v2
15096 }
15097
15098 case map[uintptr]int32:
15099 fastpathTV.DecMapUintptrInt32V(v, false, d)
15100 case *map[uintptr]int32:
15101 if v2, changed2 := fastpathTV.DecMapUintptrInt32V(*v, true, d); changed2 {
15102 *v = v2
15103 }
15104
15105 case map[uintptr]int64:
15106 fastpathTV.DecMapUintptrInt64V(v, false, d)
15107 case *map[uintptr]int64:
15108 if v2, changed2 := fastpathTV.DecMapUintptrInt64V(*v, true, d); changed2 {
15109 *v = v2
15110 }
15111
15112 case map[uintptr]float32:
15113 fastpathTV.DecMapUintptrFloat32V(v, false, d)
15114 case *map[uintptr]float32:
15115 if v2, changed2 := fastpathTV.DecMapUintptrFloat32V(*v, true, d); changed2 {
15116 *v = v2
15117 }
15118
15119 case map[uintptr]float64:
15120 fastpathTV.DecMapUintptrFloat64V(v, false, d)
15121 case *map[uintptr]float64:
15122 if v2, changed2 := fastpathTV.DecMapUintptrFloat64V(*v, true, d); changed2 {
15123 *v = v2
15124 }
15125
15126 case map[uintptr]bool:
15127 fastpathTV.DecMapUintptrBoolV(v, false, d)
15128 case *map[uintptr]bool:
15129 if v2, changed2 := fastpathTV.DecMapUintptrBoolV(*v, true, d); changed2 {
15130 *v = v2
15131 }
15132
15133 case []int:
15134 fastpathTV.DecSliceIntV(v, false, d)
15135 case *[]int:
15136 if v2, changed2 := fastpathTV.DecSliceIntV(*v, true, d); changed2 {
15137 *v = v2
15138 }
15139
15140 case map[int]interface{}:
15141 fastpathTV.DecMapIntIntfV(v, false, d)
15142 case *map[int]interface{}:
15143 if v2, changed2 := fastpathTV.DecMapIntIntfV(*v, true, d); changed2 {
15144 *v = v2
15145 }
15146
15147 case map[int]string:
15148 fastpathTV.DecMapIntStringV(v, false, d)
15149 case *map[int]string:
15150 if v2, changed2 := fastpathTV.DecMapIntStringV(*v, true, d); changed2 {
15151 *v = v2
15152 }
15153
15154 case map[int]uint:
15155 fastpathTV.DecMapIntUintV(v, false, d)
15156 case *map[int]uint:
15157 if v2, changed2 := fastpathTV.DecMapIntUintV(*v, true, d); changed2 {
15158 *v = v2
15159 }
15160
15161 case map[int]uint8:
15162 fastpathTV.DecMapIntUint8V(v, false, d)
15163 case *map[int]uint8:
15164 if v2, changed2 := fastpathTV.DecMapIntUint8V(*v, true, d); changed2 {
15165 *v = v2
15166 }
15167
15168 case map[int]uint16:
15169 fastpathTV.DecMapIntUint16V(v, false, d)
15170 case *map[int]uint16:
15171 if v2, changed2 := fastpathTV.DecMapIntUint16V(*v, true, d); changed2 {
15172 *v = v2
15173 }
15174
15175 case map[int]uint32:
15176 fastpathTV.DecMapIntUint32V(v, false, d)
15177 case *map[int]uint32:
15178 if v2, changed2 := fastpathTV.DecMapIntUint32V(*v, true, d); changed2 {
15179 *v = v2
15180 }
15181
15182 case map[int]uint64:
15183 fastpathTV.DecMapIntUint64V(v, false, d)
15184 case *map[int]uint64:
15185 if v2, changed2 := fastpathTV.DecMapIntUint64V(*v, true, d); changed2 {
15186 *v = v2
15187 }
15188
15189 case map[int]uintptr:
15190 fastpathTV.DecMapIntUintptrV(v, false, d)
15191 case *map[int]uintptr:
15192 if v2, changed2 := fastpathTV.DecMapIntUintptrV(*v, true, d); changed2 {
15193 *v = v2
15194 }
15195
15196 case map[int]int:
15197 fastpathTV.DecMapIntIntV(v, false, d)
15198 case *map[int]int:
15199 if v2, changed2 := fastpathTV.DecMapIntIntV(*v, true, d); changed2 {
15200 *v = v2
15201 }
15202
15203 case map[int]int8:
15204 fastpathTV.DecMapIntInt8V(v, false, d)
15205 case *map[int]int8:
15206 if v2, changed2 := fastpathTV.DecMapIntInt8V(*v, true, d); changed2 {
15207 *v = v2
15208 }
15209
15210 case map[int]int16:
15211 fastpathTV.DecMapIntInt16V(v, false, d)
15212 case *map[int]int16:
15213 if v2, changed2 := fastpathTV.DecMapIntInt16V(*v, true, d); changed2 {
15214 *v = v2
15215 }
15216
15217 case map[int]int32:
15218 fastpathTV.DecMapIntInt32V(v, false, d)
15219 case *map[int]int32:
15220 if v2, changed2 := fastpathTV.DecMapIntInt32V(*v, true, d); changed2 {
15221 *v = v2
15222 }
15223
15224 case map[int]int64:
15225 fastpathTV.DecMapIntInt64V(v, false, d)
15226 case *map[int]int64:
15227 if v2, changed2 := fastpathTV.DecMapIntInt64V(*v, true, d); changed2 {
15228 *v = v2
15229 }
15230
15231 case map[int]float32:
15232 fastpathTV.DecMapIntFloat32V(v, false, d)
15233 case *map[int]float32:
15234 if v2, changed2 := fastpathTV.DecMapIntFloat32V(*v, true, d); changed2 {
15235 *v = v2
15236 }
15237
15238 case map[int]float64:
15239 fastpathTV.DecMapIntFloat64V(v, false, d)
15240 case *map[int]float64:
15241 if v2, changed2 := fastpathTV.DecMapIntFloat64V(*v, true, d); changed2 {
15242 *v = v2
15243 }
15244
15245 case map[int]bool:
15246 fastpathTV.DecMapIntBoolV(v, false, d)
15247 case *map[int]bool:
15248 if v2, changed2 := fastpathTV.DecMapIntBoolV(*v, true, d); changed2 {
15249 *v = v2
15250 }
15251
15252 case []int8:
15253 fastpathTV.DecSliceInt8V(v, false, d)
15254 case *[]int8:
15255 if v2, changed2 := fastpathTV.DecSliceInt8V(*v, true, d); changed2 {
15256 *v = v2
15257 }
15258
15259 case map[int8]interface{}:
15260 fastpathTV.DecMapInt8IntfV(v, false, d)
15261 case *map[int8]interface{}:
15262 if v2, changed2 := fastpathTV.DecMapInt8IntfV(*v, true, d); changed2 {
15263 *v = v2
15264 }
15265
15266 case map[int8]string:
15267 fastpathTV.DecMapInt8StringV(v, false, d)
15268 case *map[int8]string:
15269 if v2, changed2 := fastpathTV.DecMapInt8StringV(*v, true, d); changed2 {
15270 *v = v2
15271 }
15272
15273 case map[int8]uint:
15274 fastpathTV.DecMapInt8UintV(v, false, d)
15275 case *map[int8]uint:
15276 if v2, changed2 := fastpathTV.DecMapInt8UintV(*v, true, d); changed2 {
15277 *v = v2
15278 }
15279
15280 case map[int8]uint8:
15281 fastpathTV.DecMapInt8Uint8V(v, false, d)
15282 case *map[int8]uint8:
15283 if v2, changed2 := fastpathTV.DecMapInt8Uint8V(*v, true, d); changed2 {
15284 *v = v2
15285 }
15286
15287 case map[int8]uint16:
15288 fastpathTV.DecMapInt8Uint16V(v, false, d)
15289 case *map[int8]uint16:
15290 if v2, changed2 := fastpathTV.DecMapInt8Uint16V(*v, true, d); changed2 {
15291 *v = v2
15292 }
15293
15294 case map[int8]uint32:
15295 fastpathTV.DecMapInt8Uint32V(v, false, d)
15296 case *map[int8]uint32:
15297 if v2, changed2 := fastpathTV.DecMapInt8Uint32V(*v, true, d); changed2 {
15298 *v = v2
15299 }
15300
15301 case map[int8]uint64:
15302 fastpathTV.DecMapInt8Uint64V(v, false, d)
15303 case *map[int8]uint64:
15304 if v2, changed2 := fastpathTV.DecMapInt8Uint64V(*v, true, d); changed2 {
15305 *v = v2
15306 }
15307
15308 case map[int8]uintptr:
15309 fastpathTV.DecMapInt8UintptrV(v, false, d)
15310 case *map[int8]uintptr:
15311 if v2, changed2 := fastpathTV.DecMapInt8UintptrV(*v, true, d); changed2 {
15312 *v = v2
15313 }
15314
15315 case map[int8]int:
15316 fastpathTV.DecMapInt8IntV(v, false, d)
15317 case *map[int8]int:
15318 if v2, changed2 := fastpathTV.DecMapInt8IntV(*v, true, d); changed2 {
15319 *v = v2
15320 }
15321
15322 case map[int8]int8:
15323 fastpathTV.DecMapInt8Int8V(v, false, d)
15324 case *map[int8]int8:
15325 if v2, changed2 := fastpathTV.DecMapInt8Int8V(*v, true, d); changed2 {
15326 *v = v2
15327 }
15328
15329 case map[int8]int16:
15330 fastpathTV.DecMapInt8Int16V(v, false, d)
15331 case *map[int8]int16:
15332 if v2, changed2 := fastpathTV.DecMapInt8Int16V(*v, true, d); changed2 {
15333 *v = v2
15334 }
15335
15336 case map[int8]int32:
15337 fastpathTV.DecMapInt8Int32V(v, false, d)
15338 case *map[int8]int32:
15339 if v2, changed2 := fastpathTV.DecMapInt8Int32V(*v, true, d); changed2 {
15340 *v = v2
15341 }
15342
15343 case map[int8]int64:
15344 fastpathTV.DecMapInt8Int64V(v, false, d)
15345 case *map[int8]int64:
15346 if v2, changed2 := fastpathTV.DecMapInt8Int64V(*v, true, d); changed2 {
15347 *v = v2
15348 }
15349
15350 case map[int8]float32:
15351 fastpathTV.DecMapInt8Float32V(v, false, d)
15352 case *map[int8]float32:
15353 if v2, changed2 := fastpathTV.DecMapInt8Float32V(*v, true, d); changed2 {
15354 *v = v2
15355 }
15356
15357 case map[int8]float64:
15358 fastpathTV.DecMapInt8Float64V(v, false, d)
15359 case *map[int8]float64:
15360 if v2, changed2 := fastpathTV.DecMapInt8Float64V(*v, true, d); changed2 {
15361 *v = v2
15362 }
15363
15364 case map[int8]bool:
15365 fastpathTV.DecMapInt8BoolV(v, false, d)
15366 case *map[int8]bool:
15367 if v2, changed2 := fastpathTV.DecMapInt8BoolV(*v, true, d); changed2 {
15368 *v = v2
15369 }
15370
15371 case []int16:
15372 fastpathTV.DecSliceInt16V(v, false, d)
15373 case *[]int16:
15374 if v2, changed2 := fastpathTV.DecSliceInt16V(*v, true, d); changed2 {
15375 *v = v2
15376 }
15377
15378 case map[int16]interface{}:
15379 fastpathTV.DecMapInt16IntfV(v, false, d)
15380 case *map[int16]interface{}:
15381 if v2, changed2 := fastpathTV.DecMapInt16IntfV(*v, true, d); changed2 {
15382 *v = v2
15383 }
15384
15385 case map[int16]string:
15386 fastpathTV.DecMapInt16StringV(v, false, d)
15387 case *map[int16]string:
15388 if v2, changed2 := fastpathTV.DecMapInt16StringV(*v, true, d); changed2 {
15389 *v = v2
15390 }
15391
15392 case map[int16]uint:
15393 fastpathTV.DecMapInt16UintV(v, false, d)
15394 case *map[int16]uint:
15395 if v2, changed2 := fastpathTV.DecMapInt16UintV(*v, true, d); changed2 {
15396 *v = v2
15397 }
15398
15399 case map[int16]uint8:
15400 fastpathTV.DecMapInt16Uint8V(v, false, d)
15401 case *map[int16]uint8:
15402 if v2, changed2 := fastpathTV.DecMapInt16Uint8V(*v, true, d); changed2 {
15403 *v = v2
15404 }
15405
15406 case map[int16]uint16:
15407 fastpathTV.DecMapInt16Uint16V(v, false, d)
15408 case *map[int16]uint16:
15409 if v2, changed2 := fastpathTV.DecMapInt16Uint16V(*v, true, d); changed2 {
15410 *v = v2
15411 }
15412
15413 case map[int16]uint32:
15414 fastpathTV.DecMapInt16Uint32V(v, false, d)
15415 case *map[int16]uint32:
15416 if v2, changed2 := fastpathTV.DecMapInt16Uint32V(*v, true, d); changed2 {
15417 *v = v2
15418 }
15419
15420 case map[int16]uint64:
15421 fastpathTV.DecMapInt16Uint64V(v, false, d)
15422 case *map[int16]uint64:
15423 if v2, changed2 := fastpathTV.DecMapInt16Uint64V(*v, true, d); changed2 {
15424 *v = v2
15425 }
15426
15427 case map[int16]uintptr:
15428 fastpathTV.DecMapInt16UintptrV(v, false, d)
15429 case *map[int16]uintptr:
15430 if v2, changed2 := fastpathTV.DecMapInt16UintptrV(*v, true, d); changed2 {
15431 *v = v2
15432 }
15433
15434 case map[int16]int:
15435 fastpathTV.DecMapInt16IntV(v, false, d)
15436 case *map[int16]int:
15437 if v2, changed2 := fastpathTV.DecMapInt16IntV(*v, true, d); changed2 {
15438 *v = v2
15439 }
15440
15441 case map[int16]int8:
15442 fastpathTV.DecMapInt16Int8V(v, false, d)
15443 case *map[int16]int8:
15444 if v2, changed2 := fastpathTV.DecMapInt16Int8V(*v, true, d); changed2 {
15445 *v = v2
15446 }
15447
15448 case map[int16]int16:
15449 fastpathTV.DecMapInt16Int16V(v, false, d)
15450 case *map[int16]int16:
15451 if v2, changed2 := fastpathTV.DecMapInt16Int16V(*v, true, d); changed2 {
15452 *v = v2
15453 }
15454
15455 case map[int16]int32:
15456 fastpathTV.DecMapInt16Int32V(v, false, d)
15457 case *map[int16]int32:
15458 if v2, changed2 := fastpathTV.DecMapInt16Int32V(*v, true, d); changed2 {
15459 *v = v2
15460 }
15461
15462 case map[int16]int64:
15463 fastpathTV.DecMapInt16Int64V(v, false, d)
15464 case *map[int16]int64:
15465 if v2, changed2 := fastpathTV.DecMapInt16Int64V(*v, true, d); changed2 {
15466 *v = v2
15467 }
15468
15469 case map[int16]float32:
15470 fastpathTV.DecMapInt16Float32V(v, false, d)
15471 case *map[int16]float32:
15472 if v2, changed2 := fastpathTV.DecMapInt16Float32V(*v, true, d); changed2 {
15473 *v = v2
15474 }
15475
15476 case map[int16]float64:
15477 fastpathTV.DecMapInt16Float64V(v, false, d)
15478 case *map[int16]float64:
15479 if v2, changed2 := fastpathTV.DecMapInt16Float64V(*v, true, d); changed2 {
15480 *v = v2
15481 }
15482
15483 case map[int16]bool:
15484 fastpathTV.DecMapInt16BoolV(v, false, d)
15485 case *map[int16]bool:
15486 if v2, changed2 := fastpathTV.DecMapInt16BoolV(*v, true, d); changed2 {
15487 *v = v2
15488 }
15489
15490 case []int32:
15491 fastpathTV.DecSliceInt32V(v, false, d)
15492 case *[]int32:
15493 if v2, changed2 := fastpathTV.DecSliceInt32V(*v, true, d); changed2 {
15494 *v = v2
15495 }
15496
15497 case map[int32]interface{}:
15498 fastpathTV.DecMapInt32IntfV(v, false, d)
15499 case *map[int32]interface{}:
15500 if v2, changed2 := fastpathTV.DecMapInt32IntfV(*v, true, d); changed2 {
15501 *v = v2
15502 }
15503
15504 case map[int32]string:
15505 fastpathTV.DecMapInt32StringV(v, false, d)
15506 case *map[int32]string:
15507 if v2, changed2 := fastpathTV.DecMapInt32StringV(*v, true, d); changed2 {
15508 *v = v2
15509 }
15510
15511 case map[int32]uint:
15512 fastpathTV.DecMapInt32UintV(v, false, d)
15513 case *map[int32]uint:
15514 if v2, changed2 := fastpathTV.DecMapInt32UintV(*v, true, d); changed2 {
15515 *v = v2
15516 }
15517
15518 case map[int32]uint8:
15519 fastpathTV.DecMapInt32Uint8V(v, false, d)
15520 case *map[int32]uint8:
15521 if v2, changed2 := fastpathTV.DecMapInt32Uint8V(*v, true, d); changed2 {
15522 *v = v2
15523 }
15524
15525 case map[int32]uint16:
15526 fastpathTV.DecMapInt32Uint16V(v, false, d)
15527 case *map[int32]uint16:
15528 if v2, changed2 := fastpathTV.DecMapInt32Uint16V(*v, true, d); changed2 {
15529 *v = v2
15530 }
15531
15532 case map[int32]uint32:
15533 fastpathTV.DecMapInt32Uint32V(v, false, d)
15534 case *map[int32]uint32:
15535 if v2, changed2 := fastpathTV.DecMapInt32Uint32V(*v, true, d); changed2 {
15536 *v = v2
15537 }
15538
15539 case map[int32]uint64:
15540 fastpathTV.DecMapInt32Uint64V(v, false, d)
15541 case *map[int32]uint64:
15542 if v2, changed2 := fastpathTV.DecMapInt32Uint64V(*v, true, d); changed2 {
15543 *v = v2
15544 }
15545
15546 case map[int32]uintptr:
15547 fastpathTV.DecMapInt32UintptrV(v, false, d)
15548 case *map[int32]uintptr:
15549 if v2, changed2 := fastpathTV.DecMapInt32UintptrV(*v, true, d); changed2 {
15550 *v = v2
15551 }
15552
15553 case map[int32]int:
15554 fastpathTV.DecMapInt32IntV(v, false, d)
15555 case *map[int32]int:
15556 if v2, changed2 := fastpathTV.DecMapInt32IntV(*v, true, d); changed2 {
15557 *v = v2
15558 }
15559
15560 case map[int32]int8:
15561 fastpathTV.DecMapInt32Int8V(v, false, d)
15562 case *map[int32]int8:
15563 if v2, changed2 := fastpathTV.DecMapInt32Int8V(*v, true, d); changed2 {
15564 *v = v2
15565 }
15566
15567 case map[int32]int16:
15568 fastpathTV.DecMapInt32Int16V(v, false, d)
15569 case *map[int32]int16:
15570 if v2, changed2 := fastpathTV.DecMapInt32Int16V(*v, true, d); changed2 {
15571 *v = v2
15572 }
15573
15574 case map[int32]int32:
15575 fastpathTV.DecMapInt32Int32V(v, false, d)
15576 case *map[int32]int32:
15577 if v2, changed2 := fastpathTV.DecMapInt32Int32V(*v, true, d); changed2 {
15578 *v = v2
15579 }
15580
15581 case map[int32]int64:
15582 fastpathTV.DecMapInt32Int64V(v, false, d)
15583 case *map[int32]int64:
15584 if v2, changed2 := fastpathTV.DecMapInt32Int64V(*v, true, d); changed2 {
15585 *v = v2
15586 }
15587
15588 case map[int32]float32:
15589 fastpathTV.DecMapInt32Float32V(v, false, d)
15590 case *map[int32]float32:
15591 if v2, changed2 := fastpathTV.DecMapInt32Float32V(*v, true, d); changed2 {
15592 *v = v2
15593 }
15594
15595 case map[int32]float64:
15596 fastpathTV.DecMapInt32Float64V(v, false, d)
15597 case *map[int32]float64:
15598 if v2, changed2 := fastpathTV.DecMapInt32Float64V(*v, true, d); changed2 {
15599 *v = v2
15600 }
15601
15602 case map[int32]bool:
15603 fastpathTV.DecMapInt32BoolV(v, false, d)
15604 case *map[int32]bool:
15605 if v2, changed2 := fastpathTV.DecMapInt32BoolV(*v, true, d); changed2 {
15606 *v = v2
15607 }
15608
15609 case []int64:
15610 fastpathTV.DecSliceInt64V(v, false, d)
15611 case *[]int64:
15612 if v2, changed2 := fastpathTV.DecSliceInt64V(*v, true, d); changed2 {
15613 *v = v2
15614 }
15615
15616 case map[int64]interface{}:
15617 fastpathTV.DecMapInt64IntfV(v, false, d)
15618 case *map[int64]interface{}:
15619 if v2, changed2 := fastpathTV.DecMapInt64IntfV(*v, true, d); changed2 {
15620 *v = v2
15621 }
15622
15623 case map[int64]string:
15624 fastpathTV.DecMapInt64StringV(v, false, d)
15625 case *map[int64]string:
15626 if v2, changed2 := fastpathTV.DecMapInt64StringV(*v, true, d); changed2 {
15627 *v = v2
15628 }
15629
15630 case map[int64]uint:
15631 fastpathTV.DecMapInt64UintV(v, false, d)
15632 case *map[int64]uint:
15633 if v2, changed2 := fastpathTV.DecMapInt64UintV(*v, true, d); changed2 {
15634 *v = v2
15635 }
15636
15637 case map[int64]uint8:
15638 fastpathTV.DecMapInt64Uint8V(v, false, d)
15639 case *map[int64]uint8:
15640 if v2, changed2 := fastpathTV.DecMapInt64Uint8V(*v, true, d); changed2 {
15641 *v = v2
15642 }
15643
15644 case map[int64]uint16:
15645 fastpathTV.DecMapInt64Uint16V(v, false, d)
15646 case *map[int64]uint16:
15647 if v2, changed2 := fastpathTV.DecMapInt64Uint16V(*v, true, d); changed2 {
15648 *v = v2
15649 }
15650
15651 case map[int64]uint32:
15652 fastpathTV.DecMapInt64Uint32V(v, false, d)
15653 case *map[int64]uint32:
15654 if v2, changed2 := fastpathTV.DecMapInt64Uint32V(*v, true, d); changed2 {
15655 *v = v2
15656 }
15657
15658 case map[int64]uint64:
15659 fastpathTV.DecMapInt64Uint64V(v, false, d)
15660 case *map[int64]uint64:
15661 if v2, changed2 := fastpathTV.DecMapInt64Uint64V(*v, true, d); changed2 {
15662 *v = v2
15663 }
15664
15665 case map[int64]uintptr:
15666 fastpathTV.DecMapInt64UintptrV(v, false, d)
15667 case *map[int64]uintptr:
15668 if v2, changed2 := fastpathTV.DecMapInt64UintptrV(*v, true, d); changed2 {
15669 *v = v2
15670 }
15671
15672 case map[int64]int:
15673 fastpathTV.DecMapInt64IntV(v, false, d)
15674 case *map[int64]int:
15675 if v2, changed2 := fastpathTV.DecMapInt64IntV(*v, true, d); changed2 {
15676 *v = v2
15677 }
15678
15679 case map[int64]int8:
15680 fastpathTV.DecMapInt64Int8V(v, false, d)
15681 case *map[int64]int8:
15682 if v2, changed2 := fastpathTV.DecMapInt64Int8V(*v, true, d); changed2 {
15683 *v = v2
15684 }
15685
15686 case map[int64]int16:
15687 fastpathTV.DecMapInt64Int16V(v, false, d)
15688 case *map[int64]int16:
15689 if v2, changed2 := fastpathTV.DecMapInt64Int16V(*v, true, d); changed2 {
15690 *v = v2
15691 }
15692
15693 case map[int64]int32:
15694 fastpathTV.DecMapInt64Int32V(v, false, d)
15695 case *map[int64]int32:
15696 if v2, changed2 := fastpathTV.DecMapInt64Int32V(*v, true, d); changed2 {
15697 *v = v2
15698 }
15699
15700 case map[int64]int64:
15701 fastpathTV.DecMapInt64Int64V(v, false, d)
15702 case *map[int64]int64:
15703 if v2, changed2 := fastpathTV.DecMapInt64Int64V(*v, true, d); changed2 {
15704 *v = v2
15705 }
15706
15707 case map[int64]float32:
15708 fastpathTV.DecMapInt64Float32V(v, false, d)
15709 case *map[int64]float32:
15710 if v2, changed2 := fastpathTV.DecMapInt64Float32V(*v, true, d); changed2 {
15711 *v = v2
15712 }
15713
15714 case map[int64]float64:
15715 fastpathTV.DecMapInt64Float64V(v, false, d)
15716 case *map[int64]float64:
15717 if v2, changed2 := fastpathTV.DecMapInt64Float64V(*v, true, d); changed2 {
15718 *v = v2
15719 }
15720
15721 case map[int64]bool:
15722 fastpathTV.DecMapInt64BoolV(v, false, d)
15723 case *map[int64]bool:
15724 if v2, changed2 := fastpathTV.DecMapInt64BoolV(*v, true, d); changed2 {
15725 *v = v2
15726 }
15727
15728 case []bool:
15729 fastpathTV.DecSliceBoolV(v, false, d)
15730 case *[]bool:
15731 if v2, changed2 := fastpathTV.DecSliceBoolV(*v, true, d); changed2 {
15732 *v = v2
15733 }
15734
15735 case map[bool]interface{}:
15736 fastpathTV.DecMapBoolIntfV(v, false, d)
15737 case *map[bool]interface{}:
15738 if v2, changed2 := fastpathTV.DecMapBoolIntfV(*v, true, d); changed2 {
15739 *v = v2
15740 }
15741
15742 case map[bool]string:
15743 fastpathTV.DecMapBoolStringV(v, false, d)
15744 case *map[bool]string:
15745 if v2, changed2 := fastpathTV.DecMapBoolStringV(*v, true, d); changed2 {
15746 *v = v2
15747 }
15748
15749 case map[bool]uint:
15750 fastpathTV.DecMapBoolUintV(v, false, d)
15751 case *map[bool]uint:
15752 if v2, changed2 := fastpathTV.DecMapBoolUintV(*v, true, d); changed2 {
15753 *v = v2
15754 }
15755
15756 case map[bool]uint8:
15757 fastpathTV.DecMapBoolUint8V(v, false, d)
15758 case *map[bool]uint8:
15759 if v2, changed2 := fastpathTV.DecMapBoolUint8V(*v, true, d); changed2 {
15760 *v = v2
15761 }
15762
15763 case map[bool]uint16:
15764 fastpathTV.DecMapBoolUint16V(v, false, d)
15765 case *map[bool]uint16:
15766 if v2, changed2 := fastpathTV.DecMapBoolUint16V(*v, true, d); changed2 {
15767 *v = v2
15768 }
15769
15770 case map[bool]uint32:
15771 fastpathTV.DecMapBoolUint32V(v, false, d)
15772 case *map[bool]uint32:
15773 if v2, changed2 := fastpathTV.DecMapBoolUint32V(*v, true, d); changed2 {
15774 *v = v2
15775 }
15776
15777 case map[bool]uint64:
15778 fastpathTV.DecMapBoolUint64V(v, false, d)
15779 case *map[bool]uint64:
15780 if v2, changed2 := fastpathTV.DecMapBoolUint64V(*v, true, d); changed2 {
15781 *v = v2
15782 }
15783
15784 case map[bool]uintptr:
15785 fastpathTV.DecMapBoolUintptrV(v, false, d)
15786 case *map[bool]uintptr:
15787 if v2, changed2 := fastpathTV.DecMapBoolUintptrV(*v, true, d); changed2 {
15788 *v = v2
15789 }
15790
15791 case map[bool]int:
15792 fastpathTV.DecMapBoolIntV(v, false, d)
15793 case *map[bool]int:
15794 if v2, changed2 := fastpathTV.DecMapBoolIntV(*v, true, d); changed2 {
15795 *v = v2
15796 }
15797
15798 case map[bool]int8:
15799 fastpathTV.DecMapBoolInt8V(v, false, d)
15800 case *map[bool]int8:
15801 if v2, changed2 := fastpathTV.DecMapBoolInt8V(*v, true, d); changed2 {
15802 *v = v2
15803 }
15804
15805 case map[bool]int16:
15806 fastpathTV.DecMapBoolInt16V(v, false, d)
15807 case *map[bool]int16:
15808 if v2, changed2 := fastpathTV.DecMapBoolInt16V(*v, true, d); changed2 {
15809 *v = v2
15810 }
15811
15812 case map[bool]int32:
15813 fastpathTV.DecMapBoolInt32V(v, false, d)
15814 case *map[bool]int32:
15815 if v2, changed2 := fastpathTV.DecMapBoolInt32V(*v, true, d); changed2 {
15816 *v = v2
15817 }
15818
15819 case map[bool]int64:
15820 fastpathTV.DecMapBoolInt64V(v, false, d)
15821 case *map[bool]int64:
15822 if v2, changed2 := fastpathTV.DecMapBoolInt64V(*v, true, d); changed2 {
15823 *v = v2
15824 }
15825
15826 case map[bool]float32:
15827 fastpathTV.DecMapBoolFloat32V(v, false, d)
15828 case *map[bool]float32:
15829 if v2, changed2 := fastpathTV.DecMapBoolFloat32V(*v, true, d); changed2 {
15830 *v = v2
15831 }
15832
15833 case map[bool]float64:
15834 fastpathTV.DecMapBoolFloat64V(v, false, d)
15835 case *map[bool]float64:
15836 if v2, changed2 := fastpathTV.DecMapBoolFloat64V(*v, true, d); changed2 {
15837 *v = v2
15838 }
15839
15840 case map[bool]bool:
15841 fastpathTV.DecMapBoolBoolV(v, false, d)
15842 case *map[bool]bool:
15843 if v2, changed2 := fastpathTV.DecMapBoolBoolV(*v, true, d); changed2 {
15844 *v = v2
15845 }
15846
15847 default:
15848 _ = v // TODO: workaround https://github.com/golang/go/issues/12927 (remove after go 1.6 release)
15849 return false
15850 }
15851 return true
15852 }
15853
15854 func fastpathDecodeSetZeroTypeSwitch(iv interface{}, d *Decoder) bool {
15855 switch v := iv.(type) {
15856
15857 case *[]interface{}:
15858 *v = nil
15859
15860 case *map[interface{}]interface{}:
15861 *v = nil
15862
15863 case *map[interface{}]string:
15864 *v = nil
15865
15866 case *map[interface{}]uint:
15867 *v = nil
15868
15869 case *map[interface{}]uint8:
15870 *v = nil
15871
15872 case *map[interface{}]uint16:
15873 *v = nil
15874
15875 case *map[interface{}]uint32:
15876 *v = nil
15877
15878 case *map[interface{}]uint64:
15879 *v = nil
15880
15881 case *map[interface{}]uintptr:
15882 *v = nil
15883
15884 case *map[interface{}]int:
15885 *v = nil
15886
15887 case *map[interface{}]int8:
15888 *v = nil
15889
15890 case *map[interface{}]int16:
15891 *v = nil
15892
15893 case *map[interface{}]int32:
15894 *v = nil
15895
15896 case *map[interface{}]int64:
15897 *v = nil
15898
15899 case *map[interface{}]float32:
15900 *v = nil
15901
15902 case *map[interface{}]float64:
15903 *v = nil
15904
15905 case *map[interface{}]bool:
15906 *v = nil
15907
15908 case *[]string:
15909 *v = nil
15910
15911 case *map[string]interface{}:
15912 *v = nil
15913
15914 case *map[string]string:
15915 *v = nil
15916
15917 case *map[string]uint:
15918 *v = nil
15919
15920 case *map[string]uint8:
15921 *v = nil
15922
15923 case *map[string]uint16:
15924 *v = nil
15925
15926 case *map[string]uint32:
15927 *v = nil
15928
15929 case *map[string]uint64:
15930 *v = nil
15931
15932 case *map[string]uintptr:
15933 *v = nil
15934
15935 case *map[string]int:
15936 *v = nil
15937
15938 case *map[string]int8:
15939 *v = nil
15940
15941 case *map[string]int16:
15942 *v = nil
15943
15944 case *map[string]int32:
15945 *v = nil
15946
15947 case *map[string]int64:
15948 *v = nil
15949
15950 case *map[string]float32:
15951 *v = nil
15952
15953 case *map[string]float64:
15954 *v = nil
15955
15956 case *map[string]bool:
15957 *v = nil
15958
15959 case *[]float32:
15960 *v = nil
15961
15962 case *map[float32]interface{}:
15963 *v = nil
15964
15965 case *map[float32]string:
15966 *v = nil
15967
15968 case *map[float32]uint:
15969 *v = nil
15970
15971 case *map[float32]uint8:
15972 *v = nil
15973
15974 case *map[float32]uint16:
15975 *v = nil
15976
15977 case *map[float32]uint32:
15978 *v = nil
15979
15980 case *map[float32]uint64:
15981 *v = nil
15982
15983 case *map[float32]uintptr:
15984 *v = nil
15985
15986 case *map[float32]int:
15987 *v = nil
15988
15989 case *map[float32]int8:
15990 *v = nil
15991
15992 case *map[float32]int16:
15993 *v = nil
15994
15995 case *map[float32]int32:
15996 *v = nil
15997
15998 case *map[float32]int64:
15999 *v = nil
16000
16001 case *map[float32]float32:
16002 *v = nil
16003
16004 case *map[float32]float64:
16005 *v = nil
16006
16007 case *map[float32]bool:
16008 *v = nil
16009
16010 case *[]float64:
16011 *v = nil
16012
16013 case *map[float64]interface{}:
16014 *v = nil
16015
16016 case *map[float64]string:
16017 *v = nil
16018
16019 case *map[float64]uint:
16020 *v = nil
16021
16022 case *map[float64]uint8:
16023 *v = nil
16024
16025 case *map[float64]uint16:
16026 *v = nil
16027
16028 case *map[float64]uint32:
16029 *v = nil
16030
16031 case *map[float64]uint64:
16032 *v = nil
16033
16034 case *map[float64]uintptr:
16035 *v = nil
16036
16037 case *map[float64]int:
16038 *v = nil
16039
16040 case *map[float64]int8:
16041 *v = nil
16042
16043 case *map[float64]int16:
16044 *v = nil
16045
16046 case *map[float64]int32:
16047 *v = nil
16048
16049 case *map[float64]int64:
16050 *v = nil
16051
16052 case *map[float64]float32:
16053 *v = nil
16054
16055 case *map[float64]float64:
16056 *v = nil
16057
16058 case *map[float64]bool:
16059 *v = nil
16060
16061 case *[]uint:
16062 *v = nil
16063
16064 case *map[uint]interface{}:
16065 *v = nil
16066
16067 case *map[uint]string:
16068 *v = nil
16069
16070 case *map[uint]uint:
16071 *v = nil
16072
16073 case *map[uint]uint8:
16074 *v = nil
16075
16076 case *map[uint]uint16:
16077 *v = nil
16078
16079 case *map[uint]uint32:
16080 *v = nil
16081
16082 case *map[uint]uint64:
16083 *v = nil
16084
16085 case *map[uint]uintptr:
16086 *v = nil
16087
16088 case *map[uint]int:
16089 *v = nil
16090
16091 case *map[uint]int8:
16092 *v = nil
16093
16094 case *map[uint]int16:
16095 *v = nil
16096
16097 case *map[uint]int32:
16098 *v = nil
16099
16100 case *map[uint]int64:
16101 *v = nil
16102
16103 case *map[uint]float32:
16104 *v = nil
16105
16106 case *map[uint]float64:
16107 *v = nil
16108
16109 case *map[uint]bool:
16110 *v = nil
16111
16112 case *map[uint8]interface{}:
16113 *v = nil
16114
16115 case *map[uint8]string:
16116 *v = nil
16117
16118 case *map[uint8]uint:
16119 *v = nil
16120
16121 case *map[uint8]uint8:
16122 *v = nil
16123
16124 case *map[uint8]uint16:
16125 *v = nil
16126
16127 case *map[uint8]uint32:
16128 *v = nil
16129
16130 case *map[uint8]uint64:
16131 *v = nil
16132
16133 case *map[uint8]uintptr:
16134 *v = nil
16135
16136 case *map[uint8]int:
16137 *v = nil
16138
16139 case *map[uint8]int8:
16140 *v = nil
16141
16142 case *map[uint8]int16:
16143 *v = nil
16144
16145 case *map[uint8]int32:
16146 *v = nil
16147
16148 case *map[uint8]int64:
16149 *v = nil
16150
16151 case *map[uint8]float32:
16152 *v = nil
16153
16154 case *map[uint8]float64:
16155 *v = nil
16156
16157 case *map[uint8]bool:
16158 *v = nil
16159
16160 case *[]uint16:
16161 *v = nil
16162
16163 case *map[uint16]interface{}:
16164 *v = nil
16165
16166 case *map[uint16]string:
16167 *v = nil
16168
16169 case *map[uint16]uint:
16170 *v = nil
16171
16172 case *map[uint16]uint8:
16173 *v = nil
16174
16175 case *map[uint16]uint16:
16176 *v = nil
16177
16178 case *map[uint16]uint32:
16179 *v = nil
16180
16181 case *map[uint16]uint64:
16182 *v = nil
16183
16184 case *map[uint16]uintptr:
16185 *v = nil
16186
16187 case *map[uint16]int:
16188 *v = nil
16189
16190 case *map[uint16]int8:
16191 *v = nil
16192
16193 case *map[uint16]int16:
16194 *v = nil
16195
16196 case *map[uint16]int32:
16197 *v = nil
16198
16199 case *map[uint16]int64:
16200 *v = nil
16201
16202 case *map[uint16]float32:
16203 *v = nil
16204
16205 case *map[uint16]float64:
16206 *v = nil
16207
16208 case *map[uint16]bool:
16209 *v = nil
16210
16211 case *[]uint32:
16212 *v = nil
16213
16214 case *map[uint32]interface{}:
16215 *v = nil
16216
16217 case *map[uint32]string:
16218 *v = nil
16219
16220 case *map[uint32]uint:
16221 *v = nil
16222
16223 case *map[uint32]uint8:
16224 *v = nil
16225
16226 case *map[uint32]uint16:
16227 *v = nil
16228
16229 case *map[uint32]uint32:
16230 *v = nil
16231
16232 case *map[uint32]uint64:
16233 *v = nil
16234
16235 case *map[uint32]uintptr:
16236 *v = nil
16237
16238 case *map[uint32]int:
16239 *v = nil
16240
16241 case *map[uint32]int8:
16242 *v = nil
16243
16244 case *map[uint32]int16:
16245 *v = nil
16246
16247 case *map[uint32]int32:
16248 *v = nil
16249
16250 case *map[uint32]int64:
16251 *v = nil
16252
16253 case *map[uint32]float32:
16254 *v = nil
16255
16256 case *map[uint32]float64:
16257 *v = nil
16258
16259 case *map[uint32]bool:
16260 *v = nil
16261
16262 case *[]uint64:
16263 *v = nil
16264
16265 case *map[uint64]interface{}:
16266 *v = nil
16267
16268 case *map[uint64]string:
16269 *v = nil
16270
16271 case *map[uint64]uint:
16272 *v = nil
16273
16274 case *map[uint64]uint8:
16275 *v = nil
16276
16277 case *map[uint64]uint16:
16278 *v = nil
16279
16280 case *map[uint64]uint32:
16281 *v = nil
16282
16283 case *map[uint64]uint64:
16284 *v = nil
16285
16286 case *map[uint64]uintptr:
16287 *v = nil
16288
16289 case *map[uint64]int:
16290 *v = nil
16291
16292 case *map[uint64]int8:
16293 *v = nil
16294
16295 case *map[uint64]int16:
16296 *v = nil
16297
16298 case *map[uint64]int32:
16299 *v = nil
16300
16301 case *map[uint64]int64:
16302 *v = nil
16303
16304 case *map[uint64]float32:
16305 *v = nil
16306
16307 case *map[uint64]float64:
16308 *v = nil
16309
16310 case *map[uint64]bool:
16311 *v = nil
16312
16313 case *[]uintptr:
16314 *v = nil
16315
16316 case *map[uintptr]interface{}:
16317 *v = nil
16318
16319 case *map[uintptr]string:
16320 *v = nil
16321
16322 case *map[uintptr]uint:
16323 *v = nil
16324
16325 case *map[uintptr]uint8:
16326 *v = nil
16327
16328 case *map[uintptr]uint16:
16329 *v = nil
16330
16331 case *map[uintptr]uint32:
16332 *v = nil
16333
16334 case *map[uintptr]uint64:
16335 *v = nil
16336
16337 case *map[uintptr]uintptr:
16338 *v = nil
16339
16340 case *map[uintptr]int:
16341 *v = nil
16342
16343 case *map[uintptr]int8:
16344 *v = nil
16345
16346 case *map[uintptr]int16:
16347 *v = nil
16348
16349 case *map[uintptr]int32:
16350 *v = nil
16351
16352 case *map[uintptr]int64:
16353 *v = nil
16354
16355 case *map[uintptr]float32:
16356 *v = nil
16357
16358 case *map[uintptr]float64:
16359 *v = nil
16360
16361 case *map[uintptr]bool:
16362 *v = nil
16363
16364 case *[]int:
16365 *v = nil
16366
16367 case *map[int]interface{}:
16368 *v = nil
16369
16370 case *map[int]string:
16371 *v = nil
16372
16373 case *map[int]uint:
16374 *v = nil
16375
16376 case *map[int]uint8:
16377 *v = nil
16378
16379 case *map[int]uint16:
16380 *v = nil
16381
16382 case *map[int]uint32:
16383 *v = nil
16384
16385 case *map[int]uint64:
16386 *v = nil
16387
16388 case *map[int]uintptr:
16389 *v = nil
16390
16391 case *map[int]int:
16392 *v = nil
16393
16394 case *map[int]int8:
16395 *v = nil
16396
16397 case *map[int]int16:
16398 *v = nil
16399
16400 case *map[int]int32:
16401 *v = nil
16402
16403 case *map[int]int64:
16404 *v = nil
16405
16406 case *map[int]float32:
16407 *v = nil
16408
16409 case *map[int]float64:
16410 *v = nil
16411
16412 case *map[int]bool:
16413 *v = nil
16414
16415 case *[]int8:
16416 *v = nil
16417
16418 case *map[int8]interface{}:
16419 *v = nil
16420
16421 case *map[int8]string:
16422 *v = nil
16423
16424 case *map[int8]uint:
16425 *v = nil
16426
16427 case *map[int8]uint8:
16428 *v = nil
16429
16430 case *map[int8]uint16:
16431 *v = nil
16432
16433 case *map[int8]uint32:
16434 *v = nil
16435
16436 case *map[int8]uint64:
16437 *v = nil
16438
16439 case *map[int8]uintptr:
16440 *v = nil
16441
16442 case *map[int8]int:
16443 *v = nil
16444
16445 case *map[int8]int8:
16446 *v = nil
16447
16448 case *map[int8]int16:
16449 *v = nil
16450
16451 case *map[int8]int32:
16452 *v = nil
16453
16454 case *map[int8]int64:
16455 *v = nil
16456
16457 case *map[int8]float32:
16458 *v = nil
16459
16460 case *map[int8]float64:
16461 *v = nil
16462
16463 case *map[int8]bool:
16464 *v = nil
16465
16466 case *[]int16:
16467 *v = nil
16468
16469 case *map[int16]interface{}:
16470 *v = nil
16471
16472 case *map[int16]string:
16473 *v = nil
16474
16475 case *map[int16]uint:
16476 *v = nil
16477
16478 case *map[int16]uint8:
16479 *v = nil
16480
16481 case *map[int16]uint16:
16482 *v = nil
16483
16484 case *map[int16]uint32:
16485 *v = nil
16486
16487 case *map[int16]uint64:
16488 *v = nil
16489
16490 case *map[int16]uintptr:
16491 *v = nil
16492
16493 case *map[int16]int:
16494 *v = nil
16495
16496 case *map[int16]int8:
16497 *v = nil
16498
16499 case *map[int16]int16:
16500 *v = nil
16501
16502 case *map[int16]int32:
16503 *v = nil
16504
16505 case *map[int16]int64:
16506 *v = nil
16507
16508 case *map[int16]float32:
16509 *v = nil
16510
16511 case *map[int16]float64:
16512 *v = nil
16513
16514 case *map[int16]bool:
16515 *v = nil
16516
16517 case *[]int32:
16518 *v = nil
16519
16520 case *map[int32]interface{}:
16521 *v = nil
16522
16523 case *map[int32]string:
16524 *v = nil
16525
16526 case *map[int32]uint:
16527 *v = nil
16528
16529 case *map[int32]uint8:
16530 *v = nil
16531
16532 case *map[int32]uint16:
16533 *v = nil
16534
16535 case *map[int32]uint32:
16536 *v = nil
16537
16538 case *map[int32]uint64:
16539 *v = nil
16540
16541 case *map[int32]uintptr:
16542 *v = nil
16543
16544 case *map[int32]int:
16545 *v = nil
16546
16547 case *map[int32]int8:
16548 *v = nil
16549
16550 case *map[int32]int16:
16551 *v = nil
16552
16553 case *map[int32]int32:
16554 *v = nil
16555
16556 case *map[int32]int64:
16557 *v = nil
16558
16559 case *map[int32]float32:
16560 *v = nil
16561
16562 case *map[int32]float64:
16563 *v = nil
16564
16565 case *map[int32]bool:
16566 *v = nil
16567
16568 case *[]int64:
16569 *v = nil
16570
16571 case *map[int64]interface{}:
16572 *v = nil
16573
16574 case *map[int64]string:
16575 *v = nil
16576
16577 case *map[int64]uint:
16578 *v = nil
16579
16580 case *map[int64]uint8:
16581 *v = nil
16582
16583 case *map[int64]uint16:
16584 *v = nil
16585
16586 case *map[int64]uint32:
16587 *v = nil
16588
16589 case *map[int64]uint64:
16590 *v = nil
16591
16592 case *map[int64]uintptr:
16593 *v = nil
16594
16595 case *map[int64]int:
16596 *v = nil
16597
16598 case *map[int64]int8:
16599 *v = nil
16600
16601 case *map[int64]int16:
16602 *v = nil
16603
16604 case *map[int64]int32:
16605 *v = nil
16606
16607 case *map[int64]int64:
16608 *v = nil
16609
16610 case *map[int64]float32:
16611 *v = nil
16612
16613 case *map[int64]float64:
16614 *v = nil
16615
16616 case *map[int64]bool:
16617 *v = nil
16618
16619 case *[]bool:
16620 *v = nil
16621
16622 case *map[bool]interface{}:
16623 *v = nil
16624
16625 case *map[bool]string:
16626 *v = nil
16627
16628 case *map[bool]uint:
16629 *v = nil
16630
16631 case *map[bool]uint8:
16632 *v = nil
16633
16634 case *map[bool]uint16:
16635 *v = nil
16636
16637 case *map[bool]uint32:
16638 *v = nil
16639
16640 case *map[bool]uint64:
16641 *v = nil
16642
16643 case *map[bool]uintptr:
16644 *v = nil
16645
16646 case *map[bool]int:
16647 *v = nil
16648
16649 case *map[bool]int8:
16650 *v = nil
16651
16652 case *map[bool]int16:
16653 *v = nil
16654
16655 case *map[bool]int32:
16656 *v = nil
16657
16658 case *map[bool]int64:
16659 *v = nil
16660
16661 case *map[bool]float32:
16662 *v = nil
16663
16664 case *map[bool]float64:
16665 *v = nil
16666
16667 case *map[bool]bool:
16668 *v = nil
16669
16670 default:
16671 _ = v // TODO: workaround https://github.com/golang/go/issues/12927 (remove after go 1.6 release)
16672 return false
16673 }
16674 return true
16675 }
16676
16677 // -- -- fast path functions
16678
16679 func (d *Decoder) fastpathDecSliceIntfR(f *codecFnInfo, rv reflect.Value) {
16680 if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
16681 var vp = rv2i(rv).(*[]interface{})
16682 if v, changed := fastpathTV.DecSliceIntfV(*vp, !array, d); changed {
16683 *vp = v
16684 }
16685 } else {
16686 fastpathTV.DecSliceIntfV(rv2i(rv).([]interface{}), !array, d)
16687 }
16688 }
16689
16690 func (f fastpathT) DecSliceIntfX(vp *[]interface{}, d *Decoder) {
16691 if v, changed := f.DecSliceIntfV(*vp, true, d); changed {
16692 *vp = v
16693 }
16694 }
16695 func (_ fastpathT) DecSliceIntfV(v []interface{}, canChange bool, d *Decoder) (_ []interface{}, changed bool) {
16696 dd := d.d
16697
16698 slh, containerLenS := d.decSliceHelperStart()
16699 if containerLenS == 0 {
16700 if canChange {
16701 if v == nil {
16702 v = []interface{}{}
16703 } else if len(v) != 0 {
16704 v = v[:0]
16705 }
16706 changed = true
16707 }
16708 slh.End()
16709 return v, changed
16710 }
16711
16712 hasLen := containerLenS > 0
16713 var xlen int
16714 if hasLen && canChange {
16715 if containerLenS > cap(v) {
16716 xlen = decInferLen(containerLenS, d.h.MaxInitLen, 16)
16717 if xlen <= cap(v) {
16718 v = v[:xlen]
16719 } else {
16720 v = make([]interface{}, xlen)
16721 }
16722 changed = true
16723 } else if containerLenS != len(v) {
16724 v = v[:containerLenS]
16725 changed = true
16726 }
16727 }
16728 j := 0
16729 for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
16730 if j == 0 && len(v) == 0 {
16731 if hasLen {
16732 xlen = decInferLen(containerLenS, d.h.MaxInitLen, 16)
16733 } else {
16734 xlen = 8
16735 }
16736 v = make([]interface{}, xlen)
16737 changed = true
16738 }
16739 // if indefinite, etc, then expand the slice if necessary
16740 var decodeIntoBlank bool
16741 if j >= len(v) {
16742 if canChange {
16743 v = append(v, nil)
16744 changed = true
16745 } else {
16746 d.arrayCannotExpand(len(v), j+1)
16747 decodeIntoBlank = true
16748 }
16749 }
16750 slh.ElemContainerState(j)
16751 if decodeIntoBlank {
16752 d.swallow()
16753 } else {
16754 d.decode(&v[j])
16755 }
16756 }
16757 if canChange {
16758 if j < len(v) {
16759 v = v[:j]
16760 changed = true
16761 } else if j == 0 && v == nil {
16762 v = make([]interface{}, 0)
16763 changed = true
16764 }
16765 }
16766 slh.End()
16767 return v, changed
16768 }
16769
16770 func (d *Decoder) fastpathDecSliceStringR(f *codecFnInfo, rv reflect.Value) {
16771 if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
16772 var vp = rv2i(rv).(*[]string)
16773 if v, changed := fastpathTV.DecSliceStringV(*vp, !array, d); changed {
16774 *vp = v
16775 }
16776 } else {
16777 fastpathTV.DecSliceStringV(rv2i(rv).([]string), !array, d)
16778 }
16779 }
16780
16781 func (f fastpathT) DecSliceStringX(vp *[]string, d *Decoder) {
16782 if v, changed := f.DecSliceStringV(*vp, true, d); changed {
16783 *vp = v
16784 }
16785 }
16786 func (_ fastpathT) DecSliceStringV(v []string, canChange bool, d *Decoder) (_ []string, changed bool) {
16787 dd := d.d
16788
16789 slh, containerLenS := d.decSliceHelperStart()
16790 if containerLenS == 0 {
16791 if canChange {
16792 if v == nil {
16793 v = []string{}
16794 } else if len(v) != 0 {
16795 v = v[:0]
16796 }
16797 changed = true
16798 }
16799 slh.End()
16800 return v, changed
16801 }
16802
16803 hasLen := containerLenS > 0
16804 var xlen int
16805 if hasLen && canChange {
16806 if containerLenS > cap(v) {
16807 xlen = decInferLen(containerLenS, d.h.MaxInitLen, 16)
16808 if xlen <= cap(v) {
16809 v = v[:xlen]
16810 } else {
16811 v = make([]string, xlen)
16812 }
16813 changed = true
16814 } else if containerLenS != len(v) {
16815 v = v[:containerLenS]
16816 changed = true
16817 }
16818 }
16819 j := 0
16820 for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
16821 if j == 0 && len(v) == 0 {
16822 if hasLen {
16823 xlen = decInferLen(containerLenS, d.h.MaxInitLen, 16)
16824 } else {
16825 xlen = 8
16826 }
16827 v = make([]string, xlen)
16828 changed = true
16829 }
16830 // if indefinite, etc, then expand the slice if necessary
16831 var decodeIntoBlank bool
16832 if j >= len(v) {
16833 if canChange {
16834 v = append(v, "")
16835 changed = true
16836 } else {
16837 d.arrayCannotExpand(len(v), j+1)
16838 decodeIntoBlank = true
16839 }
16840 }
16841 slh.ElemContainerState(j)
16842 if decodeIntoBlank {
16843 d.swallow()
16844 } else {
16845 v[j] = dd.DecodeString()
16846 }
16847 }
16848 if canChange {
16849 if j < len(v) {
16850 v = v[:j]
16851 changed = true
16852 } else if j == 0 && v == nil {
16853 v = make([]string, 0)
16854 changed = true
16855 }
16856 }
16857 slh.End()
16858 return v, changed
16859 }
16860
16861 func (d *Decoder) fastpathDecSliceFloat32R(f *codecFnInfo, rv reflect.Value) {
16862 if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
16863 var vp = rv2i(rv).(*[]float32)
16864 if v, changed := fastpathTV.DecSliceFloat32V(*vp, !array, d); changed {
16865 *vp = v
16866 }
16867 } else {
16868 fastpathTV.DecSliceFloat32V(rv2i(rv).([]float32), !array, d)
16869 }
16870 }
16871
16872 func (f fastpathT) DecSliceFloat32X(vp *[]float32, d *Decoder) {
16873 if v, changed := f.DecSliceFloat32V(*vp, true, d); changed {
16874 *vp = v
16875 }
16876 }
16877 func (_ fastpathT) DecSliceFloat32V(v []float32, canChange bool, d *Decoder) (_ []float32, changed bool) {
16878 dd := d.d
16879
16880 slh, containerLenS := d.decSliceHelperStart()
16881 if containerLenS == 0 {
16882 if canChange {
16883 if v == nil {
16884 v = []float32{}
16885 } else if len(v) != 0 {
16886 v = v[:0]
16887 }
16888 changed = true
16889 }
16890 slh.End()
16891 return v, changed
16892 }
16893
16894 hasLen := containerLenS > 0
16895 var xlen int
16896 if hasLen && canChange {
16897 if containerLenS > cap(v) {
16898 xlen = decInferLen(containerLenS, d.h.MaxInitLen, 4)
16899 if xlen <= cap(v) {
16900 v = v[:xlen]
16901 } else {
16902 v = make([]float32, xlen)
16903 }
16904 changed = true
16905 } else if containerLenS != len(v) {
16906 v = v[:containerLenS]
16907 changed = true
16908 }
16909 }
16910 j := 0
16911 for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
16912 if j == 0 && len(v) == 0 {
16913 if hasLen {
16914 xlen = decInferLen(containerLenS, d.h.MaxInitLen, 4)
16915 } else {
16916 xlen = 8
16917 }
16918 v = make([]float32, xlen)
16919 changed = true
16920 }
16921 // if indefinite, etc, then expand the slice if necessary
16922 var decodeIntoBlank bool
16923 if j >= len(v) {
16924 if canChange {
16925 v = append(v, 0)
16926 changed = true
16927 } else {
16928 d.arrayCannotExpand(len(v), j+1)
16929 decodeIntoBlank = true
16930 }
16931 }
16932 slh.ElemContainerState(j)
16933 if decodeIntoBlank {
16934 d.swallow()
16935 } else {
16936 v[j] = float32(dd.DecodeFloat(true))
16937 }
16938 }
16939 if canChange {
16940 if j < len(v) {
16941 v = v[:j]
16942 changed = true
16943 } else if j == 0 && v == nil {
16944 v = make([]float32, 0)
16945 changed = true
16946 }
16947 }
16948 slh.End()
16949 return v, changed
16950 }
16951
16952 func (d *Decoder) fastpathDecSliceFloat64R(f *codecFnInfo, rv reflect.Value) {
16953 if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
16954 var vp = rv2i(rv).(*[]float64)
16955 if v, changed := fastpathTV.DecSliceFloat64V(*vp, !array, d); changed {
16956 *vp = v
16957 }
16958 } else {
16959 fastpathTV.DecSliceFloat64V(rv2i(rv).([]float64), !array, d)
16960 }
16961 }
16962
16963 func (f fastpathT) DecSliceFloat64X(vp *[]float64, d *Decoder) {
16964 if v, changed := f.DecSliceFloat64V(*vp, true, d); changed {
16965 *vp = v
16966 }
16967 }
16968 func (_ fastpathT) DecSliceFloat64V(v []float64, canChange bool, d *Decoder) (_ []float64, changed bool) {
16969 dd := d.d
16970
16971 slh, containerLenS := d.decSliceHelperStart()
16972 if containerLenS == 0 {
16973 if canChange {
16974 if v == nil {
16975 v = []float64{}
16976 } else if len(v) != 0 {
16977 v = v[:0]
16978 }
16979 changed = true
16980 }
16981 slh.End()
16982 return v, changed
16983 }
16984
16985 hasLen := containerLenS > 0
16986 var xlen int
16987 if hasLen && canChange {
16988 if containerLenS > cap(v) {
16989 xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
16990 if xlen <= cap(v) {
16991 v = v[:xlen]
16992 } else {
16993 v = make([]float64, xlen)
16994 }
16995 changed = true
16996 } else if containerLenS != len(v) {
16997 v = v[:containerLenS]
16998 changed = true
16999 }
17000 }
17001 j := 0
17002 for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
17003 if j == 0 && len(v) == 0 {
17004 if hasLen {
17005 xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
17006 } else {
17007 xlen = 8
17008 }
17009 v = make([]float64, xlen)
17010 changed = true
17011 }
17012 // if indefinite, etc, then expand the slice if necessary
17013 var decodeIntoBlank bool
17014 if j >= len(v) {
17015 if canChange {
17016 v = append(v, 0)
17017 changed = true
17018 } else {
17019 d.arrayCannotExpand(len(v), j+1)
17020 decodeIntoBlank = true
17021 }
17022 }
17023 slh.ElemContainerState(j)
17024 if decodeIntoBlank {
17025 d.swallow()
17026 } else {
17027 v[j] = dd.DecodeFloat(false)
17028 }
17029 }
17030 if canChange {
17031 if j < len(v) {
17032 v = v[:j]
17033 changed = true
17034 } else if j == 0 && v == nil {
17035 v = make([]float64, 0)
17036 changed = true
17037 }
17038 }
17039 slh.End()
17040 return v, changed
17041 }
17042
17043 func (d *Decoder) fastpathDecSliceUintR(f *codecFnInfo, rv reflect.Value) {
17044 if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
17045 var vp = rv2i(rv).(*[]uint)
17046 if v, changed := fastpathTV.DecSliceUintV(*vp, !array, d); changed {
17047 *vp = v
17048 }
17049 } else {
17050 fastpathTV.DecSliceUintV(rv2i(rv).([]uint), !array, d)
17051 }
17052 }
17053
17054 func (f fastpathT) DecSliceUintX(vp *[]uint, d *Decoder) {
17055 if v, changed := f.DecSliceUintV(*vp, true, d); changed {
17056 *vp = v
17057 }
17058 }
17059 func (_ fastpathT) DecSliceUintV(v []uint, canChange bool, d *Decoder) (_ []uint, changed bool) {
17060 dd := d.d
17061
17062 slh, containerLenS := d.decSliceHelperStart()
17063 if containerLenS == 0 {
17064 if canChange {
17065 if v == nil {
17066 v = []uint{}
17067 } else if len(v) != 0 {
17068 v = v[:0]
17069 }
17070 changed = true
17071 }
17072 slh.End()
17073 return v, changed
17074 }
17075
17076 hasLen := containerLenS > 0
17077 var xlen int
17078 if hasLen && canChange {
17079 if containerLenS > cap(v) {
17080 xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
17081 if xlen <= cap(v) {
17082 v = v[:xlen]
17083 } else {
17084 v = make([]uint, xlen)
17085 }
17086 changed = true
17087 } else if containerLenS != len(v) {
17088 v = v[:containerLenS]
17089 changed = true
17090 }
17091 }
17092 j := 0
17093 for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
17094 if j == 0 && len(v) == 0 {
17095 if hasLen {
17096 xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
17097 } else {
17098 xlen = 8
17099 }
17100 v = make([]uint, xlen)
17101 changed = true
17102 }
17103 // if indefinite, etc, then expand the slice if necessary
17104 var decodeIntoBlank bool
17105 if j >= len(v) {
17106 if canChange {
17107 v = append(v, 0)
17108 changed = true
17109 } else {
17110 d.arrayCannotExpand(len(v), j+1)
17111 decodeIntoBlank = true
17112 }
17113 }
17114 slh.ElemContainerState(j)
17115 if decodeIntoBlank {
17116 d.swallow()
17117 } else {
17118 v[j] = uint(dd.DecodeUint(uintBitsize))
17119 }
17120 }
17121 if canChange {
17122 if j < len(v) {
17123 v = v[:j]
17124 changed = true
17125 } else if j == 0 && v == nil {
17126 v = make([]uint, 0)
17127 changed = true
17128 }
17129 }
17130 slh.End()
17131 return v, changed
17132 }
17133
17134 func (d *Decoder) fastpathDecSliceUint16R(f *codecFnInfo, rv reflect.Value) {
17135 if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
17136 var vp = rv2i(rv).(*[]uint16)
17137 if v, changed := fastpathTV.DecSliceUint16V(*vp, !array, d); changed {
17138 *vp = v
17139 }
17140 } else {
17141 fastpathTV.DecSliceUint16V(rv2i(rv).([]uint16), !array, d)
17142 }
17143 }
17144
17145 func (f fastpathT) DecSliceUint16X(vp *[]uint16, d *Decoder) {
17146 if v, changed := f.DecSliceUint16V(*vp, true, d); changed {
17147 *vp = v
17148 }
17149 }
17150 func (_ fastpathT) DecSliceUint16V(v []uint16, canChange bool, d *Decoder) (_ []uint16, changed bool) {
17151 dd := d.d
17152
17153 slh, containerLenS := d.decSliceHelperStart()
17154 if containerLenS == 0 {
17155 if canChange {
17156 if v == nil {
17157 v = []uint16{}
17158 } else if len(v) != 0 {
17159 v = v[:0]
17160 }
17161 changed = true
17162 }
17163 slh.End()
17164 return v, changed
17165 }
17166
17167 hasLen := containerLenS > 0
17168 var xlen int
17169 if hasLen && canChange {
17170 if containerLenS > cap(v) {
17171 xlen = decInferLen(containerLenS, d.h.MaxInitLen, 2)
17172 if xlen <= cap(v) {
17173 v = v[:xlen]
17174 } else {
17175 v = make([]uint16, xlen)
17176 }
17177 changed = true
17178 } else if containerLenS != len(v) {
17179 v = v[:containerLenS]
17180 changed = true
17181 }
17182 }
17183 j := 0
17184 for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
17185 if j == 0 && len(v) == 0 {
17186 if hasLen {
17187 xlen = decInferLen(containerLenS, d.h.MaxInitLen, 2)
17188 } else {
17189 xlen = 8
17190 }
17191 v = make([]uint16, xlen)
17192 changed = true
17193 }
17194 // if indefinite, etc, then expand the slice if necessary
17195 var decodeIntoBlank bool
17196 if j >= len(v) {
17197 if canChange {
17198 v = append(v, 0)
17199 changed = true
17200 } else {
17201 d.arrayCannotExpand(len(v), j+1)
17202 decodeIntoBlank = true
17203 }
17204 }
17205 slh.ElemContainerState(j)
17206 if decodeIntoBlank {
17207 d.swallow()
17208 } else {
17209 v[j] = uint16(dd.DecodeUint(16))
17210 }
17211 }
17212 if canChange {
17213 if j < len(v) {
17214 v = v[:j]
17215 changed = true
17216 } else if j == 0 && v == nil {
17217 v = make([]uint16, 0)
17218 changed = true
17219 }
17220 }
17221 slh.End()
17222 return v, changed
17223 }
17224
17225 func (d *Decoder) fastpathDecSliceUint32R(f *codecFnInfo, rv reflect.Value) {
17226 if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
17227 var vp = rv2i(rv).(*[]uint32)
17228 if v, changed := fastpathTV.DecSliceUint32V(*vp, !array, d); changed {
17229 *vp = v
17230 }
17231 } else {
17232 fastpathTV.DecSliceUint32V(rv2i(rv).([]uint32), !array, d)
17233 }
17234 }
17235
17236 func (f fastpathT) DecSliceUint32X(vp *[]uint32, d *Decoder) {
17237 if v, changed := f.DecSliceUint32V(*vp, true, d); changed {
17238 *vp = v
17239 }
17240 }
17241 func (_ fastpathT) DecSliceUint32V(v []uint32, canChange bool, d *Decoder) (_ []uint32, changed bool) {
17242 dd := d.d
17243
17244 slh, containerLenS := d.decSliceHelperStart()
17245 if containerLenS == 0 {
17246 if canChange {
17247 if v == nil {
17248 v = []uint32{}
17249 } else if len(v) != 0 {
17250 v = v[:0]
17251 }
17252 changed = true
17253 }
17254 slh.End()
17255 return v, changed
17256 }
17257
17258 hasLen := containerLenS > 0
17259 var xlen int
17260 if hasLen && canChange {
17261 if containerLenS > cap(v) {
17262 xlen = decInferLen(containerLenS, d.h.MaxInitLen, 4)
17263 if xlen <= cap(v) {
17264 v = v[:xlen]
17265 } else {
17266 v = make([]uint32, xlen)
17267 }
17268 changed = true
17269 } else if containerLenS != len(v) {
17270 v = v[:containerLenS]
17271 changed = true
17272 }
17273 }
17274 j := 0
17275 for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
17276 if j == 0 && len(v) == 0 {
17277 if hasLen {
17278 xlen = decInferLen(containerLenS, d.h.MaxInitLen, 4)
17279 } else {
17280 xlen = 8
17281 }
17282 v = make([]uint32, xlen)
17283 changed = true
17284 }
17285 // if indefinite, etc, then expand the slice if necessary
17286 var decodeIntoBlank bool
17287 if j >= len(v) {
17288 if canChange {
17289 v = append(v, 0)
17290 changed = true
17291 } else {
17292 d.arrayCannotExpand(len(v), j+1)
17293 decodeIntoBlank = true
17294 }
17295 }
17296 slh.ElemContainerState(j)
17297 if decodeIntoBlank {
17298 d.swallow()
17299 } else {
17300 v[j] = uint32(dd.DecodeUint(32))
17301 }
17302 }
17303 if canChange {
17304 if j < len(v) {
17305 v = v[:j]
17306 changed = true
17307 } else if j == 0 && v == nil {
17308 v = make([]uint32, 0)
17309 changed = true
17310 }
17311 }
17312 slh.End()
17313 return v, changed
17314 }
17315
17316 func (d *Decoder) fastpathDecSliceUint64R(f *codecFnInfo, rv reflect.Value) {
17317 if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
17318 var vp = rv2i(rv).(*[]uint64)
17319 if v, changed := fastpathTV.DecSliceUint64V(*vp, !array, d); changed {
17320 *vp = v
17321 }
17322 } else {
17323 fastpathTV.DecSliceUint64V(rv2i(rv).([]uint64), !array, d)
17324 }
17325 }
17326
17327 func (f fastpathT) DecSliceUint64X(vp *[]uint64, d *Decoder) {
17328 if v, changed := f.DecSliceUint64V(*vp, true, d); changed {
17329 *vp = v
17330 }
17331 }
17332 func (_ fastpathT) DecSliceUint64V(v []uint64, canChange bool, d *Decoder) (_ []uint64, changed bool) {
17333 dd := d.d
17334
17335 slh, containerLenS := d.decSliceHelperStart()
17336 if containerLenS == 0 {
17337 if canChange {
17338 if v == nil {
17339 v = []uint64{}
17340 } else if len(v) != 0 {
17341 v = v[:0]
17342 }
17343 changed = true
17344 }
17345 slh.End()
17346 return v, changed
17347 }
17348
17349 hasLen := containerLenS > 0
17350 var xlen int
17351 if hasLen && canChange {
17352 if containerLenS > cap(v) {
17353 xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
17354 if xlen <= cap(v) {
17355 v = v[:xlen]
17356 } else {
17357 v = make([]uint64, xlen)
17358 }
17359 changed = true
17360 } else if containerLenS != len(v) {
17361 v = v[:containerLenS]
17362 changed = true
17363 }
17364 }
17365 j := 0
17366 for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
17367 if j == 0 && len(v) == 0 {
17368 if hasLen {
17369 xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
17370 } else {
17371 xlen = 8
17372 }
17373 v = make([]uint64, xlen)
17374 changed = true
17375 }
17376 // if indefinite, etc, then expand the slice if necessary
17377 var decodeIntoBlank bool
17378 if j >= len(v) {
17379 if canChange {
17380 v = append(v, 0)
17381 changed = true
17382 } else {
17383 d.arrayCannotExpand(len(v), j+1)
17384 decodeIntoBlank = true
17385 }
17386 }
17387 slh.ElemContainerState(j)
17388 if decodeIntoBlank {
17389 d.swallow()
17390 } else {
17391 v[j] = dd.DecodeUint(64)
17392 }
17393 }
17394 if canChange {
17395 if j < len(v) {
17396 v = v[:j]
17397 changed = true
17398 } else if j == 0 && v == nil {
17399 v = make([]uint64, 0)
17400 changed = true
17401 }
17402 }
17403 slh.End()
17404 return v, changed
17405 }
17406
17407 func (d *Decoder) fastpathDecSliceUintptrR(f *codecFnInfo, rv reflect.Value) {
17408 if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
17409 var vp = rv2i(rv).(*[]uintptr)
17410 if v, changed := fastpathTV.DecSliceUintptrV(*vp, !array, d); changed {
17411 *vp = v
17412 }
17413 } else {
17414 fastpathTV.DecSliceUintptrV(rv2i(rv).([]uintptr), !array, d)
17415 }
17416 }
17417
17418 func (f fastpathT) DecSliceUintptrX(vp *[]uintptr, d *Decoder) {
17419 if v, changed := f.DecSliceUintptrV(*vp, true, d); changed {
17420 *vp = v
17421 }
17422 }
17423 func (_ fastpathT) DecSliceUintptrV(v []uintptr, canChange bool, d *Decoder) (_ []uintptr, changed bool) {
17424 dd := d.d
17425
17426 slh, containerLenS := d.decSliceHelperStart()
17427 if containerLenS == 0 {
17428 if canChange {
17429 if v == nil {
17430 v = []uintptr{}
17431 } else if len(v) != 0 {
17432 v = v[:0]
17433 }
17434 changed = true
17435 }
17436 slh.End()
17437 return v, changed
17438 }
17439
17440 hasLen := containerLenS > 0
17441 var xlen int
17442 if hasLen && canChange {
17443 if containerLenS > cap(v) {
17444 xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
17445 if xlen <= cap(v) {
17446 v = v[:xlen]
17447 } else {
17448 v = make([]uintptr, xlen)
17449 }
17450 changed = true
17451 } else if containerLenS != len(v) {
17452 v = v[:containerLenS]
17453 changed = true
17454 }
17455 }
17456 j := 0
17457 for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
17458 if j == 0 && len(v) == 0 {
17459 if hasLen {
17460 xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
17461 } else {
17462 xlen = 8
17463 }
17464 v = make([]uintptr, xlen)
17465 changed = true
17466 }
17467 // if indefinite, etc, then expand the slice if necessary
17468 var decodeIntoBlank bool
17469 if j >= len(v) {
17470 if canChange {
17471 v = append(v, 0)
17472 changed = true
17473 } else {
17474 d.arrayCannotExpand(len(v), j+1)
17475 decodeIntoBlank = true
17476 }
17477 }
17478 slh.ElemContainerState(j)
17479 if decodeIntoBlank {
17480 d.swallow()
17481 } else {
17482 v[j] = uintptr(dd.DecodeUint(uintBitsize))
17483 }
17484 }
17485 if canChange {
17486 if j < len(v) {
17487 v = v[:j]
17488 changed = true
17489 } else if j == 0 && v == nil {
17490 v = make([]uintptr, 0)
17491 changed = true
17492 }
17493 }
17494 slh.End()
17495 return v, changed
17496 }
17497
17498 func (d *Decoder) fastpathDecSliceIntR(f *codecFnInfo, rv reflect.Value) {
17499 if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
17500 var vp = rv2i(rv).(*[]int)
17501 if v, changed := fastpathTV.DecSliceIntV(*vp, !array, d); changed {
17502 *vp = v
17503 }
17504 } else {
17505 fastpathTV.DecSliceIntV(rv2i(rv).([]int), !array, d)
17506 }
17507 }
17508
17509 func (f fastpathT) DecSliceIntX(vp *[]int, d *Decoder) {
17510 if v, changed := f.DecSliceIntV(*vp, true, d); changed {
17511 *vp = v
17512 }
17513 }
17514 func (_ fastpathT) DecSliceIntV(v []int, canChange bool, d *Decoder) (_ []int, changed bool) {
17515 dd := d.d
17516
17517 slh, containerLenS := d.decSliceHelperStart()
17518 if containerLenS == 0 {
17519 if canChange {
17520 if v == nil {
17521 v = []int{}
17522 } else if len(v) != 0 {
17523 v = v[:0]
17524 }
17525 changed = true
17526 }
17527 slh.End()
17528 return v, changed
17529 }
17530
17531 hasLen := containerLenS > 0
17532 var xlen int
17533 if hasLen && canChange {
17534 if containerLenS > cap(v) {
17535 xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
17536 if xlen <= cap(v) {
17537 v = v[:xlen]
17538 } else {
17539 v = make([]int, xlen)
17540 }
17541 changed = true
17542 } else if containerLenS != len(v) {
17543 v = v[:containerLenS]
17544 changed = true
17545 }
17546 }
17547 j := 0
17548 for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
17549 if j == 0 && len(v) == 0 {
17550 if hasLen {
17551 xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
17552 } else {
17553 xlen = 8
17554 }
17555 v = make([]int, xlen)
17556 changed = true
17557 }
17558 // if indefinite, etc, then expand the slice if necessary
17559 var decodeIntoBlank bool
17560 if j >= len(v) {
17561 if canChange {
17562 v = append(v, 0)
17563 changed = true
17564 } else {
17565 d.arrayCannotExpand(len(v), j+1)
17566 decodeIntoBlank = true
17567 }
17568 }
17569 slh.ElemContainerState(j)
17570 if decodeIntoBlank {
17571 d.swallow()
17572 } else {
17573 v[j] = int(dd.DecodeInt(intBitsize))
17574 }
17575 }
17576 if canChange {
17577 if j < len(v) {
17578 v = v[:j]
17579 changed = true
17580 } else if j == 0 && v == nil {
17581 v = make([]int, 0)
17582 changed = true
17583 }
17584 }
17585 slh.End()
17586 return v, changed
17587 }
17588
17589 func (d *Decoder) fastpathDecSliceInt8R(f *codecFnInfo, rv reflect.Value) {
17590 if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
17591 var vp = rv2i(rv).(*[]int8)
17592 if v, changed := fastpathTV.DecSliceInt8V(*vp, !array, d); changed {
17593 *vp = v
17594 }
17595 } else {
17596 fastpathTV.DecSliceInt8V(rv2i(rv).([]int8), !array, d)
17597 }
17598 }
17599
17600 func (f fastpathT) DecSliceInt8X(vp *[]int8, d *Decoder) {
17601 if v, changed := f.DecSliceInt8V(*vp, true, d); changed {
17602 *vp = v
17603 }
17604 }
17605 func (_ fastpathT) DecSliceInt8V(v []int8, canChange bool, d *Decoder) (_ []int8, changed bool) {
17606 dd := d.d
17607
17608 slh, containerLenS := d.decSliceHelperStart()
17609 if containerLenS == 0 {
17610 if canChange {
17611 if v == nil {
17612 v = []int8{}
17613 } else if len(v) != 0 {
17614 v = v[:0]
17615 }
17616 changed = true
17617 }
17618 slh.End()
17619 return v, changed
17620 }
17621
17622 hasLen := containerLenS > 0
17623 var xlen int
17624 if hasLen && canChange {
17625 if containerLenS > cap(v) {
17626 xlen = decInferLen(containerLenS, d.h.MaxInitLen, 1)
17627 if xlen <= cap(v) {
17628 v = v[:xlen]
17629 } else {
17630 v = make([]int8, xlen)
17631 }
17632 changed = true
17633 } else if containerLenS != len(v) {
17634 v = v[:containerLenS]
17635 changed = true
17636 }
17637 }
17638 j := 0
17639 for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
17640 if j == 0 && len(v) == 0 {
17641 if hasLen {
17642 xlen = decInferLen(containerLenS, d.h.MaxInitLen, 1)
17643 } else {
17644 xlen = 8
17645 }
17646 v = make([]int8, xlen)
17647 changed = true
17648 }
17649 // if indefinite, etc, then expand the slice if necessary
17650 var decodeIntoBlank bool
17651 if j >= len(v) {
17652 if canChange {
17653 v = append(v, 0)
17654 changed = true
17655 } else {
17656 d.arrayCannotExpand(len(v), j+1)
17657 decodeIntoBlank = true
17658 }
17659 }
17660 slh.ElemContainerState(j)
17661 if decodeIntoBlank {
17662 d.swallow()
17663 } else {
17664 v[j] = int8(dd.DecodeInt(8))
17665 }
17666 }
17667 if canChange {
17668 if j < len(v) {
17669 v = v[:j]
17670 changed = true
17671 } else if j == 0 && v == nil {
17672 v = make([]int8, 0)
17673 changed = true
17674 }
17675 }
17676 slh.End()
17677 return v, changed
17678 }
17679
17680 func (d *Decoder) fastpathDecSliceInt16R(f *codecFnInfo, rv reflect.Value) {
17681 if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
17682 var vp = rv2i(rv).(*[]int16)
17683 if v, changed := fastpathTV.DecSliceInt16V(*vp, !array, d); changed {
17684 *vp = v
17685 }
17686 } else {
17687 fastpathTV.DecSliceInt16V(rv2i(rv).([]int16), !array, d)
17688 }
17689 }
17690
17691 func (f fastpathT) DecSliceInt16X(vp *[]int16, d *Decoder) {
17692 if v, changed := f.DecSliceInt16V(*vp, true, d); changed {
17693 *vp = v
17694 }
17695 }
17696 func (_ fastpathT) DecSliceInt16V(v []int16, canChange bool, d *Decoder) (_ []int16, changed bool) {
17697 dd := d.d
17698
17699 slh, containerLenS := d.decSliceHelperStart()
17700 if containerLenS == 0 {
17701 if canChange {
17702 if v == nil {
17703 v = []int16{}
17704 } else if len(v) != 0 {
17705 v = v[:0]
17706 }
17707 changed = true
17708 }
17709 slh.End()
17710 return v, changed
17711 }
17712
17713 hasLen := containerLenS > 0
17714 var xlen int
17715 if hasLen && canChange {
17716 if containerLenS > cap(v) {
17717 xlen = decInferLen(containerLenS, d.h.MaxInitLen, 2)
17718 if xlen <= cap(v) {
17719 v = v[:xlen]
17720 } else {
17721 v = make([]int16, xlen)
17722 }
17723 changed = true
17724 } else if containerLenS != len(v) {
17725 v = v[:containerLenS]
17726 changed = true
17727 }
17728 }
17729 j := 0
17730 for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
17731 if j == 0 && len(v) == 0 {
17732 if hasLen {
17733 xlen = decInferLen(containerLenS, d.h.MaxInitLen, 2)
17734 } else {
17735 xlen = 8
17736 }
17737 v = make([]int16, xlen)
17738 changed = true
17739 }
17740 // if indefinite, etc, then expand the slice if necessary
17741 var decodeIntoBlank bool
17742 if j >= len(v) {
17743 if canChange {
17744 v = append(v, 0)
17745 changed = true
17746 } else {
17747 d.arrayCannotExpand(len(v), j+1)
17748 decodeIntoBlank = true
17749 }
17750 }
17751 slh.ElemContainerState(j)
17752 if decodeIntoBlank {
17753 d.swallow()
17754 } else {
17755 v[j] = int16(dd.DecodeInt(16))
17756 }
17757 }
17758 if canChange {
17759 if j < len(v) {
17760 v = v[:j]
17761 changed = true
17762 } else if j == 0 && v == nil {
17763 v = make([]int16, 0)
17764 changed = true
17765 }
17766 }
17767 slh.End()
17768 return v, changed
17769 }
17770
17771 func (d *Decoder) fastpathDecSliceInt32R(f *codecFnInfo, rv reflect.Value) {
17772 if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
17773 var vp = rv2i(rv).(*[]int32)
17774 if v, changed := fastpathTV.DecSliceInt32V(*vp, !array, d); changed {
17775 *vp = v
17776 }
17777 } else {
17778 fastpathTV.DecSliceInt32V(rv2i(rv).([]int32), !array, d)
17779 }
17780 }
17781
17782 func (f fastpathT) DecSliceInt32X(vp *[]int32, d *Decoder) {
17783 if v, changed := f.DecSliceInt32V(*vp, true, d); changed {
17784 *vp = v
17785 }
17786 }
17787 func (_ fastpathT) DecSliceInt32V(v []int32, canChange bool, d *Decoder) (_ []int32, changed bool) {
17788 dd := d.d
17789
17790 slh, containerLenS := d.decSliceHelperStart()
17791 if containerLenS == 0 {
17792 if canChange {
17793 if v == nil {
17794 v = []int32{}
17795 } else if len(v) != 0 {
17796 v = v[:0]
17797 }
17798 changed = true
17799 }
17800 slh.End()
17801 return v, changed
17802 }
17803
17804 hasLen := containerLenS > 0
17805 var xlen int
17806 if hasLen && canChange {
17807 if containerLenS > cap(v) {
17808 xlen = decInferLen(containerLenS, d.h.MaxInitLen, 4)
17809 if xlen <= cap(v) {
17810 v = v[:xlen]
17811 } else {
17812 v = make([]int32, xlen)
17813 }
17814 changed = true
17815 } else if containerLenS != len(v) {
17816 v = v[:containerLenS]
17817 changed = true
17818 }
17819 }
17820 j := 0
17821 for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
17822 if j == 0 && len(v) == 0 {
17823 if hasLen {
17824 xlen = decInferLen(containerLenS, d.h.MaxInitLen, 4)
17825 } else {
17826 xlen = 8
17827 }
17828 v = make([]int32, xlen)
17829 changed = true
17830 }
17831 // if indefinite, etc, then expand the slice if necessary
17832 var decodeIntoBlank bool
17833 if j >= len(v) {
17834 if canChange {
17835 v = append(v, 0)
17836 changed = true
17837 } else {
17838 d.arrayCannotExpand(len(v), j+1)
17839 decodeIntoBlank = true
17840 }
17841 }
17842 slh.ElemContainerState(j)
17843 if decodeIntoBlank {
17844 d.swallow()
17845 } else {
17846 v[j] = int32(dd.DecodeInt(32))
17847 }
17848 }
17849 if canChange {
17850 if j < len(v) {
17851 v = v[:j]
17852 changed = true
17853 } else if j == 0 && v == nil {
17854 v = make([]int32, 0)
17855 changed = true
17856 }
17857 }
17858 slh.End()
17859 return v, changed
17860 }
17861
17862 func (d *Decoder) fastpathDecSliceInt64R(f *codecFnInfo, rv reflect.Value) {
17863 if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
17864 var vp = rv2i(rv).(*[]int64)
17865 if v, changed := fastpathTV.DecSliceInt64V(*vp, !array, d); changed {
17866 *vp = v
17867 }
17868 } else {
17869 fastpathTV.DecSliceInt64V(rv2i(rv).([]int64), !array, d)
17870 }
17871 }
17872
17873 func (f fastpathT) DecSliceInt64X(vp *[]int64, d *Decoder) {
17874 if v, changed := f.DecSliceInt64V(*vp, true, d); changed {
17875 *vp = v
17876 }
17877 }
17878 func (_ fastpathT) DecSliceInt64V(v []int64, canChange bool, d *Decoder) (_ []int64, changed bool) {
17879 dd := d.d
17880
17881 slh, containerLenS := d.decSliceHelperStart()
17882 if containerLenS == 0 {
17883 if canChange {
17884 if v == nil {
17885 v = []int64{}
17886 } else if len(v) != 0 {
17887 v = v[:0]
17888 }
17889 changed = true
17890 }
17891 slh.End()
17892 return v, changed
17893 }
17894
17895 hasLen := containerLenS > 0
17896 var xlen int
17897 if hasLen && canChange {
17898 if containerLenS > cap(v) {
17899 xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
17900 if xlen <= cap(v) {
17901 v = v[:xlen]
17902 } else {
17903 v = make([]int64, xlen)
17904 }
17905 changed = true
17906 } else if containerLenS != len(v) {
17907 v = v[:containerLenS]
17908 changed = true
17909 }
17910 }
17911 j := 0
17912 for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
17913 if j == 0 && len(v) == 0 {
17914 if hasLen {
17915 xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
17916 } else {
17917 xlen = 8
17918 }
17919 v = make([]int64, xlen)
17920 changed = true
17921 }
17922 // if indefinite, etc, then expand the slice if necessary
17923 var decodeIntoBlank bool
17924 if j >= len(v) {
17925 if canChange {
17926 v = append(v, 0)
17927 changed = true
17928 } else {
17929 d.arrayCannotExpand(len(v), j+1)
17930 decodeIntoBlank = true
17931 }
17932 }
17933 slh.ElemContainerState(j)
17934 if decodeIntoBlank {
17935 d.swallow()
17936 } else {
17937 v[j] = dd.DecodeInt(64)
17938 }
17939 }
17940 if canChange {
17941 if j < len(v) {
17942 v = v[:j]
17943 changed = true
17944 } else if j == 0 && v == nil {
17945 v = make([]int64, 0)
17946 changed = true
17947 }
17948 }
17949 slh.End()
17950 return v, changed
17951 }
17952
17953 func (d *Decoder) fastpathDecSliceBoolR(f *codecFnInfo, rv reflect.Value) {
17954 if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
17955 var vp = rv2i(rv).(*[]bool)
17956 if v, changed := fastpathTV.DecSliceBoolV(*vp, !array, d); changed {
17957 *vp = v
17958 }
17959 } else {
17960 fastpathTV.DecSliceBoolV(rv2i(rv).([]bool), !array, d)
17961 }
17962 }
17963
17964 func (f fastpathT) DecSliceBoolX(vp *[]bool, d *Decoder) {
17965 if v, changed := f.DecSliceBoolV(*vp, true, d); changed {
17966 *vp = v
17967 }
17968 }
17969 func (_ fastpathT) DecSliceBoolV(v []bool, canChange bool, d *Decoder) (_ []bool, changed bool) {
17970 dd := d.d
17971
17972 slh, containerLenS := d.decSliceHelperStart()
17973 if containerLenS == 0 {
17974 if canChange {
17975 if v == nil {
17976 v = []bool{}
17977 } else if len(v) != 0 {
17978 v = v[:0]
17979 }
17980 changed = true
17981 }
17982 slh.End()
17983 return v, changed
17984 }
17985
17986 hasLen := containerLenS > 0
17987 var xlen int
17988 if hasLen && canChange {
17989 if containerLenS > cap(v) {
17990 xlen = decInferLen(containerLenS, d.h.MaxInitLen, 1)
17991 if xlen <= cap(v) {
17992 v = v[:xlen]
17993 } else {
17994 v = make([]bool, xlen)
17995 }
17996 changed = true
17997 } else if containerLenS != len(v) {
17998 v = v[:containerLenS]
17999 changed = true
18000 }
18001 }
18002 j := 0
18003 for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
18004 if j == 0 && len(v) == 0 {
18005 if hasLen {
18006 xlen = decInferLen(containerLenS, d.h.MaxInitLen, 1)
18007 } else {
18008 xlen = 8
18009 }
18010 v = make([]bool, xlen)
18011 changed = true
18012 }
18013 // if indefinite, etc, then expand the slice if necessary
18014 var decodeIntoBlank bool
18015 if j >= len(v) {
18016 if canChange {
18017 v = append(v, false)
18018 changed = true
18019 } else {
18020 d.arrayCannotExpand(len(v), j+1)
18021 decodeIntoBlank = true
18022 }
18023 }
18024 slh.ElemContainerState(j)
18025 if decodeIntoBlank {
18026 d.swallow()
18027 } else {
18028 v[j] = dd.DecodeBool()
18029 }
18030 }
18031 if canChange {
18032 if j < len(v) {
18033 v = v[:j]
18034 changed = true
18035 } else if j == 0 && v == nil {
18036 v = make([]bool, 0)
18037 changed = true
18038 }
18039 }
18040 slh.End()
18041 return v, changed
18042 }
18043
18044 func (d *Decoder) fastpathDecMapIntfIntfR(f *codecFnInfo, rv reflect.Value) {
18045 if rv.Kind() == reflect.Ptr {
18046 vp := rv2i(rv).(*map[interface{}]interface{})
18047 if v, changed := fastpathTV.DecMapIntfIntfV(*vp, true, d); changed {
18048 *vp = v
18049 }
18050 return
18051 }
18052 fastpathTV.DecMapIntfIntfV(rv2i(rv).(map[interface{}]interface{}), false, d)
18053 }
18054 func (f fastpathT) DecMapIntfIntfX(vp *map[interface{}]interface{}, d *Decoder) {
18055 if v, changed := f.DecMapIntfIntfV(*vp, true, d); changed {
18056 *vp = v
18057 }
18058 }
18059 func (_ fastpathT) DecMapIntfIntfV(v map[interface{}]interface{}, canChange bool,
18060 d *Decoder) (_ map[interface{}]interface{}, changed bool) {
18061 dd, esep := d.d, d.hh.hasElemSeparators()
18062
18063 containerLen := dd.ReadMapStart()
18064 if canChange && v == nil {
18065 xlen := decInferLen(containerLen, d.h.MaxInitLen, 32)
18066 v = make(map[interface{}]interface{}, xlen)
18067 changed = true
18068 }
18069 if containerLen == 0 {
18070 dd.ReadMapEnd()
18071 return v, changed
18072 }
18073 mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
18074 var mk interface{}
18075 var mv interface{}
18076 hasLen := containerLen > 0
18077 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
18078 if esep {
18079 dd.ReadMapElemKey()
18080 }
18081 mk = nil
18082 d.decode(&mk)
18083 if bv, bok := mk.([]byte); bok {
18084 mk = d.string(bv)
18085 }
18086 if esep {
18087 dd.ReadMapElemValue()
18088 }
18089 if dd.TryDecodeAsNil() {
18090 if d.h.DeleteOnNilMapValue {
18091 delete(v, mk)
18092 } else {
18093 v[mk] = nil
18094 }
18095 continue
18096 }
18097 if mapGet {
18098 mv = v[mk]
18099 } else {
18100 mv = nil
18101 }
18102 d.decode(&mv)
18103 if v != nil {
18104 v[mk] = mv
18105 }
18106 }
18107 dd.ReadMapEnd()
18108 return v, changed
18109 }
18110
18111 func (d *Decoder) fastpathDecMapIntfStringR(f *codecFnInfo, rv reflect.Value) {
18112 if rv.Kind() == reflect.Ptr {
18113 vp := rv2i(rv).(*map[interface{}]string)
18114 if v, changed := fastpathTV.DecMapIntfStringV(*vp, true, d); changed {
18115 *vp = v
18116 }
18117 return
18118 }
18119 fastpathTV.DecMapIntfStringV(rv2i(rv).(map[interface{}]string), false, d)
18120 }
18121 func (f fastpathT) DecMapIntfStringX(vp *map[interface{}]string, d *Decoder) {
18122 if v, changed := f.DecMapIntfStringV(*vp, true, d); changed {
18123 *vp = v
18124 }
18125 }
18126 func (_ fastpathT) DecMapIntfStringV(v map[interface{}]string, canChange bool,
18127 d *Decoder) (_ map[interface{}]string, changed bool) {
18128 dd, esep := d.d, d.hh.hasElemSeparators()
18129
18130 containerLen := dd.ReadMapStart()
18131 if canChange && v == nil {
18132 xlen := decInferLen(containerLen, d.h.MaxInitLen, 32)
18133 v = make(map[interface{}]string, xlen)
18134 changed = true
18135 }
18136 if containerLen == 0 {
18137 dd.ReadMapEnd()
18138 return v, changed
18139 }
18140
18141 var mk interface{}
18142 var mv string
18143 hasLen := containerLen > 0
18144 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
18145 if esep {
18146 dd.ReadMapElemKey()
18147 }
18148 mk = nil
18149 d.decode(&mk)
18150 if bv, bok := mk.([]byte); bok {
18151 mk = d.string(bv)
18152 }
18153 if esep {
18154 dd.ReadMapElemValue()
18155 }
18156 if dd.TryDecodeAsNil() {
18157 if d.h.DeleteOnNilMapValue {
18158 delete(v, mk)
18159 } else {
18160 v[mk] = ""
18161 }
18162 continue
18163 }
18164 mv = dd.DecodeString()
18165 if v != nil {
18166 v[mk] = mv
18167 }
18168 }
18169 dd.ReadMapEnd()
18170 return v, changed
18171 }
18172
18173 func (d *Decoder) fastpathDecMapIntfUintR(f *codecFnInfo, rv reflect.Value) {
18174 if rv.Kind() == reflect.Ptr {
18175 vp := rv2i(rv).(*map[interface{}]uint)
18176 if v, changed := fastpathTV.DecMapIntfUintV(*vp, true, d); changed {
18177 *vp = v
18178 }
18179 return
18180 }
18181 fastpathTV.DecMapIntfUintV(rv2i(rv).(map[interface{}]uint), false, d)
18182 }
18183 func (f fastpathT) DecMapIntfUintX(vp *map[interface{}]uint, d *Decoder) {
18184 if v, changed := f.DecMapIntfUintV(*vp, true, d); changed {
18185 *vp = v
18186 }
18187 }
18188 func (_ fastpathT) DecMapIntfUintV(v map[interface{}]uint, canChange bool,
18189 d *Decoder) (_ map[interface{}]uint, changed bool) {
18190 dd, esep := d.d, d.hh.hasElemSeparators()
18191
18192 containerLen := dd.ReadMapStart()
18193 if canChange && v == nil {
18194 xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
18195 v = make(map[interface{}]uint, xlen)
18196 changed = true
18197 }
18198 if containerLen == 0 {
18199 dd.ReadMapEnd()
18200 return v, changed
18201 }
18202
18203 var mk interface{}
18204 var mv uint
18205 hasLen := containerLen > 0
18206 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
18207 if esep {
18208 dd.ReadMapElemKey()
18209 }
18210 mk = nil
18211 d.decode(&mk)
18212 if bv, bok := mk.([]byte); bok {
18213 mk = d.string(bv)
18214 }
18215 if esep {
18216 dd.ReadMapElemValue()
18217 }
18218 if dd.TryDecodeAsNil() {
18219 if d.h.DeleteOnNilMapValue {
18220 delete(v, mk)
18221 } else {
18222 v[mk] = 0
18223 }
18224 continue
18225 }
18226 mv = uint(dd.DecodeUint(uintBitsize))
18227 if v != nil {
18228 v[mk] = mv
18229 }
18230 }
18231 dd.ReadMapEnd()
18232 return v, changed
18233 }
18234
18235 func (d *Decoder) fastpathDecMapIntfUint8R(f *codecFnInfo, rv reflect.Value) {
18236 if rv.Kind() == reflect.Ptr {
18237 vp := rv2i(rv).(*map[interface{}]uint8)
18238 if v, changed := fastpathTV.DecMapIntfUint8V(*vp, true, d); changed {
18239 *vp = v
18240 }
18241 return
18242 }
18243 fastpathTV.DecMapIntfUint8V(rv2i(rv).(map[interface{}]uint8), false, d)
18244 }
18245 func (f fastpathT) DecMapIntfUint8X(vp *map[interface{}]uint8, d *Decoder) {
18246 if v, changed := f.DecMapIntfUint8V(*vp, true, d); changed {
18247 *vp = v
18248 }
18249 }
18250 func (_ fastpathT) DecMapIntfUint8V(v map[interface{}]uint8, canChange bool,
18251 d *Decoder) (_ map[interface{}]uint8, changed bool) {
18252 dd, esep := d.d, d.hh.hasElemSeparators()
18253
18254 containerLen := dd.ReadMapStart()
18255 if canChange && v == nil {
18256 xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
18257 v = make(map[interface{}]uint8, xlen)
18258 changed = true
18259 }
18260 if containerLen == 0 {
18261 dd.ReadMapEnd()
18262 return v, changed
18263 }
18264
18265 var mk interface{}
18266 var mv uint8
18267 hasLen := containerLen > 0
18268 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
18269 if esep {
18270 dd.ReadMapElemKey()
18271 }
18272 mk = nil
18273 d.decode(&mk)
18274 if bv, bok := mk.([]byte); bok {
18275 mk = d.string(bv)
18276 }
18277 if esep {
18278 dd.ReadMapElemValue()
18279 }
18280 if dd.TryDecodeAsNil() {
18281 if d.h.DeleteOnNilMapValue {
18282 delete(v, mk)
18283 } else {
18284 v[mk] = 0
18285 }
18286 continue
18287 }
18288 mv = uint8(dd.DecodeUint(8))
18289 if v != nil {
18290 v[mk] = mv
18291 }
18292 }
18293 dd.ReadMapEnd()
18294 return v, changed
18295 }
18296
18297 func (d *Decoder) fastpathDecMapIntfUint16R(f *codecFnInfo, rv reflect.Value) {
18298 if rv.Kind() == reflect.Ptr {
18299 vp := rv2i(rv).(*map[interface{}]uint16)
18300 if v, changed := fastpathTV.DecMapIntfUint16V(*vp, true, d); changed {
18301 *vp = v
18302 }
18303 return
18304 }
18305 fastpathTV.DecMapIntfUint16V(rv2i(rv).(map[interface{}]uint16), false, d)
18306 }
18307 func (f fastpathT) DecMapIntfUint16X(vp *map[interface{}]uint16, d *Decoder) {
18308 if v, changed := f.DecMapIntfUint16V(*vp, true, d); changed {
18309 *vp = v
18310 }
18311 }
18312 func (_ fastpathT) DecMapIntfUint16V(v map[interface{}]uint16, canChange bool,
18313 d *Decoder) (_ map[interface{}]uint16, changed bool) {
18314 dd, esep := d.d, d.hh.hasElemSeparators()
18315
18316 containerLen := dd.ReadMapStart()
18317 if canChange && v == nil {
18318 xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
18319 v = make(map[interface{}]uint16, xlen)
18320 changed = true
18321 }
18322 if containerLen == 0 {
18323 dd.ReadMapEnd()
18324 return v, changed
18325 }
18326
18327 var mk interface{}
18328 var mv uint16
18329 hasLen := containerLen > 0
18330 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
18331 if esep {
18332 dd.ReadMapElemKey()
18333 }
18334 mk = nil
18335 d.decode(&mk)
18336 if bv, bok := mk.([]byte); bok {
18337 mk = d.string(bv)
18338 }
18339 if esep {
18340 dd.ReadMapElemValue()
18341 }
18342 if dd.TryDecodeAsNil() {
18343 if d.h.DeleteOnNilMapValue {
18344 delete(v, mk)
18345 } else {
18346 v[mk] = 0
18347 }
18348 continue
18349 }
18350 mv = uint16(dd.DecodeUint(16))
18351 if v != nil {
18352 v[mk] = mv
18353 }
18354 }
18355 dd.ReadMapEnd()
18356 return v, changed
18357 }
18358
18359 func (d *Decoder) fastpathDecMapIntfUint32R(f *codecFnInfo, rv reflect.Value) {
18360 if rv.Kind() == reflect.Ptr {
18361 vp := rv2i(rv).(*map[interface{}]uint32)
18362 if v, changed := fastpathTV.DecMapIntfUint32V(*vp, true, d); changed {
18363 *vp = v
18364 }
18365 return
18366 }
18367 fastpathTV.DecMapIntfUint32V(rv2i(rv).(map[interface{}]uint32), false, d)
18368 }
18369 func (f fastpathT) DecMapIntfUint32X(vp *map[interface{}]uint32, d *Decoder) {
18370 if v, changed := f.DecMapIntfUint32V(*vp, true, d); changed {
18371 *vp = v
18372 }
18373 }
18374 func (_ fastpathT) DecMapIntfUint32V(v map[interface{}]uint32, canChange bool,
18375 d *Decoder) (_ map[interface{}]uint32, changed bool) {
18376 dd, esep := d.d, d.hh.hasElemSeparators()
18377
18378 containerLen := dd.ReadMapStart()
18379 if canChange && v == nil {
18380 xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
18381 v = make(map[interface{}]uint32, xlen)
18382 changed = true
18383 }
18384 if containerLen == 0 {
18385 dd.ReadMapEnd()
18386 return v, changed
18387 }
18388
18389 var mk interface{}
18390 var mv uint32
18391 hasLen := containerLen > 0
18392 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
18393 if esep {
18394 dd.ReadMapElemKey()
18395 }
18396 mk = nil
18397 d.decode(&mk)
18398 if bv, bok := mk.([]byte); bok {
18399 mk = d.string(bv)
18400 }
18401 if esep {
18402 dd.ReadMapElemValue()
18403 }
18404 if dd.TryDecodeAsNil() {
18405 if d.h.DeleteOnNilMapValue {
18406 delete(v, mk)
18407 } else {
18408 v[mk] = 0
18409 }
18410 continue
18411 }
18412 mv = uint32(dd.DecodeUint(32))
18413 if v != nil {
18414 v[mk] = mv
18415 }
18416 }
18417 dd.ReadMapEnd()
18418 return v, changed
18419 }
18420
18421 func (d *Decoder) fastpathDecMapIntfUint64R(f *codecFnInfo, rv reflect.Value) {
18422 if rv.Kind() == reflect.Ptr {
18423 vp := rv2i(rv).(*map[interface{}]uint64)
18424 if v, changed := fastpathTV.DecMapIntfUint64V(*vp, true, d); changed {
18425 *vp = v
18426 }
18427 return
18428 }
18429 fastpathTV.DecMapIntfUint64V(rv2i(rv).(map[interface{}]uint64), false, d)
18430 }
18431 func (f fastpathT) DecMapIntfUint64X(vp *map[interface{}]uint64, d *Decoder) {
18432 if v, changed := f.DecMapIntfUint64V(*vp, true, d); changed {
18433 *vp = v
18434 }
18435 }
18436 func (_ fastpathT) DecMapIntfUint64V(v map[interface{}]uint64, canChange bool,
18437 d *Decoder) (_ map[interface{}]uint64, changed bool) {
18438 dd, esep := d.d, d.hh.hasElemSeparators()
18439
18440 containerLen := dd.ReadMapStart()
18441 if canChange && v == nil {
18442 xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
18443 v = make(map[interface{}]uint64, xlen)
18444 changed = true
18445 }
18446 if containerLen == 0 {
18447 dd.ReadMapEnd()
18448 return v, changed
18449 }
18450
18451 var mk interface{}
18452 var mv uint64
18453 hasLen := containerLen > 0
18454 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
18455 if esep {
18456 dd.ReadMapElemKey()
18457 }
18458 mk = nil
18459 d.decode(&mk)
18460 if bv, bok := mk.([]byte); bok {
18461 mk = d.string(bv)
18462 }
18463 if esep {
18464 dd.ReadMapElemValue()
18465 }
18466 if dd.TryDecodeAsNil() {
18467 if d.h.DeleteOnNilMapValue {
18468 delete(v, mk)
18469 } else {
18470 v[mk] = 0
18471 }
18472 continue
18473 }
18474 mv = dd.DecodeUint(64)
18475 if v != nil {
18476 v[mk] = mv
18477 }
18478 }
18479 dd.ReadMapEnd()
18480 return v, changed
18481 }
18482
18483 func (d *Decoder) fastpathDecMapIntfUintptrR(f *codecFnInfo, rv reflect.Value) {
18484 if rv.Kind() == reflect.Ptr {
18485 vp := rv2i(rv).(*map[interface{}]uintptr)
18486 if v, changed := fastpathTV.DecMapIntfUintptrV(*vp, true, d); changed {
18487 *vp = v
18488 }
18489 return
18490 }
18491 fastpathTV.DecMapIntfUintptrV(rv2i(rv).(map[interface{}]uintptr), false, d)
18492 }
18493 func (f fastpathT) DecMapIntfUintptrX(vp *map[interface{}]uintptr, d *Decoder) {
18494 if v, changed := f.DecMapIntfUintptrV(*vp, true, d); changed {
18495 *vp = v
18496 }
18497 }
18498 func (_ fastpathT) DecMapIntfUintptrV(v map[interface{}]uintptr, canChange bool,
18499 d *Decoder) (_ map[interface{}]uintptr, changed bool) {
18500 dd, esep := d.d, d.hh.hasElemSeparators()
18501
18502 containerLen := dd.ReadMapStart()
18503 if canChange && v == nil {
18504 xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
18505 v = make(map[interface{}]uintptr, xlen)
18506 changed = true
18507 }
18508 if containerLen == 0 {
18509 dd.ReadMapEnd()
18510 return v, changed
18511 }
18512
18513 var mk interface{}
18514 var mv uintptr
18515 hasLen := containerLen > 0
18516 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
18517 if esep {
18518 dd.ReadMapElemKey()
18519 }
18520 mk = nil
18521 d.decode(&mk)
18522 if bv, bok := mk.([]byte); bok {
18523 mk = d.string(bv)
18524 }
18525 if esep {
18526 dd.ReadMapElemValue()
18527 }
18528 if dd.TryDecodeAsNil() {
18529 if d.h.DeleteOnNilMapValue {
18530 delete(v, mk)
18531 } else {
18532 v[mk] = 0
18533 }
18534 continue
18535 }
18536 mv = uintptr(dd.DecodeUint(uintBitsize))
18537 if v != nil {
18538 v[mk] = mv
18539 }
18540 }
18541 dd.ReadMapEnd()
18542 return v, changed
18543 }
18544
18545 func (d *Decoder) fastpathDecMapIntfIntR(f *codecFnInfo, rv reflect.Value) {
18546 if rv.Kind() == reflect.Ptr {
18547 vp := rv2i(rv).(*map[interface{}]int)
18548 if v, changed := fastpathTV.DecMapIntfIntV(*vp, true, d); changed {
18549 *vp = v
18550 }
18551 return
18552 }
18553 fastpathTV.DecMapIntfIntV(rv2i(rv).(map[interface{}]int), false, d)
18554 }
18555 func (f fastpathT) DecMapIntfIntX(vp *map[interface{}]int, d *Decoder) {
18556 if v, changed := f.DecMapIntfIntV(*vp, true, d); changed {
18557 *vp = v
18558 }
18559 }
18560 func (_ fastpathT) DecMapIntfIntV(v map[interface{}]int, canChange bool,
18561 d *Decoder) (_ map[interface{}]int, changed bool) {
18562 dd, esep := d.d, d.hh.hasElemSeparators()
18563
18564 containerLen := dd.ReadMapStart()
18565 if canChange && v == nil {
18566 xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
18567 v = make(map[interface{}]int, xlen)
18568 changed = true
18569 }
18570 if containerLen == 0 {
18571 dd.ReadMapEnd()
18572 return v, changed
18573 }
18574
18575 var mk interface{}
18576 var mv int
18577 hasLen := containerLen > 0
18578 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
18579 if esep {
18580 dd.ReadMapElemKey()
18581 }
18582 mk = nil
18583 d.decode(&mk)
18584 if bv, bok := mk.([]byte); bok {
18585 mk = d.string(bv)
18586 }
18587 if esep {
18588 dd.ReadMapElemValue()
18589 }
18590 if dd.TryDecodeAsNil() {
18591 if d.h.DeleteOnNilMapValue {
18592 delete(v, mk)
18593 } else {
18594 v[mk] = 0
18595 }
18596 continue
18597 }
18598 mv = int(dd.DecodeInt(intBitsize))
18599 if v != nil {
18600 v[mk] = mv
18601 }
18602 }
18603 dd.ReadMapEnd()
18604 return v, changed
18605 }
18606
18607 func (d *Decoder) fastpathDecMapIntfInt8R(f *codecFnInfo, rv reflect.Value) {
18608 if rv.Kind() == reflect.Ptr {
18609 vp := rv2i(rv).(*map[interface{}]int8)
18610 if v, changed := fastpathTV.DecMapIntfInt8V(*vp, true, d); changed {
18611 *vp = v
18612 }
18613 return
18614 }
18615 fastpathTV.DecMapIntfInt8V(rv2i(rv).(map[interface{}]int8), false, d)
18616 }
18617 func (f fastpathT) DecMapIntfInt8X(vp *map[interface{}]int8, d *Decoder) {
18618 if v, changed := f.DecMapIntfInt8V(*vp, true, d); changed {
18619 *vp = v
18620 }
18621 }
18622 func (_ fastpathT) DecMapIntfInt8V(v map[interface{}]int8, canChange bool,
18623 d *Decoder) (_ map[interface{}]int8, changed bool) {
18624 dd, esep := d.d, d.hh.hasElemSeparators()
18625
18626 containerLen := dd.ReadMapStart()
18627 if canChange && v == nil {
18628 xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
18629 v = make(map[interface{}]int8, xlen)
18630 changed = true
18631 }
18632 if containerLen == 0 {
18633 dd.ReadMapEnd()
18634 return v, changed
18635 }
18636
18637 var mk interface{}
18638 var mv int8
18639 hasLen := containerLen > 0
18640 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
18641 if esep {
18642 dd.ReadMapElemKey()
18643 }
18644 mk = nil
18645 d.decode(&mk)
18646 if bv, bok := mk.([]byte); bok {
18647 mk = d.string(bv)
18648 }
18649 if esep {
18650 dd.ReadMapElemValue()
18651 }
18652 if dd.TryDecodeAsNil() {
18653 if d.h.DeleteOnNilMapValue {
18654 delete(v, mk)
18655 } else {
18656 v[mk] = 0
18657 }
18658 continue
18659 }
18660 mv = int8(dd.DecodeInt(8))
18661 if v != nil {
18662 v[mk] = mv
18663 }
18664 }
18665 dd.ReadMapEnd()
18666 return v, changed
18667 }
18668
18669 func (d *Decoder) fastpathDecMapIntfInt16R(f *codecFnInfo, rv reflect.Value) {
18670 if rv.Kind() == reflect.Ptr {
18671 vp := rv2i(rv).(*map[interface{}]int16)
18672 if v, changed := fastpathTV.DecMapIntfInt16V(*vp, true, d); changed {
18673 *vp = v
18674 }
18675 return
18676 }
18677 fastpathTV.DecMapIntfInt16V(rv2i(rv).(map[interface{}]int16), false, d)
18678 }
18679 func (f fastpathT) DecMapIntfInt16X(vp *map[interface{}]int16, d *Decoder) {
18680 if v, changed := f.DecMapIntfInt16V(*vp, true, d); changed {
18681 *vp = v
18682 }
18683 }
18684 func (_ fastpathT) DecMapIntfInt16V(v map[interface{}]int16, canChange bool,
18685 d *Decoder) (_ map[interface{}]int16, changed bool) {
18686 dd, esep := d.d, d.hh.hasElemSeparators()
18687
18688 containerLen := dd.ReadMapStart()
18689 if canChange && v == nil {
18690 xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
18691 v = make(map[interface{}]int16, xlen)
18692 changed = true
18693 }
18694 if containerLen == 0 {
18695 dd.ReadMapEnd()
18696 return v, changed
18697 }
18698
18699 var mk interface{}
18700 var mv int16
18701 hasLen := containerLen > 0
18702 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
18703 if esep {
18704 dd.ReadMapElemKey()
18705 }
18706 mk = nil
18707 d.decode(&mk)
18708 if bv, bok := mk.([]byte); bok {
18709 mk = d.string(bv)
18710 }
18711 if esep {
18712 dd.ReadMapElemValue()
18713 }
18714 if dd.TryDecodeAsNil() {
18715 if d.h.DeleteOnNilMapValue {
18716 delete(v, mk)
18717 } else {
18718 v[mk] = 0
18719 }
18720 continue
18721 }
18722 mv = int16(dd.DecodeInt(16))
18723 if v != nil {
18724 v[mk] = mv
18725 }
18726 }
18727 dd.ReadMapEnd()
18728 return v, changed
18729 }
18730
18731 func (d *Decoder) fastpathDecMapIntfInt32R(f *codecFnInfo, rv reflect.Value) {
18732 if rv.Kind() == reflect.Ptr {
18733 vp := rv2i(rv).(*map[interface{}]int32)
18734 if v, changed := fastpathTV.DecMapIntfInt32V(*vp, true, d); changed {
18735 *vp = v
18736 }
18737 return
18738 }
18739 fastpathTV.DecMapIntfInt32V(rv2i(rv).(map[interface{}]int32), false, d)
18740 }
18741 func (f fastpathT) DecMapIntfInt32X(vp *map[interface{}]int32, d *Decoder) {
18742 if v, changed := f.DecMapIntfInt32V(*vp, true, d); changed {
18743 *vp = v
18744 }
18745 }
18746 func (_ fastpathT) DecMapIntfInt32V(v map[interface{}]int32, canChange bool,
18747 d *Decoder) (_ map[interface{}]int32, changed bool) {
18748 dd, esep := d.d, d.hh.hasElemSeparators()
18749
18750 containerLen := dd.ReadMapStart()
18751 if canChange && v == nil {
18752 xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
18753 v = make(map[interface{}]int32, xlen)
18754 changed = true
18755 }
18756 if containerLen == 0 {
18757 dd.ReadMapEnd()
18758 return v, changed
18759 }
18760
18761 var mk interface{}
18762 var mv int32
18763 hasLen := containerLen > 0
18764 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
18765 if esep {
18766 dd.ReadMapElemKey()
18767 }
18768 mk = nil
18769 d.decode(&mk)
18770 if bv, bok := mk.([]byte); bok {
18771 mk = d.string(bv)
18772 }
18773 if esep {
18774 dd.ReadMapElemValue()
18775 }
18776 if dd.TryDecodeAsNil() {
18777 if d.h.DeleteOnNilMapValue {
18778 delete(v, mk)
18779 } else {
18780 v[mk] = 0
18781 }
18782 continue
18783 }
18784 mv = int32(dd.DecodeInt(32))
18785 if v != nil {
18786 v[mk] = mv
18787 }
18788 }
18789 dd.ReadMapEnd()
18790 return v, changed
18791 }
18792
18793 func (d *Decoder) fastpathDecMapIntfInt64R(f *codecFnInfo, rv reflect.Value) {
18794 if rv.Kind() == reflect.Ptr {
18795 vp := rv2i(rv).(*map[interface{}]int64)
18796 if v, changed := fastpathTV.DecMapIntfInt64V(*vp, true, d); changed {
18797 *vp = v
18798 }
18799 return
18800 }
18801 fastpathTV.DecMapIntfInt64V(rv2i(rv).(map[interface{}]int64), false, d)
18802 }
18803 func (f fastpathT) DecMapIntfInt64X(vp *map[interface{}]int64, d *Decoder) {
18804 if v, changed := f.DecMapIntfInt64V(*vp, true, d); changed {
18805 *vp = v
18806 }
18807 }
18808 func (_ fastpathT) DecMapIntfInt64V(v map[interface{}]int64, canChange bool,
18809 d *Decoder) (_ map[interface{}]int64, changed bool) {
18810 dd, esep := d.d, d.hh.hasElemSeparators()
18811
18812 containerLen := dd.ReadMapStart()
18813 if canChange && v == nil {
18814 xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
18815 v = make(map[interface{}]int64, xlen)
18816 changed = true
18817 }
18818 if containerLen == 0 {
18819 dd.ReadMapEnd()
18820 return v, changed
18821 }
18822
18823 var mk interface{}
18824 var mv int64
18825 hasLen := containerLen > 0
18826 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
18827 if esep {
18828 dd.ReadMapElemKey()
18829 }
18830 mk = nil
18831 d.decode(&mk)
18832 if bv, bok := mk.([]byte); bok {
18833 mk = d.string(bv)
18834 }
18835 if esep {
18836 dd.ReadMapElemValue()
18837 }
18838 if dd.TryDecodeAsNil() {
18839 if d.h.DeleteOnNilMapValue {
18840 delete(v, mk)
18841 } else {
18842 v[mk] = 0
18843 }
18844 continue
18845 }
18846 mv = dd.DecodeInt(64)
18847 if v != nil {
18848 v[mk] = mv
18849 }
18850 }
18851 dd.ReadMapEnd()
18852 return v, changed
18853 }
18854
18855 func (d *Decoder) fastpathDecMapIntfFloat32R(f *codecFnInfo, rv reflect.Value) {
18856 if rv.Kind() == reflect.Ptr {
18857 vp := rv2i(rv).(*map[interface{}]float32)
18858 if v, changed := fastpathTV.DecMapIntfFloat32V(*vp, true, d); changed {
18859 *vp = v
18860 }
18861 return
18862 }
18863 fastpathTV.DecMapIntfFloat32V(rv2i(rv).(map[interface{}]float32), false, d)
18864 }
18865 func (f fastpathT) DecMapIntfFloat32X(vp *map[interface{}]float32, d *Decoder) {
18866 if v, changed := f.DecMapIntfFloat32V(*vp, true, d); changed {
18867 *vp = v
18868 }
18869 }
18870 func (_ fastpathT) DecMapIntfFloat32V(v map[interface{}]float32, canChange bool,
18871 d *Decoder) (_ map[interface{}]float32, changed bool) {
18872 dd, esep := d.d, d.hh.hasElemSeparators()
18873
18874 containerLen := dd.ReadMapStart()
18875 if canChange && v == nil {
18876 xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
18877 v = make(map[interface{}]float32, xlen)
18878 changed = true
18879 }
18880 if containerLen == 0 {
18881 dd.ReadMapEnd()
18882 return v, changed
18883 }
18884
18885 var mk interface{}
18886 var mv float32
18887 hasLen := containerLen > 0
18888 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
18889 if esep {
18890 dd.ReadMapElemKey()
18891 }
18892 mk = nil
18893 d.decode(&mk)
18894 if bv, bok := mk.([]byte); bok {
18895 mk = d.string(bv)
18896 }
18897 if esep {
18898 dd.ReadMapElemValue()
18899 }
18900 if dd.TryDecodeAsNil() {
18901 if d.h.DeleteOnNilMapValue {
18902 delete(v, mk)
18903 } else {
18904 v[mk] = 0
18905 }
18906 continue
18907 }
18908 mv = float32(dd.DecodeFloat(true))
18909 if v != nil {
18910 v[mk] = mv
18911 }
18912 }
18913 dd.ReadMapEnd()
18914 return v, changed
18915 }
18916
18917 func (d *Decoder) fastpathDecMapIntfFloat64R(f *codecFnInfo, rv reflect.Value) {
18918 if rv.Kind() == reflect.Ptr {
18919 vp := rv2i(rv).(*map[interface{}]float64)
18920 if v, changed := fastpathTV.DecMapIntfFloat64V(*vp, true, d); changed {
18921 *vp = v
18922 }
18923 return
18924 }
18925 fastpathTV.DecMapIntfFloat64V(rv2i(rv).(map[interface{}]float64), false, d)
18926 }
18927 func (f fastpathT) DecMapIntfFloat64X(vp *map[interface{}]float64, d *Decoder) {
18928 if v, changed := f.DecMapIntfFloat64V(*vp, true, d); changed {
18929 *vp = v
18930 }
18931 }
18932 func (_ fastpathT) DecMapIntfFloat64V(v map[interface{}]float64, canChange bool,
18933 d *Decoder) (_ map[interface{}]float64, changed bool) {
18934 dd, esep := d.d, d.hh.hasElemSeparators()
18935
18936 containerLen := dd.ReadMapStart()
18937 if canChange && v == nil {
18938 xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
18939 v = make(map[interface{}]float64, xlen)
18940 changed = true
18941 }
18942 if containerLen == 0 {
18943 dd.ReadMapEnd()
18944 return v, changed
18945 }
18946
18947 var mk interface{}
18948 var mv float64
18949 hasLen := containerLen > 0
18950 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
18951 if esep {
18952 dd.ReadMapElemKey()
18953 }
18954 mk = nil
18955 d.decode(&mk)
18956 if bv, bok := mk.([]byte); bok {
18957 mk = d.string(bv)
18958 }
18959 if esep {
18960 dd.ReadMapElemValue()
18961 }
18962 if dd.TryDecodeAsNil() {
18963 if d.h.DeleteOnNilMapValue {
18964 delete(v, mk)
18965 } else {
18966 v[mk] = 0
18967 }
18968 continue
18969 }
18970 mv = dd.DecodeFloat(false)
18971 if v != nil {
18972 v[mk] = mv
18973 }
18974 }
18975 dd.ReadMapEnd()
18976 return v, changed
18977 }
18978
18979 func (d *Decoder) fastpathDecMapIntfBoolR(f *codecFnInfo, rv reflect.Value) {
18980 if rv.Kind() == reflect.Ptr {
18981 vp := rv2i(rv).(*map[interface{}]bool)
18982 if v, changed := fastpathTV.DecMapIntfBoolV(*vp, true, d); changed {
18983 *vp = v
18984 }
18985 return
18986 }
18987 fastpathTV.DecMapIntfBoolV(rv2i(rv).(map[interface{}]bool), false, d)
18988 }
18989 func (f fastpathT) DecMapIntfBoolX(vp *map[interface{}]bool, d *Decoder) {
18990 if v, changed := f.DecMapIntfBoolV(*vp, true, d); changed {
18991 *vp = v
18992 }
18993 }
18994 func (_ fastpathT) DecMapIntfBoolV(v map[interface{}]bool, canChange bool,
18995 d *Decoder) (_ map[interface{}]bool, changed bool) {
18996 dd, esep := d.d, d.hh.hasElemSeparators()
18997
18998 containerLen := dd.ReadMapStart()
18999 if canChange && v == nil {
19000 xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
19001 v = make(map[interface{}]bool, xlen)
19002 changed = true
19003 }
19004 if containerLen == 0 {
19005 dd.ReadMapEnd()
19006 return v, changed
19007 }
19008
19009 var mk interface{}
19010 var mv bool
19011 hasLen := containerLen > 0
19012 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
19013 if esep {
19014 dd.ReadMapElemKey()
19015 }
19016 mk = nil
19017 d.decode(&mk)
19018 if bv, bok := mk.([]byte); bok {
19019 mk = d.string(bv)
19020 }
19021 if esep {
19022 dd.ReadMapElemValue()
19023 }
19024 if dd.TryDecodeAsNil() {
19025 if d.h.DeleteOnNilMapValue {
19026 delete(v, mk)
19027 } else {
19028 v[mk] = false
19029 }
19030 continue
19031 }
19032 mv = dd.DecodeBool()
19033 if v != nil {
19034 v[mk] = mv
19035 }
19036 }
19037 dd.ReadMapEnd()
19038 return v, changed
19039 }
19040
19041 func (d *Decoder) fastpathDecMapStringIntfR(f *codecFnInfo, rv reflect.Value) {
19042 if rv.Kind() == reflect.Ptr {
19043 vp := rv2i(rv).(*map[string]interface{})
19044 if v, changed := fastpathTV.DecMapStringIntfV(*vp, true, d); changed {
19045 *vp = v
19046 }
19047 return
19048 }
19049 fastpathTV.DecMapStringIntfV(rv2i(rv).(map[string]interface{}), false, d)
19050 }
19051 func (f fastpathT) DecMapStringIntfX(vp *map[string]interface{}, d *Decoder) {
19052 if v, changed := f.DecMapStringIntfV(*vp, true, d); changed {
19053 *vp = v
19054 }
19055 }
19056 func (_ fastpathT) DecMapStringIntfV(v map[string]interface{}, canChange bool,
19057 d *Decoder) (_ map[string]interface{}, changed bool) {
19058 dd, esep := d.d, d.hh.hasElemSeparators()
19059
19060 containerLen := dd.ReadMapStart()
19061 if canChange && v == nil {
19062 xlen := decInferLen(containerLen, d.h.MaxInitLen, 32)
19063 v = make(map[string]interface{}, xlen)
19064 changed = true
19065 }
19066 if containerLen == 0 {
19067 dd.ReadMapEnd()
19068 return v, changed
19069 }
19070 mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
19071 var mk string
19072 var mv interface{}
19073 hasLen := containerLen > 0
19074 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
19075 if esep {
19076 dd.ReadMapElemKey()
19077 }
19078 mk = dd.DecodeString()
19079 if esep {
19080 dd.ReadMapElemValue()
19081 }
19082 if dd.TryDecodeAsNil() {
19083 if d.h.DeleteOnNilMapValue {
19084 delete(v, mk)
19085 } else {
19086 v[mk] = nil
19087 }
19088 continue
19089 }
19090 if mapGet {
19091 mv = v[mk]
19092 } else {
19093 mv = nil
19094 }
19095 d.decode(&mv)
19096 if v != nil {
19097 v[mk] = mv
19098 }
19099 }
19100 dd.ReadMapEnd()
19101 return v, changed
19102 }
19103
19104 func (d *Decoder) fastpathDecMapStringStringR(f *codecFnInfo, rv reflect.Value) {
19105 if rv.Kind() == reflect.Ptr {
19106 vp := rv2i(rv).(*map[string]string)
19107 if v, changed := fastpathTV.DecMapStringStringV(*vp, true, d); changed {
19108 *vp = v
19109 }
19110 return
19111 }
19112 fastpathTV.DecMapStringStringV(rv2i(rv).(map[string]string), false, d)
19113 }
19114 func (f fastpathT) DecMapStringStringX(vp *map[string]string, d *Decoder) {
19115 if v, changed := f.DecMapStringStringV(*vp, true, d); changed {
19116 *vp = v
19117 }
19118 }
19119 func (_ fastpathT) DecMapStringStringV(v map[string]string, canChange bool,
19120 d *Decoder) (_ map[string]string, changed bool) {
19121 dd, esep := d.d, d.hh.hasElemSeparators()
19122
19123 containerLen := dd.ReadMapStart()
19124 if canChange && v == nil {
19125 xlen := decInferLen(containerLen, d.h.MaxInitLen, 32)
19126 v = make(map[string]string, xlen)
19127 changed = true
19128 }
19129 if containerLen == 0 {
19130 dd.ReadMapEnd()
19131 return v, changed
19132 }
19133
19134 var mk string
19135 var mv string
19136 hasLen := containerLen > 0
19137 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
19138 if esep {
19139 dd.ReadMapElemKey()
19140 }
19141 mk = dd.DecodeString()
19142 if esep {
19143 dd.ReadMapElemValue()
19144 }
19145 if dd.TryDecodeAsNil() {
19146 if d.h.DeleteOnNilMapValue {
19147 delete(v, mk)
19148 } else {
19149 v[mk] = ""
19150 }
19151 continue
19152 }
19153 mv = dd.DecodeString()
19154 if v != nil {
19155 v[mk] = mv
19156 }
19157 }
19158 dd.ReadMapEnd()
19159 return v, changed
19160 }
19161
19162 func (d *Decoder) fastpathDecMapStringUintR(f *codecFnInfo, rv reflect.Value) {
19163 if rv.Kind() == reflect.Ptr {
19164 vp := rv2i(rv).(*map[string]uint)
19165 if v, changed := fastpathTV.DecMapStringUintV(*vp, true, d); changed {
19166 *vp = v
19167 }
19168 return
19169 }
19170 fastpathTV.DecMapStringUintV(rv2i(rv).(map[string]uint), false, d)
19171 }
19172 func (f fastpathT) DecMapStringUintX(vp *map[string]uint, d *Decoder) {
19173 if v, changed := f.DecMapStringUintV(*vp, true, d); changed {
19174 *vp = v
19175 }
19176 }
19177 func (_ fastpathT) DecMapStringUintV(v map[string]uint, canChange bool,
19178 d *Decoder) (_ map[string]uint, changed bool) {
19179 dd, esep := d.d, d.hh.hasElemSeparators()
19180
19181 containerLen := dd.ReadMapStart()
19182 if canChange && v == nil {
19183 xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
19184 v = make(map[string]uint, xlen)
19185 changed = true
19186 }
19187 if containerLen == 0 {
19188 dd.ReadMapEnd()
19189 return v, changed
19190 }
19191
19192 var mk string
19193 var mv uint
19194 hasLen := containerLen > 0
19195 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
19196 if esep {
19197 dd.ReadMapElemKey()
19198 }
19199 mk = dd.DecodeString()
19200 if esep {
19201 dd.ReadMapElemValue()
19202 }
19203 if dd.TryDecodeAsNil() {
19204 if d.h.DeleteOnNilMapValue {
19205 delete(v, mk)
19206 } else {
19207 v[mk] = 0
19208 }
19209 continue
19210 }
19211 mv = uint(dd.DecodeUint(uintBitsize))
19212 if v != nil {
19213 v[mk] = mv
19214 }
19215 }
19216 dd.ReadMapEnd()
19217 return v, changed
19218 }
19219
19220 func (d *Decoder) fastpathDecMapStringUint8R(f *codecFnInfo, rv reflect.Value) {
19221 if rv.Kind() == reflect.Ptr {
19222 vp := rv2i(rv).(*map[string]uint8)
19223 if v, changed := fastpathTV.DecMapStringUint8V(*vp, true, d); changed {
19224 *vp = v
19225 }
19226 return
19227 }
19228 fastpathTV.DecMapStringUint8V(rv2i(rv).(map[string]uint8), false, d)
19229 }
19230 func (f fastpathT) DecMapStringUint8X(vp *map[string]uint8, d *Decoder) {
19231 if v, changed := f.DecMapStringUint8V(*vp, true, d); changed {
19232 *vp = v
19233 }
19234 }
19235 func (_ fastpathT) DecMapStringUint8V(v map[string]uint8, canChange bool,
19236 d *Decoder) (_ map[string]uint8, changed bool) {
19237 dd, esep := d.d, d.hh.hasElemSeparators()
19238
19239 containerLen := dd.ReadMapStart()
19240 if canChange && v == nil {
19241 xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
19242 v = make(map[string]uint8, xlen)
19243 changed = true
19244 }
19245 if containerLen == 0 {
19246 dd.ReadMapEnd()
19247 return v, changed
19248 }
19249
19250 var mk string
19251 var mv uint8
19252 hasLen := containerLen > 0
19253 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
19254 if esep {
19255 dd.ReadMapElemKey()
19256 }
19257 mk = dd.DecodeString()
19258 if esep {
19259 dd.ReadMapElemValue()
19260 }
19261 if dd.TryDecodeAsNil() {
19262 if d.h.DeleteOnNilMapValue {
19263 delete(v, mk)
19264 } else {
19265 v[mk] = 0
19266 }
19267 continue
19268 }
19269 mv = uint8(dd.DecodeUint(8))
19270 if v != nil {
19271 v[mk] = mv
19272 }
19273 }
19274 dd.ReadMapEnd()
19275 return v, changed
19276 }
19277
19278 func (d *Decoder) fastpathDecMapStringUint16R(f *codecFnInfo, rv reflect.Value) {
19279 if rv.Kind() == reflect.Ptr {
19280 vp := rv2i(rv).(*map[string]uint16)
19281 if v, changed := fastpathTV.DecMapStringUint16V(*vp, true, d); changed {
19282 *vp = v
19283 }
19284 return
19285 }
19286 fastpathTV.DecMapStringUint16V(rv2i(rv).(map[string]uint16), false, d)
19287 }
19288 func (f fastpathT) DecMapStringUint16X(vp *map[string]uint16, d *Decoder) {
19289 if v, changed := f.DecMapStringUint16V(*vp, true, d); changed {
19290 *vp = v
19291 }
19292 }
19293 func (_ fastpathT) DecMapStringUint16V(v map[string]uint16, canChange bool,
19294 d *Decoder) (_ map[string]uint16, changed bool) {
19295 dd, esep := d.d, d.hh.hasElemSeparators()
19296
19297 containerLen := dd.ReadMapStart()
19298 if canChange && v == nil {
19299 xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
19300 v = make(map[string]uint16, xlen)
19301 changed = true
19302 }
19303 if containerLen == 0 {
19304 dd.ReadMapEnd()
19305 return v, changed
19306 }
19307
19308 var mk string
19309 var mv uint16
19310 hasLen := containerLen > 0
19311 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
19312 if esep {
19313 dd.ReadMapElemKey()
19314 }
19315 mk = dd.DecodeString()
19316 if esep {
19317 dd.ReadMapElemValue()
19318 }
19319 if dd.TryDecodeAsNil() {
19320 if d.h.DeleteOnNilMapValue {
19321 delete(v, mk)
19322 } else {
19323 v[mk] = 0
19324 }
19325 continue
19326 }
19327 mv = uint16(dd.DecodeUint(16))
19328 if v != nil {
19329 v[mk] = mv
19330 }
19331 }
19332 dd.ReadMapEnd()
19333 return v, changed
19334 }
19335
19336 func (d *Decoder) fastpathDecMapStringUint32R(f *codecFnInfo, rv reflect.Value) {
19337 if rv.Kind() == reflect.Ptr {
19338 vp := rv2i(rv).(*map[string]uint32)
19339 if v, changed := fastpathTV.DecMapStringUint32V(*vp, true, d); changed {
19340 *vp = v
19341 }
19342 return
19343 }
19344 fastpathTV.DecMapStringUint32V(rv2i(rv).(map[string]uint32), false, d)
19345 }
19346 func (f fastpathT) DecMapStringUint32X(vp *map[string]uint32, d *Decoder) {
19347 if v, changed := f.DecMapStringUint32V(*vp, true, d); changed {
19348 *vp = v
19349 }
19350 }
19351 func (_ fastpathT) DecMapStringUint32V(v map[string]uint32, canChange bool,
19352 d *Decoder) (_ map[string]uint32, changed bool) {
19353 dd, esep := d.d, d.hh.hasElemSeparators()
19354
19355 containerLen := dd.ReadMapStart()
19356 if canChange && v == nil {
19357 xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
19358 v = make(map[string]uint32, xlen)
19359 changed = true
19360 }
19361 if containerLen == 0 {
19362 dd.ReadMapEnd()
19363 return v, changed
19364 }
19365
19366 var mk string
19367 var mv uint32
19368 hasLen := containerLen > 0
19369 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
19370 if esep {
19371 dd.ReadMapElemKey()
19372 }
19373 mk = dd.DecodeString()
19374 if esep {
19375 dd.ReadMapElemValue()
19376 }
19377 if dd.TryDecodeAsNil() {
19378 if d.h.DeleteOnNilMapValue {
19379 delete(v, mk)
19380 } else {
19381 v[mk] = 0
19382 }
19383 continue
19384 }
19385 mv = uint32(dd.DecodeUint(32))
19386 if v != nil {
19387 v[mk] = mv
19388 }
19389 }
19390 dd.ReadMapEnd()
19391 return v, changed
19392 }
19393
19394 func (d *Decoder) fastpathDecMapStringUint64R(f *codecFnInfo, rv reflect.Value) {
19395 if rv.Kind() == reflect.Ptr {
19396 vp := rv2i(rv).(*map[string]uint64)
19397 if v, changed := fastpathTV.DecMapStringUint64V(*vp, true, d); changed {
19398 *vp = v
19399 }
19400 return
19401 }
19402 fastpathTV.DecMapStringUint64V(rv2i(rv).(map[string]uint64), false, d)
19403 }
19404 func (f fastpathT) DecMapStringUint64X(vp *map[string]uint64, d *Decoder) {
19405 if v, changed := f.DecMapStringUint64V(*vp, true, d); changed {
19406 *vp = v
19407 }
19408 }
19409 func (_ fastpathT) DecMapStringUint64V(v map[string]uint64, canChange bool,
19410 d *Decoder) (_ map[string]uint64, changed bool) {
19411 dd, esep := d.d, d.hh.hasElemSeparators()
19412
19413 containerLen := dd.ReadMapStart()
19414 if canChange && v == nil {
19415 xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
19416 v = make(map[string]uint64, xlen)
19417 changed = true
19418 }
19419 if containerLen == 0 {
19420 dd.ReadMapEnd()
19421 return v, changed
19422 }
19423
19424 var mk string
19425 var mv uint64
19426 hasLen := containerLen > 0
19427 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
19428 if esep {
19429 dd.ReadMapElemKey()
19430 }
19431 mk = dd.DecodeString()
19432 if esep {
19433 dd.ReadMapElemValue()
19434 }
19435 if dd.TryDecodeAsNil() {
19436 if d.h.DeleteOnNilMapValue {
19437 delete(v, mk)
19438 } else {
19439 v[mk] = 0
19440 }
19441 continue
19442 }
19443 mv = dd.DecodeUint(64)
19444 if v != nil {
19445 v[mk] = mv
19446 }
19447 }
19448 dd.ReadMapEnd()
19449 return v, changed
19450 }
19451
19452 func (d *Decoder) fastpathDecMapStringUintptrR(f *codecFnInfo, rv reflect.Value) {
19453 if rv.Kind() == reflect.Ptr {
19454 vp := rv2i(rv).(*map[string]uintptr)
19455 if v, changed := fastpathTV.DecMapStringUintptrV(*vp, true, d); changed {
19456 *vp = v
19457 }
19458 return
19459 }
19460 fastpathTV.DecMapStringUintptrV(rv2i(rv).(map[string]uintptr), false, d)
19461 }
19462 func (f fastpathT) DecMapStringUintptrX(vp *map[string]uintptr, d *Decoder) {
19463 if v, changed := f.DecMapStringUintptrV(*vp, true, d); changed {
19464 *vp = v
19465 }
19466 }
19467 func (_ fastpathT) DecMapStringUintptrV(v map[string]uintptr, canChange bool,
19468 d *Decoder) (_ map[string]uintptr, changed bool) {
19469 dd, esep := d.d, d.hh.hasElemSeparators()
19470
19471 containerLen := dd.ReadMapStart()
19472 if canChange && v == nil {
19473 xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
19474 v = make(map[string]uintptr, xlen)
19475 changed = true
19476 }
19477 if containerLen == 0 {
19478 dd.ReadMapEnd()
19479 return v, changed
19480 }
19481
19482 var mk string
19483 var mv uintptr
19484 hasLen := containerLen > 0
19485 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
19486 if esep {
19487 dd.ReadMapElemKey()
19488 }
19489 mk = dd.DecodeString()
19490 if esep {
19491 dd.ReadMapElemValue()
19492 }
19493 if dd.TryDecodeAsNil() {
19494 if d.h.DeleteOnNilMapValue {
19495 delete(v, mk)
19496 } else {
19497 v[mk] = 0
19498 }
19499 continue
19500 }
19501 mv = uintptr(dd.DecodeUint(uintBitsize))
19502 if v != nil {
19503 v[mk] = mv
19504 }
19505 }
19506 dd.ReadMapEnd()
19507 return v, changed
19508 }
19509
19510 func (d *Decoder) fastpathDecMapStringIntR(f *codecFnInfo, rv reflect.Value) {
19511 if rv.Kind() == reflect.Ptr {
19512 vp := rv2i(rv).(*map[string]int)
19513 if v, changed := fastpathTV.DecMapStringIntV(*vp, true, d); changed {
19514 *vp = v
19515 }
19516 return
19517 }
19518 fastpathTV.DecMapStringIntV(rv2i(rv).(map[string]int), false, d)
19519 }
19520 func (f fastpathT) DecMapStringIntX(vp *map[string]int, d *Decoder) {
19521 if v, changed := f.DecMapStringIntV(*vp, true, d); changed {
19522 *vp = v
19523 }
19524 }
19525 func (_ fastpathT) DecMapStringIntV(v map[string]int, canChange bool,
19526 d *Decoder) (_ map[string]int, changed bool) {
19527 dd, esep := d.d, d.hh.hasElemSeparators()
19528
19529 containerLen := dd.ReadMapStart()
19530 if canChange && v == nil {
19531 xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
19532 v = make(map[string]int, xlen)
19533 changed = true
19534 }
19535 if containerLen == 0 {
19536 dd.ReadMapEnd()
19537 return v, changed
19538 }
19539
19540 var mk string
19541 var mv int
19542 hasLen := containerLen > 0
19543 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
19544 if esep {
19545 dd.ReadMapElemKey()
19546 }
19547 mk = dd.DecodeString()
19548 if esep {
19549 dd.ReadMapElemValue()
19550 }
19551 if dd.TryDecodeAsNil() {
19552 if d.h.DeleteOnNilMapValue {
19553 delete(v, mk)
19554 } else {
19555 v[mk] = 0
19556 }
19557 continue
19558 }
19559 mv = int(dd.DecodeInt(intBitsize))
19560 if v != nil {
19561 v[mk] = mv
19562 }
19563 }
19564 dd.ReadMapEnd()
19565 return v, changed
19566 }
19567
19568 func (d *Decoder) fastpathDecMapStringInt8R(f *codecFnInfo, rv reflect.Value) {
19569 if rv.Kind() == reflect.Ptr {
19570 vp := rv2i(rv).(*map[string]int8)
19571 if v, changed := fastpathTV.DecMapStringInt8V(*vp, true, d); changed {
19572 *vp = v
19573 }
19574 return
19575 }
19576 fastpathTV.DecMapStringInt8V(rv2i(rv).(map[string]int8), false, d)
19577 }
19578 func (f fastpathT) DecMapStringInt8X(vp *map[string]int8, d *Decoder) {
19579 if v, changed := f.DecMapStringInt8V(*vp, true, d); changed {
19580 *vp = v
19581 }
19582 }
19583 func (_ fastpathT) DecMapStringInt8V(v map[string]int8, canChange bool,
19584 d *Decoder) (_ map[string]int8, changed bool) {
19585 dd, esep := d.d, d.hh.hasElemSeparators()
19586
19587 containerLen := dd.ReadMapStart()
19588 if canChange && v == nil {
19589 xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
19590 v = make(map[string]int8, xlen)
19591 changed = true
19592 }
19593 if containerLen == 0 {
19594 dd.ReadMapEnd()
19595 return v, changed
19596 }
19597
19598 var mk string
19599 var mv int8
19600 hasLen := containerLen > 0
19601 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
19602 if esep {
19603 dd.ReadMapElemKey()
19604 }
19605 mk = dd.DecodeString()
19606 if esep {
19607 dd.ReadMapElemValue()
19608 }
19609 if dd.TryDecodeAsNil() {
19610 if d.h.DeleteOnNilMapValue {
19611 delete(v, mk)
19612 } else {
19613 v[mk] = 0
19614 }
19615 continue
19616 }
19617 mv = int8(dd.DecodeInt(8))
19618 if v != nil {
19619 v[mk] = mv
19620 }
19621 }
19622 dd.ReadMapEnd()
19623 return v, changed
19624 }
19625
19626 func (d *Decoder) fastpathDecMapStringInt16R(f *codecFnInfo, rv reflect.Value) {
19627 if rv.Kind() == reflect.Ptr {
19628 vp := rv2i(rv).(*map[string]int16)
19629 if v, changed := fastpathTV.DecMapStringInt16V(*vp, true, d); changed {
19630 *vp = v
19631 }
19632 return
19633 }
19634 fastpathTV.DecMapStringInt16V(rv2i(rv).(map[string]int16), false, d)
19635 }
19636 func (f fastpathT) DecMapStringInt16X(vp *map[string]int16, d *Decoder) {
19637 if v, changed := f.DecMapStringInt16V(*vp, true, d); changed {
19638 *vp = v
19639 }
19640 }
19641 func (_ fastpathT) DecMapStringInt16V(v map[string]int16, canChange bool,
19642 d *Decoder) (_ map[string]int16, changed bool) {
19643 dd, esep := d.d, d.hh.hasElemSeparators()
19644
19645 containerLen := dd.ReadMapStart()
19646 if canChange && v == nil {
19647 xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
19648 v = make(map[string]int16, xlen)
19649 changed = true
19650 }
19651 if containerLen == 0 {
19652 dd.ReadMapEnd()
19653 return v, changed
19654 }
19655
19656 var mk string
19657 var mv int16
19658 hasLen := containerLen > 0
19659 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
19660 if esep {
19661 dd.ReadMapElemKey()
19662 }
19663 mk = dd.DecodeString()
19664 if esep {
19665 dd.ReadMapElemValue()
19666 }
19667 if dd.TryDecodeAsNil() {
19668 if d.h.DeleteOnNilMapValue {
19669 delete(v, mk)
19670 } else {
19671 v[mk] = 0
19672 }
19673 continue
19674 }
19675 mv = int16(dd.DecodeInt(16))
19676 if v != nil {
19677 v[mk] = mv
19678 }
19679 }
19680 dd.ReadMapEnd()
19681 return v, changed
19682 }
19683
19684 func (d *Decoder) fastpathDecMapStringInt32R(f *codecFnInfo, rv reflect.Value) {
19685 if rv.Kind() == reflect.Ptr {
19686 vp := rv2i(rv).(*map[string]int32)
19687 if v, changed := fastpathTV.DecMapStringInt32V(*vp, true, d); changed {
19688 *vp = v
19689 }
19690 return
19691 }
19692 fastpathTV.DecMapStringInt32V(rv2i(rv).(map[string]int32), false, d)
19693 }
19694 func (f fastpathT) DecMapStringInt32X(vp *map[string]int32, d *Decoder) {
19695 if v, changed := f.DecMapStringInt32V(*vp, true, d); changed {
19696 *vp = v
19697 }
19698 }
19699 func (_ fastpathT) DecMapStringInt32V(v map[string]int32, canChange bool,
19700 d *Decoder) (_ map[string]int32, changed bool) {
19701 dd, esep := d.d, d.hh.hasElemSeparators()
19702
19703 containerLen := dd.ReadMapStart()
19704 if canChange && v == nil {
19705 xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
19706 v = make(map[string]int32, xlen)
19707 changed = true
19708 }
19709 if containerLen == 0 {
19710 dd.ReadMapEnd()
19711 return v, changed
19712 }
19713
19714 var mk string
19715 var mv int32
19716 hasLen := containerLen > 0
19717 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
19718 if esep {
19719 dd.ReadMapElemKey()
19720 }
19721 mk = dd.DecodeString()
19722 if esep {
19723 dd.ReadMapElemValue()
19724 }
19725 if dd.TryDecodeAsNil() {
19726 if d.h.DeleteOnNilMapValue {
19727 delete(v, mk)
19728 } else {
19729 v[mk] = 0
19730 }
19731 continue
19732 }
19733 mv = int32(dd.DecodeInt(32))
19734 if v != nil {
19735 v[mk] = mv
19736 }
19737 }
19738 dd.ReadMapEnd()
19739 return v, changed
19740 }
19741
19742 func (d *Decoder) fastpathDecMapStringInt64R(f *codecFnInfo, rv reflect.Value) {
19743 if rv.Kind() == reflect.Ptr {
19744 vp := rv2i(rv).(*map[string]int64)
19745 if v, changed := fastpathTV.DecMapStringInt64V(*vp, true, d); changed {
19746 *vp = v
19747 }
19748 return
19749 }
19750 fastpathTV.DecMapStringInt64V(rv2i(rv).(map[string]int64), false, d)
19751 }
19752 func (f fastpathT) DecMapStringInt64X(vp *map[string]int64, d *Decoder) {
19753 if v, changed := f.DecMapStringInt64V(*vp, true, d); changed {
19754 *vp = v
19755 }
19756 }
19757 func (_ fastpathT) DecMapStringInt64V(v map[string]int64, canChange bool,
19758 d *Decoder) (_ map[string]int64, changed bool) {
19759 dd, esep := d.d, d.hh.hasElemSeparators()
19760
19761 containerLen := dd.ReadMapStart()
19762 if canChange && v == nil {
19763 xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
19764 v = make(map[string]int64, xlen)
19765 changed = true
19766 }
19767 if containerLen == 0 {
19768 dd.ReadMapEnd()
19769 return v, changed
19770 }
19771
19772 var mk string
19773 var mv int64
19774 hasLen := containerLen > 0
19775 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
19776 if esep {
19777 dd.ReadMapElemKey()
19778 }
19779 mk = dd.DecodeString()
19780 if esep {
19781 dd.ReadMapElemValue()
19782 }
19783 if dd.TryDecodeAsNil() {
19784 if d.h.DeleteOnNilMapValue {
19785 delete(v, mk)
19786 } else {
19787 v[mk] = 0
19788 }
19789 continue
19790 }
19791 mv = dd.DecodeInt(64)
19792 if v != nil {
19793 v[mk] = mv
19794 }
19795 }
19796 dd.ReadMapEnd()
19797 return v, changed
19798 }
19799
19800 func (d *Decoder) fastpathDecMapStringFloat32R(f *codecFnInfo, rv reflect.Value) {
19801 if rv.Kind() == reflect.Ptr {
19802 vp := rv2i(rv).(*map[string]float32)
19803 if v, changed := fastpathTV.DecMapStringFloat32V(*vp, true, d); changed {
19804 *vp = v
19805 }
19806 return
19807 }
19808 fastpathTV.DecMapStringFloat32V(rv2i(rv).(map[string]float32), false, d)
19809 }
19810 func (f fastpathT) DecMapStringFloat32X(vp *map[string]float32, d *Decoder) {
19811 if v, changed := f.DecMapStringFloat32V(*vp, true, d); changed {
19812 *vp = v
19813 }
19814 }
19815 func (_ fastpathT) DecMapStringFloat32V(v map[string]float32, canChange bool,
19816 d *Decoder) (_ map[string]float32, changed bool) {
19817 dd, esep := d.d, d.hh.hasElemSeparators()
19818
19819 containerLen := dd.ReadMapStart()
19820 if canChange && v == nil {
19821 xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
19822 v = make(map[string]float32, xlen)
19823 changed = true
19824 }
19825 if containerLen == 0 {
19826 dd.ReadMapEnd()
19827 return v, changed
19828 }
19829
19830 var mk string
19831 var mv float32
19832 hasLen := containerLen > 0
19833 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
19834 if esep {
19835 dd.ReadMapElemKey()
19836 }
19837 mk = dd.DecodeString()
19838 if esep {
19839 dd.ReadMapElemValue()
19840 }
19841 if dd.TryDecodeAsNil() {
19842 if d.h.DeleteOnNilMapValue {
19843 delete(v, mk)
19844 } else {
19845 v[mk] = 0
19846 }
19847 continue
19848 }
19849 mv = float32(dd.DecodeFloat(true))
19850 if v != nil {
19851 v[mk] = mv
19852 }
19853 }
19854 dd.ReadMapEnd()
19855 return v, changed
19856 }
19857
19858 func (d *Decoder) fastpathDecMapStringFloat64R(f *codecFnInfo, rv reflect.Value) {
19859 if rv.Kind() == reflect.Ptr {
19860 vp := rv2i(rv).(*map[string]float64)
19861 if v, changed := fastpathTV.DecMapStringFloat64V(*vp, true, d); changed {
19862 *vp = v
19863 }
19864 return
19865 }
19866 fastpathTV.DecMapStringFloat64V(rv2i(rv).(map[string]float64), false, d)
19867 }
19868 func (f fastpathT) DecMapStringFloat64X(vp *map[string]float64, d *Decoder) {
19869 if v, changed := f.DecMapStringFloat64V(*vp, true, d); changed {
19870 *vp = v
19871 }
19872 }
19873 func (_ fastpathT) DecMapStringFloat64V(v map[string]float64, canChange bool,
19874 d *Decoder) (_ map[string]float64, changed bool) {
19875 dd, esep := d.d, d.hh.hasElemSeparators()
19876
19877 containerLen := dd.ReadMapStart()
19878 if canChange && v == nil {
19879 xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
19880 v = make(map[string]float64, xlen)
19881 changed = true
19882 }
19883 if containerLen == 0 {
19884 dd.ReadMapEnd()
19885 return v, changed
19886 }
19887
19888 var mk string
19889 var mv float64
19890 hasLen := containerLen > 0
19891 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
19892 if esep {
19893 dd.ReadMapElemKey()
19894 }
19895 mk = dd.DecodeString()
19896 if esep {
19897 dd.ReadMapElemValue()
19898 }
19899 if dd.TryDecodeAsNil() {
19900 if d.h.DeleteOnNilMapValue {
19901 delete(v, mk)
19902 } else {
19903 v[mk] = 0
19904 }
19905 continue
19906 }
19907 mv = dd.DecodeFloat(false)
19908 if v != nil {
19909 v[mk] = mv
19910 }
19911 }
19912 dd.ReadMapEnd()
19913 return v, changed
19914 }
19915
19916 func (d *Decoder) fastpathDecMapStringBoolR(f *codecFnInfo, rv reflect.Value) {
19917 if rv.Kind() == reflect.Ptr {
19918 vp := rv2i(rv).(*map[string]bool)
19919 if v, changed := fastpathTV.DecMapStringBoolV(*vp, true, d); changed {
19920 *vp = v
19921 }
19922 return
19923 }
19924 fastpathTV.DecMapStringBoolV(rv2i(rv).(map[string]bool), false, d)
19925 }
19926 func (f fastpathT) DecMapStringBoolX(vp *map[string]bool, d *Decoder) {
19927 if v, changed := f.DecMapStringBoolV(*vp, true, d); changed {
19928 *vp = v
19929 }
19930 }
19931 func (_ fastpathT) DecMapStringBoolV(v map[string]bool, canChange bool,
19932 d *Decoder) (_ map[string]bool, changed bool) {
19933 dd, esep := d.d, d.hh.hasElemSeparators()
19934
19935 containerLen := dd.ReadMapStart()
19936 if canChange && v == nil {
19937 xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
19938 v = make(map[string]bool, xlen)
19939 changed = true
19940 }
19941 if containerLen == 0 {
19942 dd.ReadMapEnd()
19943 return v, changed
19944 }
19945
19946 var mk string
19947 var mv bool
19948 hasLen := containerLen > 0
19949 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
19950 if esep {
19951 dd.ReadMapElemKey()
19952 }
19953 mk = dd.DecodeString()
19954 if esep {
19955 dd.ReadMapElemValue()
19956 }
19957 if dd.TryDecodeAsNil() {
19958 if d.h.DeleteOnNilMapValue {
19959 delete(v, mk)
19960 } else {
19961 v[mk] = false
19962 }
19963 continue
19964 }
19965 mv = dd.DecodeBool()
19966 if v != nil {
19967 v[mk] = mv
19968 }
19969 }
19970 dd.ReadMapEnd()
19971 return v, changed
19972 }
19973
19974 func (d *Decoder) fastpathDecMapFloat32IntfR(f *codecFnInfo, rv reflect.Value) {
19975 if rv.Kind() == reflect.Ptr {
19976 vp := rv2i(rv).(*map[float32]interface{})
19977 if v, changed := fastpathTV.DecMapFloat32IntfV(*vp, true, d); changed {
19978 *vp = v
19979 }
19980 return
19981 }
19982 fastpathTV.DecMapFloat32IntfV(rv2i(rv).(map[float32]interface{}), false, d)
19983 }
19984 func (f fastpathT) DecMapFloat32IntfX(vp *map[float32]interface{}, d *Decoder) {
19985 if v, changed := f.DecMapFloat32IntfV(*vp, true, d); changed {
19986 *vp = v
19987 }
19988 }
19989 func (_ fastpathT) DecMapFloat32IntfV(v map[float32]interface{}, canChange bool,
19990 d *Decoder) (_ map[float32]interface{}, changed bool) {
19991 dd, esep := d.d, d.hh.hasElemSeparators()
19992
19993 containerLen := dd.ReadMapStart()
19994 if canChange && v == nil {
19995 xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
19996 v = make(map[float32]interface{}, xlen)
19997 changed = true
19998 }
19999 if containerLen == 0 {
20000 dd.ReadMapEnd()
20001 return v, changed
20002 }
20003 mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
20004 var mk float32
20005 var mv interface{}
20006 hasLen := containerLen > 0
20007 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
20008 if esep {
20009 dd.ReadMapElemKey()
20010 }
20011 mk = float32(dd.DecodeFloat(true))
20012 if esep {
20013 dd.ReadMapElemValue()
20014 }
20015 if dd.TryDecodeAsNil() {
20016 if d.h.DeleteOnNilMapValue {
20017 delete(v, mk)
20018 } else {
20019 v[mk] = nil
20020 }
20021 continue
20022 }
20023 if mapGet {
20024 mv = v[mk]
20025 } else {
20026 mv = nil
20027 }
20028 d.decode(&mv)
20029 if v != nil {
20030 v[mk] = mv
20031 }
20032 }
20033 dd.ReadMapEnd()
20034 return v, changed
20035 }
20036
20037 func (d *Decoder) fastpathDecMapFloat32StringR(f *codecFnInfo, rv reflect.Value) {
20038 if rv.Kind() == reflect.Ptr {
20039 vp := rv2i(rv).(*map[float32]string)
20040 if v, changed := fastpathTV.DecMapFloat32StringV(*vp, true, d); changed {
20041 *vp = v
20042 }
20043 return
20044 }
20045 fastpathTV.DecMapFloat32StringV(rv2i(rv).(map[float32]string), false, d)
20046 }
20047 func (f fastpathT) DecMapFloat32StringX(vp *map[float32]string, d *Decoder) {
20048 if v, changed := f.DecMapFloat32StringV(*vp, true, d); changed {
20049 *vp = v
20050 }
20051 }
20052 func (_ fastpathT) DecMapFloat32StringV(v map[float32]string, canChange bool,
20053 d *Decoder) (_ map[float32]string, changed bool) {
20054 dd, esep := d.d, d.hh.hasElemSeparators()
20055
20056 containerLen := dd.ReadMapStart()
20057 if canChange && v == nil {
20058 xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
20059 v = make(map[float32]string, xlen)
20060 changed = true
20061 }
20062 if containerLen == 0 {
20063 dd.ReadMapEnd()
20064 return v, changed
20065 }
20066
20067 var mk float32
20068 var mv string
20069 hasLen := containerLen > 0
20070 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
20071 if esep {
20072 dd.ReadMapElemKey()
20073 }
20074 mk = float32(dd.DecodeFloat(true))
20075 if esep {
20076 dd.ReadMapElemValue()
20077 }
20078 if dd.TryDecodeAsNil() {
20079 if d.h.DeleteOnNilMapValue {
20080 delete(v, mk)
20081 } else {
20082 v[mk] = ""
20083 }
20084 continue
20085 }
20086 mv = dd.DecodeString()
20087 if v != nil {
20088 v[mk] = mv
20089 }
20090 }
20091 dd.ReadMapEnd()
20092 return v, changed
20093 }
20094
20095 func (d *Decoder) fastpathDecMapFloat32UintR(f *codecFnInfo, rv reflect.Value) {
20096 if rv.Kind() == reflect.Ptr {
20097 vp := rv2i(rv).(*map[float32]uint)
20098 if v, changed := fastpathTV.DecMapFloat32UintV(*vp, true, d); changed {
20099 *vp = v
20100 }
20101 return
20102 }
20103 fastpathTV.DecMapFloat32UintV(rv2i(rv).(map[float32]uint), false, d)
20104 }
20105 func (f fastpathT) DecMapFloat32UintX(vp *map[float32]uint, d *Decoder) {
20106 if v, changed := f.DecMapFloat32UintV(*vp, true, d); changed {
20107 *vp = v
20108 }
20109 }
20110 func (_ fastpathT) DecMapFloat32UintV(v map[float32]uint, canChange bool,
20111 d *Decoder) (_ map[float32]uint, changed bool) {
20112 dd, esep := d.d, d.hh.hasElemSeparators()
20113
20114 containerLen := dd.ReadMapStart()
20115 if canChange && v == nil {
20116 xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
20117 v = make(map[float32]uint, xlen)
20118 changed = true
20119 }
20120 if containerLen == 0 {
20121 dd.ReadMapEnd()
20122 return v, changed
20123 }
20124
20125 var mk float32
20126 var mv uint
20127 hasLen := containerLen > 0
20128 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
20129 if esep {
20130 dd.ReadMapElemKey()
20131 }
20132 mk = float32(dd.DecodeFloat(true))
20133 if esep {
20134 dd.ReadMapElemValue()
20135 }
20136 if dd.TryDecodeAsNil() {
20137 if d.h.DeleteOnNilMapValue {
20138 delete(v, mk)
20139 } else {
20140 v[mk] = 0
20141 }
20142 continue
20143 }
20144 mv = uint(dd.DecodeUint(uintBitsize))
20145 if v != nil {
20146 v[mk] = mv
20147 }
20148 }
20149 dd.ReadMapEnd()
20150 return v, changed
20151 }
20152
20153 func (d *Decoder) fastpathDecMapFloat32Uint8R(f *codecFnInfo, rv reflect.Value) {
20154 if rv.Kind() == reflect.Ptr {
20155 vp := rv2i(rv).(*map[float32]uint8)
20156 if v, changed := fastpathTV.DecMapFloat32Uint8V(*vp, true, d); changed {
20157 *vp = v
20158 }
20159 return
20160 }
20161 fastpathTV.DecMapFloat32Uint8V(rv2i(rv).(map[float32]uint8), false, d)
20162 }
20163 func (f fastpathT) DecMapFloat32Uint8X(vp *map[float32]uint8, d *Decoder) {
20164 if v, changed := f.DecMapFloat32Uint8V(*vp, true, d); changed {
20165 *vp = v
20166 }
20167 }
20168 func (_ fastpathT) DecMapFloat32Uint8V(v map[float32]uint8, canChange bool,
20169 d *Decoder) (_ map[float32]uint8, changed bool) {
20170 dd, esep := d.d, d.hh.hasElemSeparators()
20171
20172 containerLen := dd.ReadMapStart()
20173 if canChange && v == nil {
20174 xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
20175 v = make(map[float32]uint8, xlen)
20176 changed = true
20177 }
20178 if containerLen == 0 {
20179 dd.ReadMapEnd()
20180 return v, changed
20181 }
20182
20183 var mk float32
20184 var mv uint8
20185 hasLen := containerLen > 0
20186 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
20187 if esep {
20188 dd.ReadMapElemKey()
20189 }
20190 mk = float32(dd.DecodeFloat(true))
20191 if esep {
20192 dd.ReadMapElemValue()
20193 }
20194 if dd.TryDecodeAsNil() {
20195 if d.h.DeleteOnNilMapValue {
20196 delete(v, mk)
20197 } else {
20198 v[mk] = 0
20199 }
20200 continue
20201 }
20202 mv = uint8(dd.DecodeUint(8))
20203 if v != nil {
20204 v[mk] = mv
20205 }
20206 }
20207 dd.ReadMapEnd()
20208 return v, changed
20209 }
20210
20211 func (d *Decoder) fastpathDecMapFloat32Uint16R(f *codecFnInfo, rv reflect.Value) {
20212 if rv.Kind() == reflect.Ptr {
20213 vp := rv2i(rv).(*map[float32]uint16)
20214 if v, changed := fastpathTV.DecMapFloat32Uint16V(*vp, true, d); changed {
20215 *vp = v
20216 }
20217 return
20218 }
20219 fastpathTV.DecMapFloat32Uint16V(rv2i(rv).(map[float32]uint16), false, d)
20220 }
20221 func (f fastpathT) DecMapFloat32Uint16X(vp *map[float32]uint16, d *Decoder) {
20222 if v, changed := f.DecMapFloat32Uint16V(*vp, true, d); changed {
20223 *vp = v
20224 }
20225 }
20226 func (_ fastpathT) DecMapFloat32Uint16V(v map[float32]uint16, canChange bool,
20227 d *Decoder) (_ map[float32]uint16, changed bool) {
20228 dd, esep := d.d, d.hh.hasElemSeparators()
20229
20230 containerLen := dd.ReadMapStart()
20231 if canChange && v == nil {
20232 xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
20233 v = make(map[float32]uint16, xlen)
20234 changed = true
20235 }
20236 if containerLen == 0 {
20237 dd.ReadMapEnd()
20238 return v, changed
20239 }
20240
20241 var mk float32
20242 var mv uint16
20243 hasLen := containerLen > 0
20244 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
20245 if esep {
20246 dd.ReadMapElemKey()
20247 }
20248 mk = float32(dd.DecodeFloat(true))
20249 if esep {
20250 dd.ReadMapElemValue()
20251 }
20252 if dd.TryDecodeAsNil() {
20253 if d.h.DeleteOnNilMapValue {
20254 delete(v, mk)
20255 } else {
20256 v[mk] = 0
20257 }
20258 continue
20259 }
20260 mv = uint16(dd.DecodeUint(16))
20261 if v != nil {
20262 v[mk] = mv
20263 }
20264 }
20265 dd.ReadMapEnd()
20266 return v, changed
20267 }
20268
20269 func (d *Decoder) fastpathDecMapFloat32Uint32R(f *codecFnInfo, rv reflect.Value) {
20270 if rv.Kind() == reflect.Ptr {
20271 vp := rv2i(rv).(*map[float32]uint32)
20272 if v, changed := fastpathTV.DecMapFloat32Uint32V(*vp, true, d); changed {
20273 *vp = v
20274 }
20275 return
20276 }
20277 fastpathTV.DecMapFloat32Uint32V(rv2i(rv).(map[float32]uint32), false, d)
20278 }
20279 func (f fastpathT) DecMapFloat32Uint32X(vp *map[float32]uint32, d *Decoder) {
20280 if v, changed := f.DecMapFloat32Uint32V(*vp, true, d); changed {
20281 *vp = v
20282 }
20283 }
20284 func (_ fastpathT) DecMapFloat32Uint32V(v map[float32]uint32, canChange bool,
20285 d *Decoder) (_ map[float32]uint32, changed bool) {
20286 dd, esep := d.d, d.hh.hasElemSeparators()
20287
20288 containerLen := dd.ReadMapStart()
20289 if canChange && v == nil {
20290 xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
20291 v = make(map[float32]uint32, xlen)
20292 changed = true
20293 }
20294 if containerLen == 0 {
20295 dd.ReadMapEnd()
20296 return v, changed
20297 }
20298
20299 var mk float32
20300 var mv uint32
20301 hasLen := containerLen > 0
20302 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
20303 if esep {
20304 dd.ReadMapElemKey()
20305 }
20306 mk = float32(dd.DecodeFloat(true))
20307 if esep {
20308 dd.ReadMapElemValue()
20309 }
20310 if dd.TryDecodeAsNil() {
20311 if d.h.DeleteOnNilMapValue {
20312 delete(v, mk)
20313 } else {
20314 v[mk] = 0
20315 }
20316 continue
20317 }
20318 mv = uint32(dd.DecodeUint(32))
20319 if v != nil {
20320 v[mk] = mv
20321 }
20322 }
20323 dd.ReadMapEnd()
20324 return v, changed
20325 }
20326
20327 func (d *Decoder) fastpathDecMapFloat32Uint64R(f *codecFnInfo, rv reflect.Value) {
20328 if rv.Kind() == reflect.Ptr {
20329 vp := rv2i(rv).(*map[float32]uint64)
20330 if v, changed := fastpathTV.DecMapFloat32Uint64V(*vp, true, d); changed {
20331 *vp = v
20332 }
20333 return
20334 }
20335 fastpathTV.DecMapFloat32Uint64V(rv2i(rv).(map[float32]uint64), false, d)
20336 }
20337 func (f fastpathT) DecMapFloat32Uint64X(vp *map[float32]uint64, d *Decoder) {
20338 if v, changed := f.DecMapFloat32Uint64V(*vp, true, d); changed {
20339 *vp = v
20340 }
20341 }
20342 func (_ fastpathT) DecMapFloat32Uint64V(v map[float32]uint64, canChange bool,
20343 d *Decoder) (_ map[float32]uint64, changed bool) {
20344 dd, esep := d.d, d.hh.hasElemSeparators()
20345
20346 containerLen := dd.ReadMapStart()
20347 if canChange && v == nil {
20348 xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
20349 v = make(map[float32]uint64, xlen)
20350 changed = true
20351 }
20352 if containerLen == 0 {
20353 dd.ReadMapEnd()
20354 return v, changed
20355 }
20356
20357 var mk float32
20358 var mv uint64
20359 hasLen := containerLen > 0
20360 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
20361 if esep {
20362 dd.ReadMapElemKey()
20363 }
20364 mk = float32(dd.DecodeFloat(true))
20365 if esep {
20366 dd.ReadMapElemValue()
20367 }
20368 if dd.TryDecodeAsNil() {
20369 if d.h.DeleteOnNilMapValue {
20370 delete(v, mk)
20371 } else {
20372 v[mk] = 0
20373 }
20374 continue
20375 }
20376 mv = dd.DecodeUint(64)
20377 if v != nil {
20378 v[mk] = mv
20379 }
20380 }
20381 dd.ReadMapEnd()
20382 return v, changed
20383 }
20384
20385 func (d *Decoder) fastpathDecMapFloat32UintptrR(f *codecFnInfo, rv reflect.Value) {
20386 if rv.Kind() == reflect.Ptr {
20387 vp := rv2i(rv).(*map[float32]uintptr)
20388 if v, changed := fastpathTV.DecMapFloat32UintptrV(*vp, true, d); changed {
20389 *vp = v
20390 }
20391 return
20392 }
20393 fastpathTV.DecMapFloat32UintptrV(rv2i(rv).(map[float32]uintptr), false, d)
20394 }
20395 func (f fastpathT) DecMapFloat32UintptrX(vp *map[float32]uintptr, d *Decoder) {
20396 if v, changed := f.DecMapFloat32UintptrV(*vp, true, d); changed {
20397 *vp = v
20398 }
20399 }
20400 func (_ fastpathT) DecMapFloat32UintptrV(v map[float32]uintptr, canChange bool,
20401 d *Decoder) (_ map[float32]uintptr, changed bool) {
20402 dd, esep := d.d, d.hh.hasElemSeparators()
20403
20404 containerLen := dd.ReadMapStart()
20405 if canChange && v == nil {
20406 xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
20407 v = make(map[float32]uintptr, xlen)
20408 changed = true
20409 }
20410 if containerLen == 0 {
20411 dd.ReadMapEnd()
20412 return v, changed
20413 }
20414
20415 var mk float32
20416 var mv uintptr
20417 hasLen := containerLen > 0
20418 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
20419 if esep {
20420 dd.ReadMapElemKey()
20421 }
20422 mk = float32(dd.DecodeFloat(true))
20423 if esep {
20424 dd.ReadMapElemValue()
20425 }
20426 if dd.TryDecodeAsNil() {
20427 if d.h.DeleteOnNilMapValue {
20428 delete(v, mk)
20429 } else {
20430 v[mk] = 0
20431 }
20432 continue
20433 }
20434 mv = uintptr(dd.DecodeUint(uintBitsize))
20435 if v != nil {
20436 v[mk] = mv
20437 }
20438 }
20439 dd.ReadMapEnd()
20440 return v, changed
20441 }
20442
20443 func (d *Decoder) fastpathDecMapFloat32IntR(f *codecFnInfo, rv reflect.Value) {
20444 if rv.Kind() == reflect.Ptr {
20445 vp := rv2i(rv).(*map[float32]int)
20446 if v, changed := fastpathTV.DecMapFloat32IntV(*vp, true, d); changed {
20447 *vp = v
20448 }
20449 return
20450 }
20451 fastpathTV.DecMapFloat32IntV(rv2i(rv).(map[float32]int), false, d)
20452 }
20453 func (f fastpathT) DecMapFloat32IntX(vp *map[float32]int, d *Decoder) {
20454 if v, changed := f.DecMapFloat32IntV(*vp, true, d); changed {
20455 *vp = v
20456 }
20457 }
20458 func (_ fastpathT) DecMapFloat32IntV(v map[float32]int, canChange bool,
20459 d *Decoder) (_ map[float32]int, changed bool) {
20460 dd, esep := d.d, d.hh.hasElemSeparators()
20461
20462 containerLen := dd.ReadMapStart()
20463 if canChange && v == nil {
20464 xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
20465 v = make(map[float32]int, xlen)
20466 changed = true
20467 }
20468 if containerLen == 0 {
20469 dd.ReadMapEnd()
20470 return v, changed
20471 }
20472
20473 var mk float32
20474 var mv int
20475 hasLen := containerLen > 0
20476 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
20477 if esep {
20478 dd.ReadMapElemKey()
20479 }
20480 mk = float32(dd.DecodeFloat(true))
20481 if esep {
20482 dd.ReadMapElemValue()
20483 }
20484 if dd.TryDecodeAsNil() {
20485 if d.h.DeleteOnNilMapValue {
20486 delete(v, mk)
20487 } else {
20488 v[mk] = 0
20489 }
20490 continue
20491 }
20492 mv = int(dd.DecodeInt(intBitsize))
20493 if v != nil {
20494 v[mk] = mv
20495 }
20496 }
20497 dd.ReadMapEnd()
20498 return v, changed
20499 }
20500
20501 func (d *Decoder) fastpathDecMapFloat32Int8R(f *codecFnInfo, rv reflect.Value) {
20502 if rv.Kind() == reflect.Ptr {
20503 vp := rv2i(rv).(*map[float32]int8)
20504 if v, changed := fastpathTV.DecMapFloat32Int8V(*vp, true, d); changed {
20505 *vp = v
20506 }
20507 return
20508 }
20509 fastpathTV.DecMapFloat32Int8V(rv2i(rv).(map[float32]int8), false, d)
20510 }
20511 func (f fastpathT) DecMapFloat32Int8X(vp *map[float32]int8, d *Decoder) {
20512 if v, changed := f.DecMapFloat32Int8V(*vp, true, d); changed {
20513 *vp = v
20514 }
20515 }
20516 func (_ fastpathT) DecMapFloat32Int8V(v map[float32]int8, canChange bool,
20517 d *Decoder) (_ map[float32]int8, changed bool) {
20518 dd, esep := d.d, d.hh.hasElemSeparators()
20519
20520 containerLen := dd.ReadMapStart()
20521 if canChange && v == nil {
20522 xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
20523 v = make(map[float32]int8, xlen)
20524 changed = true
20525 }
20526 if containerLen == 0 {
20527 dd.ReadMapEnd()
20528 return v, changed
20529 }
20530
20531 var mk float32
20532 var mv int8
20533 hasLen := containerLen > 0
20534 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
20535 if esep {
20536 dd.ReadMapElemKey()
20537 }
20538 mk = float32(dd.DecodeFloat(true))
20539 if esep {
20540 dd.ReadMapElemValue()
20541 }
20542 if dd.TryDecodeAsNil() {
20543 if d.h.DeleteOnNilMapValue {
20544 delete(v, mk)
20545 } else {
20546 v[mk] = 0
20547 }
20548 continue
20549 }
20550 mv = int8(dd.DecodeInt(8))
20551 if v != nil {
20552 v[mk] = mv
20553 }
20554 }
20555 dd.ReadMapEnd()
20556 return v, changed
20557 }
20558
20559 func (d *Decoder) fastpathDecMapFloat32Int16R(f *codecFnInfo, rv reflect.Value) {
20560 if rv.Kind() == reflect.Ptr {
20561 vp := rv2i(rv).(*map[float32]int16)
20562 if v, changed := fastpathTV.DecMapFloat32Int16V(*vp, true, d); changed {
20563 *vp = v
20564 }
20565 return
20566 }
20567 fastpathTV.DecMapFloat32Int16V(rv2i(rv).(map[float32]int16), false, d)
20568 }
20569 func (f fastpathT) DecMapFloat32Int16X(vp *map[float32]int16, d *Decoder) {
20570 if v, changed := f.DecMapFloat32Int16V(*vp, true, d); changed {
20571 *vp = v
20572 }
20573 }
20574 func (_ fastpathT) DecMapFloat32Int16V(v map[float32]int16, canChange bool,
20575 d *Decoder) (_ map[float32]int16, changed bool) {
20576 dd, esep := d.d, d.hh.hasElemSeparators()
20577
20578 containerLen := dd.ReadMapStart()
20579 if canChange && v == nil {
20580 xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
20581 v = make(map[float32]int16, xlen)
20582 changed = true
20583 }
20584 if containerLen == 0 {
20585 dd.ReadMapEnd()
20586 return v, changed
20587 }
20588
20589 var mk float32
20590 var mv int16
20591 hasLen := containerLen > 0
20592 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
20593 if esep {
20594 dd.ReadMapElemKey()
20595 }
20596 mk = float32(dd.DecodeFloat(true))
20597 if esep {
20598 dd.ReadMapElemValue()
20599 }
20600 if dd.TryDecodeAsNil() {
20601 if d.h.DeleteOnNilMapValue {
20602 delete(v, mk)
20603 } else {
20604 v[mk] = 0
20605 }
20606 continue
20607 }
20608 mv = int16(dd.DecodeInt(16))
20609 if v != nil {
20610 v[mk] = mv
20611 }
20612 }
20613 dd.ReadMapEnd()
20614 return v, changed
20615 }
20616
20617 func (d *Decoder) fastpathDecMapFloat32Int32R(f *codecFnInfo, rv reflect.Value) {
20618 if rv.Kind() == reflect.Ptr {
20619 vp := rv2i(rv).(*map[float32]int32)
20620 if v, changed := fastpathTV.DecMapFloat32Int32V(*vp, true, d); changed {
20621 *vp = v
20622 }
20623 return
20624 }
20625 fastpathTV.DecMapFloat32Int32V(rv2i(rv).(map[float32]int32), false, d)
20626 }
20627 func (f fastpathT) DecMapFloat32Int32X(vp *map[float32]int32, d *Decoder) {
20628 if v, changed := f.DecMapFloat32Int32V(*vp, true, d); changed {
20629 *vp = v
20630 }
20631 }
20632 func (_ fastpathT) DecMapFloat32Int32V(v map[float32]int32, canChange bool,
20633 d *Decoder) (_ map[float32]int32, changed bool) {
20634 dd, esep := d.d, d.hh.hasElemSeparators()
20635
20636 containerLen := dd.ReadMapStart()
20637 if canChange && v == nil {
20638 xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
20639 v = make(map[float32]int32, xlen)
20640 changed = true
20641 }
20642 if containerLen == 0 {
20643 dd.ReadMapEnd()
20644 return v, changed
20645 }
20646
20647 var mk float32
20648 var mv int32
20649 hasLen := containerLen > 0
20650 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
20651 if esep {
20652 dd.ReadMapElemKey()
20653 }
20654 mk = float32(dd.DecodeFloat(true))
20655 if esep {
20656 dd.ReadMapElemValue()
20657 }
20658 if dd.TryDecodeAsNil() {
20659 if d.h.DeleteOnNilMapValue {
20660 delete(v, mk)
20661 } else {
20662 v[mk] = 0
20663 }
20664 continue
20665 }
20666 mv = int32(dd.DecodeInt(32))
20667 if v != nil {
20668 v[mk] = mv
20669 }
20670 }
20671 dd.ReadMapEnd()
20672 return v, changed
20673 }
20674
20675 func (d *Decoder) fastpathDecMapFloat32Int64R(f *codecFnInfo, rv reflect.Value) {
20676 if rv.Kind() == reflect.Ptr {
20677 vp := rv2i(rv).(*map[float32]int64)
20678 if v, changed := fastpathTV.DecMapFloat32Int64V(*vp, true, d); changed {
20679 *vp = v
20680 }
20681 return
20682 }
20683 fastpathTV.DecMapFloat32Int64V(rv2i(rv).(map[float32]int64), false, d)
20684 }
20685 func (f fastpathT) DecMapFloat32Int64X(vp *map[float32]int64, d *Decoder) {
20686 if v, changed := f.DecMapFloat32Int64V(*vp, true, d); changed {
20687 *vp = v
20688 }
20689 }
20690 func (_ fastpathT) DecMapFloat32Int64V(v map[float32]int64, canChange bool,
20691 d *Decoder) (_ map[float32]int64, changed bool) {
20692 dd, esep := d.d, d.hh.hasElemSeparators()
20693
20694 containerLen := dd.ReadMapStart()
20695 if canChange && v == nil {
20696 xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
20697 v = make(map[float32]int64, xlen)
20698 changed = true
20699 }
20700 if containerLen == 0 {
20701 dd.ReadMapEnd()
20702 return v, changed
20703 }
20704
20705 var mk float32
20706 var mv int64
20707 hasLen := containerLen > 0
20708 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
20709 if esep {
20710 dd.ReadMapElemKey()
20711 }
20712 mk = float32(dd.DecodeFloat(true))
20713 if esep {
20714 dd.ReadMapElemValue()
20715 }
20716 if dd.TryDecodeAsNil() {
20717 if d.h.DeleteOnNilMapValue {
20718 delete(v, mk)
20719 } else {
20720 v[mk] = 0
20721 }
20722 continue
20723 }
20724 mv = dd.DecodeInt(64)
20725 if v != nil {
20726 v[mk] = mv
20727 }
20728 }
20729 dd.ReadMapEnd()
20730 return v, changed
20731 }
20732
20733 func (d *Decoder) fastpathDecMapFloat32Float32R(f *codecFnInfo, rv reflect.Value) {
20734 if rv.Kind() == reflect.Ptr {
20735 vp := rv2i(rv).(*map[float32]float32)
20736 if v, changed := fastpathTV.DecMapFloat32Float32V(*vp, true, d); changed {
20737 *vp = v
20738 }
20739 return
20740 }
20741 fastpathTV.DecMapFloat32Float32V(rv2i(rv).(map[float32]float32), false, d)
20742 }
20743 func (f fastpathT) DecMapFloat32Float32X(vp *map[float32]float32, d *Decoder) {
20744 if v, changed := f.DecMapFloat32Float32V(*vp, true, d); changed {
20745 *vp = v
20746 }
20747 }
20748 func (_ fastpathT) DecMapFloat32Float32V(v map[float32]float32, canChange bool,
20749 d *Decoder) (_ map[float32]float32, changed bool) {
20750 dd, esep := d.d, d.hh.hasElemSeparators()
20751
20752 containerLen := dd.ReadMapStart()
20753 if canChange && v == nil {
20754 xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
20755 v = make(map[float32]float32, xlen)
20756 changed = true
20757 }
20758 if containerLen == 0 {
20759 dd.ReadMapEnd()
20760 return v, changed
20761 }
20762
20763 var mk float32
20764 var mv float32
20765 hasLen := containerLen > 0
20766 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
20767 if esep {
20768 dd.ReadMapElemKey()
20769 }
20770 mk = float32(dd.DecodeFloat(true))
20771 if esep {
20772 dd.ReadMapElemValue()
20773 }
20774 if dd.TryDecodeAsNil() {
20775 if d.h.DeleteOnNilMapValue {
20776 delete(v, mk)
20777 } else {
20778 v[mk] = 0
20779 }
20780 continue
20781 }
20782 mv = float32(dd.DecodeFloat(true))
20783 if v != nil {
20784 v[mk] = mv
20785 }
20786 }
20787 dd.ReadMapEnd()
20788 return v, changed
20789 }
20790
20791 func (d *Decoder) fastpathDecMapFloat32Float64R(f *codecFnInfo, rv reflect.Value) {
20792 if rv.Kind() == reflect.Ptr {
20793 vp := rv2i(rv).(*map[float32]float64)
20794 if v, changed := fastpathTV.DecMapFloat32Float64V(*vp, true, d); changed {
20795 *vp = v
20796 }
20797 return
20798 }
20799 fastpathTV.DecMapFloat32Float64V(rv2i(rv).(map[float32]float64), false, d)
20800 }
20801 func (f fastpathT) DecMapFloat32Float64X(vp *map[float32]float64, d *Decoder) {
20802 if v, changed := f.DecMapFloat32Float64V(*vp, true, d); changed {
20803 *vp = v
20804 }
20805 }
20806 func (_ fastpathT) DecMapFloat32Float64V(v map[float32]float64, canChange bool,
20807 d *Decoder) (_ map[float32]float64, changed bool) {
20808 dd, esep := d.d, d.hh.hasElemSeparators()
20809
20810 containerLen := dd.ReadMapStart()
20811 if canChange && v == nil {
20812 xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
20813 v = make(map[float32]float64, xlen)
20814 changed = true
20815 }
20816 if containerLen == 0 {
20817 dd.ReadMapEnd()
20818 return v, changed
20819 }
20820
20821 var mk float32
20822 var mv float64
20823 hasLen := containerLen > 0
20824 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
20825 if esep {
20826 dd.ReadMapElemKey()
20827 }
20828 mk = float32(dd.DecodeFloat(true))
20829 if esep {
20830 dd.ReadMapElemValue()
20831 }
20832 if dd.TryDecodeAsNil() {
20833 if d.h.DeleteOnNilMapValue {
20834 delete(v, mk)
20835 } else {
20836 v[mk] = 0
20837 }
20838 continue
20839 }
20840 mv = dd.DecodeFloat(false)
20841 if v != nil {
20842 v[mk] = mv
20843 }
20844 }
20845 dd.ReadMapEnd()
20846 return v, changed
20847 }
20848
20849 func (d *Decoder) fastpathDecMapFloat32BoolR(f *codecFnInfo, rv reflect.Value) {
20850 if rv.Kind() == reflect.Ptr {
20851 vp := rv2i(rv).(*map[float32]bool)
20852 if v, changed := fastpathTV.DecMapFloat32BoolV(*vp, true, d); changed {
20853 *vp = v
20854 }
20855 return
20856 }
20857 fastpathTV.DecMapFloat32BoolV(rv2i(rv).(map[float32]bool), false, d)
20858 }
20859 func (f fastpathT) DecMapFloat32BoolX(vp *map[float32]bool, d *Decoder) {
20860 if v, changed := f.DecMapFloat32BoolV(*vp, true, d); changed {
20861 *vp = v
20862 }
20863 }
20864 func (_ fastpathT) DecMapFloat32BoolV(v map[float32]bool, canChange bool,
20865 d *Decoder) (_ map[float32]bool, changed bool) {
20866 dd, esep := d.d, d.hh.hasElemSeparators()
20867
20868 containerLen := dd.ReadMapStart()
20869 if canChange && v == nil {
20870 xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
20871 v = make(map[float32]bool, xlen)
20872 changed = true
20873 }
20874 if containerLen == 0 {
20875 dd.ReadMapEnd()
20876 return v, changed
20877 }
20878
20879 var mk float32
20880 var mv bool
20881 hasLen := containerLen > 0
20882 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
20883 if esep {
20884 dd.ReadMapElemKey()
20885 }
20886 mk = float32(dd.DecodeFloat(true))
20887 if esep {
20888 dd.ReadMapElemValue()
20889 }
20890 if dd.TryDecodeAsNil() {
20891 if d.h.DeleteOnNilMapValue {
20892 delete(v, mk)
20893 } else {
20894 v[mk] = false
20895 }
20896 continue
20897 }
20898 mv = dd.DecodeBool()
20899 if v != nil {
20900 v[mk] = mv
20901 }
20902 }
20903 dd.ReadMapEnd()
20904 return v, changed
20905 }
20906
20907 func (d *Decoder) fastpathDecMapFloat64IntfR(f *codecFnInfo, rv reflect.Value) {
20908 if rv.Kind() == reflect.Ptr {
20909 vp := rv2i(rv).(*map[float64]interface{})
20910 if v, changed := fastpathTV.DecMapFloat64IntfV(*vp, true, d); changed {
20911 *vp = v
20912 }
20913 return
20914 }
20915 fastpathTV.DecMapFloat64IntfV(rv2i(rv).(map[float64]interface{}), false, d)
20916 }
20917 func (f fastpathT) DecMapFloat64IntfX(vp *map[float64]interface{}, d *Decoder) {
20918 if v, changed := f.DecMapFloat64IntfV(*vp, true, d); changed {
20919 *vp = v
20920 }
20921 }
20922 func (_ fastpathT) DecMapFloat64IntfV(v map[float64]interface{}, canChange bool,
20923 d *Decoder) (_ map[float64]interface{}, changed bool) {
20924 dd, esep := d.d, d.hh.hasElemSeparators()
20925
20926 containerLen := dd.ReadMapStart()
20927 if canChange && v == nil {
20928 xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
20929 v = make(map[float64]interface{}, xlen)
20930 changed = true
20931 }
20932 if containerLen == 0 {
20933 dd.ReadMapEnd()
20934 return v, changed
20935 }
20936 mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
20937 var mk float64
20938 var mv interface{}
20939 hasLen := containerLen > 0
20940 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
20941 if esep {
20942 dd.ReadMapElemKey()
20943 }
20944 mk = dd.DecodeFloat(false)
20945 if esep {
20946 dd.ReadMapElemValue()
20947 }
20948 if dd.TryDecodeAsNil() {
20949 if d.h.DeleteOnNilMapValue {
20950 delete(v, mk)
20951 } else {
20952 v[mk] = nil
20953 }
20954 continue
20955 }
20956 if mapGet {
20957 mv = v[mk]
20958 } else {
20959 mv = nil
20960 }
20961 d.decode(&mv)
20962 if v != nil {
20963 v[mk] = mv
20964 }
20965 }
20966 dd.ReadMapEnd()
20967 return v, changed
20968 }
20969
20970 func (d *Decoder) fastpathDecMapFloat64StringR(f *codecFnInfo, rv reflect.Value) {
20971 if rv.Kind() == reflect.Ptr {
20972 vp := rv2i(rv).(*map[float64]string)
20973 if v, changed := fastpathTV.DecMapFloat64StringV(*vp, true, d); changed {
20974 *vp = v
20975 }
20976 return
20977 }
20978 fastpathTV.DecMapFloat64StringV(rv2i(rv).(map[float64]string), false, d)
20979 }
20980 func (f fastpathT) DecMapFloat64StringX(vp *map[float64]string, d *Decoder) {
20981 if v, changed := f.DecMapFloat64StringV(*vp, true, d); changed {
20982 *vp = v
20983 }
20984 }
20985 func (_ fastpathT) DecMapFloat64StringV(v map[float64]string, canChange bool,
20986 d *Decoder) (_ map[float64]string, changed bool) {
20987 dd, esep := d.d, d.hh.hasElemSeparators()
20988
20989 containerLen := dd.ReadMapStart()
20990 if canChange && v == nil {
20991 xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
20992 v = make(map[float64]string, xlen)
20993 changed = true
20994 }
20995 if containerLen == 0 {
20996 dd.ReadMapEnd()
20997 return v, changed
20998 }
20999
21000 var mk float64
21001 var mv string
21002 hasLen := containerLen > 0
21003 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
21004 if esep {
21005 dd.ReadMapElemKey()
21006 }
21007 mk = dd.DecodeFloat(false)
21008 if esep {
21009 dd.ReadMapElemValue()
21010 }
21011 if dd.TryDecodeAsNil() {
21012 if d.h.DeleteOnNilMapValue {
21013 delete(v, mk)
21014 } else {
21015 v[mk] = ""
21016 }
21017 continue
21018 }
21019 mv = dd.DecodeString()
21020 if v != nil {
21021 v[mk] = mv
21022 }
21023 }
21024 dd.ReadMapEnd()
21025 return v, changed
21026 }
21027
21028 func (d *Decoder) fastpathDecMapFloat64UintR(f *codecFnInfo, rv reflect.Value) {
21029 if rv.Kind() == reflect.Ptr {
21030 vp := rv2i(rv).(*map[float64]uint)
21031 if v, changed := fastpathTV.DecMapFloat64UintV(*vp, true, d); changed {
21032 *vp = v
21033 }
21034 return
21035 }
21036 fastpathTV.DecMapFloat64UintV(rv2i(rv).(map[float64]uint), false, d)
21037 }
21038 func (f fastpathT) DecMapFloat64UintX(vp *map[float64]uint, d *Decoder) {
21039 if v, changed := f.DecMapFloat64UintV(*vp, true, d); changed {
21040 *vp = v
21041 }
21042 }
21043 func (_ fastpathT) DecMapFloat64UintV(v map[float64]uint, canChange bool,
21044 d *Decoder) (_ map[float64]uint, changed bool) {
21045 dd, esep := d.d, d.hh.hasElemSeparators()
21046
21047 containerLen := dd.ReadMapStart()
21048 if canChange && v == nil {
21049 xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
21050 v = make(map[float64]uint, xlen)
21051 changed = true
21052 }
21053 if containerLen == 0 {
21054 dd.ReadMapEnd()
21055 return v, changed
21056 }
21057
21058 var mk float64
21059 var mv uint
21060 hasLen := containerLen > 0
21061 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
21062 if esep {
21063 dd.ReadMapElemKey()
21064 }
21065 mk = dd.DecodeFloat(false)
21066 if esep {
21067 dd.ReadMapElemValue()
21068 }
21069 if dd.TryDecodeAsNil() {
21070 if d.h.DeleteOnNilMapValue {
21071 delete(v, mk)
21072 } else {
21073 v[mk] = 0
21074 }
21075 continue
21076 }
21077 mv = uint(dd.DecodeUint(uintBitsize))
21078 if v != nil {
21079 v[mk] = mv
21080 }
21081 }
21082 dd.ReadMapEnd()
21083 return v, changed
21084 }
21085
21086 func (d *Decoder) fastpathDecMapFloat64Uint8R(f *codecFnInfo, rv reflect.Value) {
21087 if rv.Kind() == reflect.Ptr {
21088 vp := rv2i(rv).(*map[float64]uint8)
21089 if v, changed := fastpathTV.DecMapFloat64Uint8V(*vp, true, d); changed {
21090 *vp = v
21091 }
21092 return
21093 }
21094 fastpathTV.DecMapFloat64Uint8V(rv2i(rv).(map[float64]uint8), false, d)
21095 }
21096 func (f fastpathT) DecMapFloat64Uint8X(vp *map[float64]uint8, d *Decoder) {
21097 if v, changed := f.DecMapFloat64Uint8V(*vp, true, d); changed {
21098 *vp = v
21099 }
21100 }
21101 func (_ fastpathT) DecMapFloat64Uint8V(v map[float64]uint8, canChange bool,
21102 d *Decoder) (_ map[float64]uint8, changed bool) {
21103 dd, esep := d.d, d.hh.hasElemSeparators()
21104
21105 containerLen := dd.ReadMapStart()
21106 if canChange && v == nil {
21107 xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
21108 v = make(map[float64]uint8, xlen)
21109 changed = true
21110 }
21111 if containerLen == 0 {
21112 dd.ReadMapEnd()
21113 return v, changed
21114 }
21115
21116 var mk float64
21117 var mv uint8
21118 hasLen := containerLen > 0
21119 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
21120 if esep {
21121 dd.ReadMapElemKey()
21122 }
21123 mk = dd.DecodeFloat(false)
21124 if esep {
21125 dd.ReadMapElemValue()
21126 }
21127 if dd.TryDecodeAsNil() {
21128 if d.h.DeleteOnNilMapValue {
21129 delete(v, mk)
21130 } else {
21131 v[mk] = 0
21132 }
21133 continue
21134 }
21135 mv = uint8(dd.DecodeUint(8))
21136 if v != nil {
21137 v[mk] = mv
21138 }
21139 }
21140 dd.ReadMapEnd()
21141 return v, changed
21142 }
21143
21144 func (d *Decoder) fastpathDecMapFloat64Uint16R(f *codecFnInfo, rv reflect.Value) {
21145 if rv.Kind() == reflect.Ptr {
21146 vp := rv2i(rv).(*map[float64]uint16)
21147 if v, changed := fastpathTV.DecMapFloat64Uint16V(*vp, true, d); changed {
21148 *vp = v
21149 }
21150 return
21151 }
21152 fastpathTV.DecMapFloat64Uint16V(rv2i(rv).(map[float64]uint16), false, d)
21153 }
21154 func (f fastpathT) DecMapFloat64Uint16X(vp *map[float64]uint16, d *Decoder) {
21155 if v, changed := f.DecMapFloat64Uint16V(*vp, true, d); changed {
21156 *vp = v
21157 }
21158 }
21159 func (_ fastpathT) DecMapFloat64Uint16V(v map[float64]uint16, canChange bool,
21160 d *Decoder) (_ map[float64]uint16, changed bool) {
21161 dd, esep := d.d, d.hh.hasElemSeparators()
21162
21163 containerLen := dd.ReadMapStart()
21164 if canChange && v == nil {
21165 xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
21166 v = make(map[float64]uint16, xlen)
21167 changed = true
21168 }
21169 if containerLen == 0 {
21170 dd.ReadMapEnd()
21171 return v, changed
21172 }
21173
21174 var mk float64
21175 var mv uint16
21176 hasLen := containerLen > 0
21177 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
21178 if esep {
21179 dd.ReadMapElemKey()
21180 }
21181 mk = dd.DecodeFloat(false)
21182 if esep {
21183 dd.ReadMapElemValue()
21184 }
21185 if dd.TryDecodeAsNil() {
21186 if d.h.DeleteOnNilMapValue {
21187 delete(v, mk)
21188 } else {
21189 v[mk] = 0
21190 }
21191 continue
21192 }
21193 mv = uint16(dd.DecodeUint(16))
21194 if v != nil {
21195 v[mk] = mv
21196 }
21197 }
21198 dd.ReadMapEnd()
21199 return v, changed
21200 }
21201
21202 func (d *Decoder) fastpathDecMapFloat64Uint32R(f *codecFnInfo, rv reflect.Value) {
21203 if rv.Kind() == reflect.Ptr {
21204 vp := rv2i(rv).(*map[float64]uint32)
21205 if v, changed := fastpathTV.DecMapFloat64Uint32V(*vp, true, d); changed {
21206 *vp = v
21207 }
21208 return
21209 }
21210 fastpathTV.DecMapFloat64Uint32V(rv2i(rv).(map[float64]uint32), false, d)
21211 }
21212 func (f fastpathT) DecMapFloat64Uint32X(vp *map[float64]uint32, d *Decoder) {
21213 if v, changed := f.DecMapFloat64Uint32V(*vp, true, d); changed {
21214 *vp = v
21215 }
21216 }
21217 func (_ fastpathT) DecMapFloat64Uint32V(v map[float64]uint32, canChange bool,
21218 d *Decoder) (_ map[float64]uint32, changed bool) {
21219 dd, esep := d.d, d.hh.hasElemSeparators()
21220
21221 containerLen := dd.ReadMapStart()
21222 if canChange && v == nil {
21223 xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
21224 v = make(map[float64]uint32, xlen)
21225 changed = true
21226 }
21227 if containerLen == 0 {
21228 dd.ReadMapEnd()
21229 return v, changed
21230 }
21231
21232 var mk float64
21233 var mv uint32
21234 hasLen := containerLen > 0
21235 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
21236 if esep {
21237 dd.ReadMapElemKey()
21238 }
21239 mk = dd.DecodeFloat(false)
21240 if esep {
21241 dd.ReadMapElemValue()
21242 }
21243 if dd.TryDecodeAsNil() {
21244 if d.h.DeleteOnNilMapValue {
21245 delete(v, mk)
21246 } else {
21247 v[mk] = 0
21248 }
21249 continue
21250 }
21251 mv = uint32(dd.DecodeUint(32))
21252 if v != nil {
21253 v[mk] = mv
21254 }
21255 }
21256 dd.ReadMapEnd()
21257 return v, changed
21258 }
21259
21260 func (d *Decoder) fastpathDecMapFloat64Uint64R(f *codecFnInfo, rv reflect.Value) {
21261 if rv.Kind() == reflect.Ptr {
21262 vp := rv2i(rv).(*map[float64]uint64)
21263 if v, changed := fastpathTV.DecMapFloat64Uint64V(*vp, true, d); changed {
21264 *vp = v
21265 }
21266 return
21267 }
21268 fastpathTV.DecMapFloat64Uint64V(rv2i(rv).(map[float64]uint64), false, d)
21269 }
21270 func (f fastpathT) DecMapFloat64Uint64X(vp *map[float64]uint64, d *Decoder) {
21271 if v, changed := f.DecMapFloat64Uint64V(*vp, true, d); changed {
21272 *vp = v
21273 }
21274 }
21275 func (_ fastpathT) DecMapFloat64Uint64V(v map[float64]uint64, canChange bool,
21276 d *Decoder) (_ map[float64]uint64, changed bool) {
21277 dd, esep := d.d, d.hh.hasElemSeparators()
21278
21279 containerLen := dd.ReadMapStart()
21280 if canChange && v == nil {
21281 xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
21282 v = make(map[float64]uint64, xlen)
21283 changed = true
21284 }
21285 if containerLen == 0 {
21286 dd.ReadMapEnd()
21287 return v, changed
21288 }
21289
21290 var mk float64
21291 var mv uint64
21292 hasLen := containerLen > 0
21293 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
21294 if esep {
21295 dd.ReadMapElemKey()
21296 }
21297 mk = dd.DecodeFloat(false)
21298 if esep {
21299 dd.ReadMapElemValue()
21300 }
21301 if dd.TryDecodeAsNil() {
21302 if d.h.DeleteOnNilMapValue {
21303 delete(v, mk)
21304 } else {
21305 v[mk] = 0
21306 }
21307 continue
21308 }
21309 mv = dd.DecodeUint(64)
21310 if v != nil {
21311 v[mk] = mv
21312 }
21313 }
21314 dd.ReadMapEnd()
21315 return v, changed
21316 }
21317
21318 func (d *Decoder) fastpathDecMapFloat64UintptrR(f *codecFnInfo, rv reflect.Value) {
21319 if rv.Kind() == reflect.Ptr {
21320 vp := rv2i(rv).(*map[float64]uintptr)
21321 if v, changed := fastpathTV.DecMapFloat64UintptrV(*vp, true, d); changed {
21322 *vp = v
21323 }
21324 return
21325 }
21326 fastpathTV.DecMapFloat64UintptrV(rv2i(rv).(map[float64]uintptr), false, d)
21327 }
21328 func (f fastpathT) DecMapFloat64UintptrX(vp *map[float64]uintptr, d *Decoder) {
21329 if v, changed := f.DecMapFloat64UintptrV(*vp, true, d); changed {
21330 *vp = v
21331 }
21332 }
21333 func (_ fastpathT) DecMapFloat64UintptrV(v map[float64]uintptr, canChange bool,
21334 d *Decoder) (_ map[float64]uintptr, changed bool) {
21335 dd, esep := d.d, d.hh.hasElemSeparators()
21336
21337 containerLen := dd.ReadMapStart()
21338 if canChange && v == nil {
21339 xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
21340 v = make(map[float64]uintptr, xlen)
21341 changed = true
21342 }
21343 if containerLen == 0 {
21344 dd.ReadMapEnd()
21345 return v, changed
21346 }
21347
21348 var mk float64
21349 var mv uintptr
21350 hasLen := containerLen > 0
21351 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
21352 if esep {
21353 dd.ReadMapElemKey()
21354 }
21355 mk = dd.DecodeFloat(false)
21356 if esep {
21357 dd.ReadMapElemValue()
21358 }
21359 if dd.TryDecodeAsNil() {
21360 if d.h.DeleteOnNilMapValue {
21361 delete(v, mk)
21362 } else {
21363 v[mk] = 0
21364 }
21365 continue
21366 }
21367 mv = uintptr(dd.DecodeUint(uintBitsize))
21368 if v != nil {
21369 v[mk] = mv
21370 }
21371 }
21372 dd.ReadMapEnd()
21373 return v, changed
21374 }
21375
21376 func (d *Decoder) fastpathDecMapFloat64IntR(f *codecFnInfo, rv reflect.Value) {
21377 if rv.Kind() == reflect.Ptr {
21378 vp := rv2i(rv).(*map[float64]int)
21379 if v, changed := fastpathTV.DecMapFloat64IntV(*vp, true, d); changed {
21380 *vp = v
21381 }
21382 return
21383 }
21384 fastpathTV.DecMapFloat64IntV(rv2i(rv).(map[float64]int), false, d)
21385 }
21386 func (f fastpathT) DecMapFloat64IntX(vp *map[float64]int, d *Decoder) {
21387 if v, changed := f.DecMapFloat64IntV(*vp, true, d); changed {
21388 *vp = v
21389 }
21390 }
21391 func (_ fastpathT) DecMapFloat64IntV(v map[float64]int, canChange bool,
21392 d *Decoder) (_ map[float64]int, changed bool) {
21393 dd, esep := d.d, d.hh.hasElemSeparators()
21394
21395 containerLen := dd.ReadMapStart()
21396 if canChange && v == nil {
21397 xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
21398 v = make(map[float64]int, xlen)
21399 changed = true
21400 }
21401 if containerLen == 0 {
21402 dd.ReadMapEnd()
21403 return v, changed
21404 }
21405
21406 var mk float64
21407 var mv int
21408 hasLen := containerLen > 0
21409 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
21410 if esep {
21411 dd.ReadMapElemKey()
21412 }
21413 mk = dd.DecodeFloat(false)
21414 if esep {
21415 dd.ReadMapElemValue()
21416 }
21417 if dd.TryDecodeAsNil() {
21418 if d.h.DeleteOnNilMapValue {
21419 delete(v, mk)
21420 } else {
21421 v[mk] = 0
21422 }
21423 continue
21424 }
21425 mv = int(dd.DecodeInt(intBitsize))
21426 if v != nil {
21427 v[mk] = mv
21428 }
21429 }
21430 dd.ReadMapEnd()
21431 return v, changed
21432 }
21433
21434 func (d *Decoder) fastpathDecMapFloat64Int8R(f *codecFnInfo, rv reflect.Value) {
21435 if rv.Kind() == reflect.Ptr {
21436 vp := rv2i(rv).(*map[float64]int8)
21437 if v, changed := fastpathTV.DecMapFloat64Int8V(*vp, true, d); changed {
21438 *vp = v
21439 }
21440 return
21441 }
21442 fastpathTV.DecMapFloat64Int8V(rv2i(rv).(map[float64]int8), false, d)
21443 }
21444 func (f fastpathT) DecMapFloat64Int8X(vp *map[float64]int8, d *Decoder) {
21445 if v, changed := f.DecMapFloat64Int8V(*vp, true, d); changed {
21446 *vp = v
21447 }
21448 }
21449 func (_ fastpathT) DecMapFloat64Int8V(v map[float64]int8, canChange bool,
21450 d *Decoder) (_ map[float64]int8, changed bool) {
21451 dd, esep := d.d, d.hh.hasElemSeparators()
21452
21453 containerLen := dd.ReadMapStart()
21454 if canChange && v == nil {
21455 xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
21456 v = make(map[float64]int8, xlen)
21457 changed = true
21458 }
21459 if containerLen == 0 {
21460 dd.ReadMapEnd()
21461 return v, changed
21462 }
21463
21464 var mk float64
21465 var mv int8
21466 hasLen := containerLen > 0
21467 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
21468 if esep {
21469 dd.ReadMapElemKey()
21470 }
21471 mk = dd.DecodeFloat(false)
21472 if esep {
21473 dd.ReadMapElemValue()
21474 }
21475 if dd.TryDecodeAsNil() {
21476 if d.h.DeleteOnNilMapValue {
21477 delete(v, mk)
21478 } else {
21479 v[mk] = 0
21480 }
21481 continue
21482 }
21483 mv = int8(dd.DecodeInt(8))
21484 if v != nil {
21485 v[mk] = mv
21486 }
21487 }
21488 dd.ReadMapEnd()
21489 return v, changed
21490 }
21491
21492 func (d *Decoder) fastpathDecMapFloat64Int16R(f *codecFnInfo, rv reflect.Value) {
21493 if rv.Kind() == reflect.Ptr {
21494 vp := rv2i(rv).(*map[float64]int16)
21495 if v, changed := fastpathTV.DecMapFloat64Int16V(*vp, true, d); changed {
21496 *vp = v
21497 }
21498 return
21499 }
21500 fastpathTV.DecMapFloat64Int16V(rv2i(rv).(map[float64]int16), false, d)
21501 }
21502 func (f fastpathT) DecMapFloat64Int16X(vp *map[float64]int16, d *Decoder) {
21503 if v, changed := f.DecMapFloat64Int16V(*vp, true, d); changed {
21504 *vp = v
21505 }
21506 }
21507 func (_ fastpathT) DecMapFloat64Int16V(v map[float64]int16, canChange bool,
21508 d *Decoder) (_ map[float64]int16, changed bool) {
21509 dd, esep := d.d, d.hh.hasElemSeparators()
21510
21511 containerLen := dd.ReadMapStart()
21512 if canChange && v == nil {
21513 xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
21514 v = make(map[float64]int16, xlen)
21515 changed = true
21516 }
21517 if containerLen == 0 {
21518 dd.ReadMapEnd()
21519 return v, changed
21520 }
21521
21522 var mk float64
21523 var mv int16
21524 hasLen := containerLen > 0
21525 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
21526 if esep {
21527 dd.ReadMapElemKey()
21528 }
21529 mk = dd.DecodeFloat(false)
21530 if esep {
21531 dd.ReadMapElemValue()
21532 }
21533 if dd.TryDecodeAsNil() {
21534 if d.h.DeleteOnNilMapValue {
21535 delete(v, mk)
21536 } else {
21537 v[mk] = 0
21538 }
21539 continue
21540 }
21541 mv = int16(dd.DecodeInt(16))
21542 if v != nil {
21543 v[mk] = mv
21544 }
21545 }
21546 dd.ReadMapEnd()
21547 return v, changed
21548 }
21549
21550 func (d *Decoder) fastpathDecMapFloat64Int32R(f *codecFnInfo, rv reflect.Value) {
21551 if rv.Kind() == reflect.Ptr {
21552 vp := rv2i(rv).(*map[float64]int32)
21553 if v, changed := fastpathTV.DecMapFloat64Int32V(*vp, true, d); changed {
21554 *vp = v
21555 }
21556 return
21557 }
21558 fastpathTV.DecMapFloat64Int32V(rv2i(rv).(map[float64]int32), false, d)
21559 }
21560 func (f fastpathT) DecMapFloat64Int32X(vp *map[float64]int32, d *Decoder) {
21561 if v, changed := f.DecMapFloat64Int32V(*vp, true, d); changed {
21562 *vp = v
21563 }
21564 }
21565 func (_ fastpathT) DecMapFloat64Int32V(v map[float64]int32, canChange bool,
21566 d *Decoder) (_ map[float64]int32, changed bool) {
21567 dd, esep := d.d, d.hh.hasElemSeparators()
21568
21569 containerLen := dd.ReadMapStart()
21570 if canChange && v == nil {
21571 xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
21572 v = make(map[float64]int32, xlen)
21573 changed = true
21574 }
21575 if containerLen == 0 {
21576 dd.ReadMapEnd()
21577 return v, changed
21578 }
21579
21580 var mk float64
21581 var mv int32
21582 hasLen := containerLen > 0
21583 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
21584 if esep {
21585 dd.ReadMapElemKey()
21586 }
21587 mk = dd.DecodeFloat(false)
21588 if esep {
21589 dd.ReadMapElemValue()
21590 }
21591 if dd.TryDecodeAsNil() {
21592 if d.h.DeleteOnNilMapValue {
21593 delete(v, mk)
21594 } else {
21595 v[mk] = 0
21596 }
21597 continue
21598 }
21599 mv = int32(dd.DecodeInt(32))
21600 if v != nil {
21601 v[mk] = mv
21602 }
21603 }
21604 dd.ReadMapEnd()
21605 return v, changed
21606 }
21607
21608 func (d *Decoder) fastpathDecMapFloat64Int64R(f *codecFnInfo, rv reflect.Value) {
21609 if rv.Kind() == reflect.Ptr {
21610 vp := rv2i(rv).(*map[float64]int64)
21611 if v, changed := fastpathTV.DecMapFloat64Int64V(*vp, true, d); changed {
21612 *vp = v
21613 }
21614 return
21615 }
21616 fastpathTV.DecMapFloat64Int64V(rv2i(rv).(map[float64]int64), false, d)
21617 }
21618 func (f fastpathT) DecMapFloat64Int64X(vp *map[float64]int64, d *Decoder) {
21619 if v, changed := f.DecMapFloat64Int64V(*vp, true, d); changed {
21620 *vp = v
21621 }
21622 }
21623 func (_ fastpathT) DecMapFloat64Int64V(v map[float64]int64, canChange bool,
21624 d *Decoder) (_ map[float64]int64, changed bool) {
21625 dd, esep := d.d, d.hh.hasElemSeparators()
21626
21627 containerLen := dd.ReadMapStart()
21628 if canChange && v == nil {
21629 xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
21630 v = make(map[float64]int64, xlen)
21631 changed = true
21632 }
21633 if containerLen == 0 {
21634 dd.ReadMapEnd()
21635 return v, changed
21636 }
21637
21638 var mk float64
21639 var mv int64
21640 hasLen := containerLen > 0
21641 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
21642 if esep {
21643 dd.ReadMapElemKey()
21644 }
21645 mk = dd.DecodeFloat(false)
21646 if esep {
21647 dd.ReadMapElemValue()
21648 }
21649 if dd.TryDecodeAsNil() {
21650 if d.h.DeleteOnNilMapValue {
21651 delete(v, mk)
21652 } else {
21653 v[mk] = 0
21654 }
21655 continue
21656 }
21657 mv = dd.DecodeInt(64)
21658 if v != nil {
21659 v[mk] = mv
21660 }
21661 }
21662 dd.ReadMapEnd()
21663 return v, changed
21664 }
21665
21666 func (d *Decoder) fastpathDecMapFloat64Float32R(f *codecFnInfo, rv reflect.Value) {
21667 if rv.Kind() == reflect.Ptr {
21668 vp := rv2i(rv).(*map[float64]float32)
21669 if v, changed := fastpathTV.DecMapFloat64Float32V(*vp, true, d); changed {
21670 *vp = v
21671 }
21672 return
21673 }
21674 fastpathTV.DecMapFloat64Float32V(rv2i(rv).(map[float64]float32), false, d)
21675 }
21676 func (f fastpathT) DecMapFloat64Float32X(vp *map[float64]float32, d *Decoder) {
21677 if v, changed := f.DecMapFloat64Float32V(*vp, true, d); changed {
21678 *vp = v
21679 }
21680 }
21681 func (_ fastpathT) DecMapFloat64Float32V(v map[float64]float32, canChange bool,
21682 d *Decoder) (_ map[float64]float32, changed bool) {
21683 dd, esep := d.d, d.hh.hasElemSeparators()
21684
21685 containerLen := dd.ReadMapStart()
21686 if canChange && v == nil {
21687 xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
21688 v = make(map[float64]float32, xlen)
21689 changed = true
21690 }
21691 if containerLen == 0 {
21692 dd.ReadMapEnd()
21693 return v, changed
21694 }
21695
21696 var mk float64
21697 var mv float32
21698 hasLen := containerLen > 0
21699 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
21700 if esep {
21701 dd.ReadMapElemKey()
21702 }
21703 mk = dd.DecodeFloat(false)
21704 if esep {
21705 dd.ReadMapElemValue()
21706 }
21707 if dd.TryDecodeAsNil() {
21708 if d.h.DeleteOnNilMapValue {
21709 delete(v, mk)
21710 } else {
21711 v[mk] = 0
21712 }
21713 continue
21714 }
21715 mv = float32(dd.DecodeFloat(true))
21716 if v != nil {
21717 v[mk] = mv
21718 }
21719 }
21720 dd.ReadMapEnd()
21721 return v, changed
21722 }
21723
21724 func (d *Decoder) fastpathDecMapFloat64Float64R(f *codecFnInfo, rv reflect.Value) {
21725 if rv.Kind() == reflect.Ptr {
21726 vp := rv2i(rv).(*map[float64]float64)
21727 if v, changed := fastpathTV.DecMapFloat64Float64V(*vp, true, d); changed {
21728 *vp = v
21729 }
21730 return
21731 }
21732 fastpathTV.DecMapFloat64Float64V(rv2i(rv).(map[float64]float64), false, d)
21733 }
21734 func (f fastpathT) DecMapFloat64Float64X(vp *map[float64]float64, d *Decoder) {
21735 if v, changed := f.DecMapFloat64Float64V(*vp, true, d); changed {
21736 *vp = v
21737 }
21738 }
21739 func (_ fastpathT) DecMapFloat64Float64V(v map[float64]float64, canChange bool,
21740 d *Decoder) (_ map[float64]float64, changed bool) {
21741 dd, esep := d.d, d.hh.hasElemSeparators()
21742
21743 containerLen := dd.ReadMapStart()
21744 if canChange && v == nil {
21745 xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
21746 v = make(map[float64]float64, xlen)
21747 changed = true
21748 }
21749 if containerLen == 0 {
21750 dd.ReadMapEnd()
21751 return v, changed
21752 }
21753
21754 var mk float64
21755 var mv float64
21756 hasLen := containerLen > 0
21757 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
21758 if esep {
21759 dd.ReadMapElemKey()
21760 }
21761 mk = dd.DecodeFloat(false)
21762 if esep {
21763 dd.ReadMapElemValue()
21764 }
21765 if dd.TryDecodeAsNil() {
21766 if d.h.DeleteOnNilMapValue {
21767 delete(v, mk)
21768 } else {
21769 v[mk] = 0
21770 }
21771 continue
21772 }
21773 mv = dd.DecodeFloat(false)
21774 if v != nil {
21775 v[mk] = mv
21776 }
21777 }
21778 dd.ReadMapEnd()
21779 return v, changed
21780 }
21781
21782 func (d *Decoder) fastpathDecMapFloat64BoolR(f *codecFnInfo, rv reflect.Value) {
21783 if rv.Kind() == reflect.Ptr {
21784 vp := rv2i(rv).(*map[float64]bool)
21785 if v, changed := fastpathTV.DecMapFloat64BoolV(*vp, true, d); changed {
21786 *vp = v
21787 }
21788 return
21789 }
21790 fastpathTV.DecMapFloat64BoolV(rv2i(rv).(map[float64]bool), false, d)
21791 }
21792 func (f fastpathT) DecMapFloat64BoolX(vp *map[float64]bool, d *Decoder) {
21793 if v, changed := f.DecMapFloat64BoolV(*vp, true, d); changed {
21794 *vp = v
21795 }
21796 }
21797 func (_ fastpathT) DecMapFloat64BoolV(v map[float64]bool, canChange bool,
21798 d *Decoder) (_ map[float64]bool, changed bool) {
21799 dd, esep := d.d, d.hh.hasElemSeparators()
21800
21801 containerLen := dd.ReadMapStart()
21802 if canChange && v == nil {
21803 xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
21804 v = make(map[float64]bool, xlen)
21805 changed = true
21806 }
21807 if containerLen == 0 {
21808 dd.ReadMapEnd()
21809 return v, changed
21810 }
21811
21812 var mk float64
21813 var mv bool
21814 hasLen := containerLen > 0
21815 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
21816 if esep {
21817 dd.ReadMapElemKey()
21818 }
21819 mk = dd.DecodeFloat(false)
21820 if esep {
21821 dd.ReadMapElemValue()
21822 }
21823 if dd.TryDecodeAsNil() {
21824 if d.h.DeleteOnNilMapValue {
21825 delete(v, mk)
21826 } else {
21827 v[mk] = false
21828 }
21829 continue
21830 }
21831 mv = dd.DecodeBool()
21832 if v != nil {
21833 v[mk] = mv
21834 }
21835 }
21836 dd.ReadMapEnd()
21837 return v, changed
21838 }
21839
21840 func (d *Decoder) fastpathDecMapUintIntfR(f *codecFnInfo, rv reflect.Value) {
21841 if rv.Kind() == reflect.Ptr {
21842 vp := rv2i(rv).(*map[uint]interface{})
21843 if v, changed := fastpathTV.DecMapUintIntfV(*vp, true, d); changed {
21844 *vp = v
21845 }
21846 return
21847 }
21848 fastpathTV.DecMapUintIntfV(rv2i(rv).(map[uint]interface{}), false, d)
21849 }
21850 func (f fastpathT) DecMapUintIntfX(vp *map[uint]interface{}, d *Decoder) {
21851 if v, changed := f.DecMapUintIntfV(*vp, true, d); changed {
21852 *vp = v
21853 }
21854 }
21855 func (_ fastpathT) DecMapUintIntfV(v map[uint]interface{}, canChange bool,
21856 d *Decoder) (_ map[uint]interface{}, changed bool) {
21857 dd, esep := d.d, d.hh.hasElemSeparators()
21858
21859 containerLen := dd.ReadMapStart()
21860 if canChange && v == nil {
21861 xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
21862 v = make(map[uint]interface{}, xlen)
21863 changed = true
21864 }
21865 if containerLen == 0 {
21866 dd.ReadMapEnd()
21867 return v, changed
21868 }
21869 mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
21870 var mk uint
21871 var mv interface{}
21872 hasLen := containerLen > 0
21873 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
21874 if esep {
21875 dd.ReadMapElemKey()
21876 }
21877 mk = uint(dd.DecodeUint(uintBitsize))
21878 if esep {
21879 dd.ReadMapElemValue()
21880 }
21881 if dd.TryDecodeAsNil() {
21882 if d.h.DeleteOnNilMapValue {
21883 delete(v, mk)
21884 } else {
21885 v[mk] = nil
21886 }
21887 continue
21888 }
21889 if mapGet {
21890 mv = v[mk]
21891 } else {
21892 mv = nil
21893 }
21894 d.decode(&mv)
21895 if v != nil {
21896 v[mk] = mv
21897 }
21898 }
21899 dd.ReadMapEnd()
21900 return v, changed
21901 }
21902
21903 func (d *Decoder) fastpathDecMapUintStringR(f *codecFnInfo, rv reflect.Value) {
21904 if rv.Kind() == reflect.Ptr {
21905 vp := rv2i(rv).(*map[uint]string)
21906 if v, changed := fastpathTV.DecMapUintStringV(*vp, true, d); changed {
21907 *vp = v
21908 }
21909 return
21910 }
21911 fastpathTV.DecMapUintStringV(rv2i(rv).(map[uint]string), false, d)
21912 }
21913 func (f fastpathT) DecMapUintStringX(vp *map[uint]string, d *Decoder) {
21914 if v, changed := f.DecMapUintStringV(*vp, true, d); changed {
21915 *vp = v
21916 }
21917 }
21918 func (_ fastpathT) DecMapUintStringV(v map[uint]string, canChange bool,
21919 d *Decoder) (_ map[uint]string, changed bool) {
21920 dd, esep := d.d, d.hh.hasElemSeparators()
21921
21922 containerLen := dd.ReadMapStart()
21923 if canChange && v == nil {
21924 xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
21925 v = make(map[uint]string, xlen)
21926 changed = true
21927 }
21928 if containerLen == 0 {
21929 dd.ReadMapEnd()
21930 return v, changed
21931 }
21932
21933 var mk uint
21934 var mv string
21935 hasLen := containerLen > 0
21936 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
21937 if esep {
21938 dd.ReadMapElemKey()
21939 }
21940 mk = uint(dd.DecodeUint(uintBitsize))
21941 if esep {
21942 dd.ReadMapElemValue()
21943 }
21944 if dd.TryDecodeAsNil() {
21945 if d.h.DeleteOnNilMapValue {
21946 delete(v, mk)
21947 } else {
21948 v[mk] = ""
21949 }
21950 continue
21951 }
21952 mv = dd.DecodeString()
21953 if v != nil {
21954 v[mk] = mv
21955 }
21956 }
21957 dd.ReadMapEnd()
21958 return v, changed
21959 }
21960
21961 func (d *Decoder) fastpathDecMapUintUintR(f *codecFnInfo, rv reflect.Value) {
21962 if rv.Kind() == reflect.Ptr {
21963 vp := rv2i(rv).(*map[uint]uint)
21964 if v, changed := fastpathTV.DecMapUintUintV(*vp, true, d); changed {
21965 *vp = v
21966 }
21967 return
21968 }
21969 fastpathTV.DecMapUintUintV(rv2i(rv).(map[uint]uint), false, d)
21970 }
21971 func (f fastpathT) DecMapUintUintX(vp *map[uint]uint, d *Decoder) {
21972 if v, changed := f.DecMapUintUintV(*vp, true, d); changed {
21973 *vp = v
21974 }
21975 }
21976 func (_ fastpathT) DecMapUintUintV(v map[uint]uint, canChange bool,
21977 d *Decoder) (_ map[uint]uint, changed bool) {
21978 dd, esep := d.d, d.hh.hasElemSeparators()
21979
21980 containerLen := dd.ReadMapStart()
21981 if canChange && v == nil {
21982 xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
21983 v = make(map[uint]uint, xlen)
21984 changed = true
21985 }
21986 if containerLen == 0 {
21987 dd.ReadMapEnd()
21988 return v, changed
21989 }
21990
21991 var mk uint
21992 var mv uint
21993 hasLen := containerLen > 0
21994 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
21995 if esep {
21996 dd.ReadMapElemKey()
21997 }
21998 mk = uint(dd.DecodeUint(uintBitsize))
21999 if esep {
22000 dd.ReadMapElemValue()
22001 }
22002 if dd.TryDecodeAsNil() {
22003 if d.h.DeleteOnNilMapValue {
22004 delete(v, mk)
22005 } else {
22006 v[mk] = 0
22007 }
22008 continue
22009 }
22010 mv = uint(dd.DecodeUint(uintBitsize))
22011 if v != nil {
22012 v[mk] = mv
22013 }
22014 }
22015 dd.ReadMapEnd()
22016 return v, changed
22017 }
22018
22019 func (d *Decoder) fastpathDecMapUintUint8R(f *codecFnInfo, rv reflect.Value) {
22020 if rv.Kind() == reflect.Ptr {
22021 vp := rv2i(rv).(*map[uint]uint8)
22022 if v, changed := fastpathTV.DecMapUintUint8V(*vp, true, d); changed {
22023 *vp = v
22024 }
22025 return
22026 }
22027 fastpathTV.DecMapUintUint8V(rv2i(rv).(map[uint]uint8), false, d)
22028 }
22029 func (f fastpathT) DecMapUintUint8X(vp *map[uint]uint8, d *Decoder) {
22030 if v, changed := f.DecMapUintUint8V(*vp, true, d); changed {
22031 *vp = v
22032 }
22033 }
22034 func (_ fastpathT) DecMapUintUint8V(v map[uint]uint8, canChange bool,
22035 d *Decoder) (_ map[uint]uint8, changed bool) {
22036 dd, esep := d.d, d.hh.hasElemSeparators()
22037
22038 containerLen := dd.ReadMapStart()
22039 if canChange && v == nil {
22040 xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
22041 v = make(map[uint]uint8, xlen)
22042 changed = true
22043 }
22044 if containerLen == 0 {
22045 dd.ReadMapEnd()
22046 return v, changed
22047 }
22048
22049 var mk uint
22050 var mv uint8
22051 hasLen := containerLen > 0
22052 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
22053 if esep {
22054 dd.ReadMapElemKey()
22055 }
22056 mk = uint(dd.DecodeUint(uintBitsize))
22057 if esep {
22058 dd.ReadMapElemValue()
22059 }
22060 if dd.TryDecodeAsNil() {
22061 if d.h.DeleteOnNilMapValue {
22062 delete(v, mk)
22063 } else {
22064 v[mk] = 0
22065 }
22066 continue
22067 }
22068 mv = uint8(dd.DecodeUint(8))
22069 if v != nil {
22070 v[mk] = mv
22071 }
22072 }
22073 dd.ReadMapEnd()
22074 return v, changed
22075 }
22076
22077 func (d *Decoder) fastpathDecMapUintUint16R(f *codecFnInfo, rv reflect.Value) {
22078 if rv.Kind() == reflect.Ptr {
22079 vp := rv2i(rv).(*map[uint]uint16)
22080 if v, changed := fastpathTV.DecMapUintUint16V(*vp, true, d); changed {
22081 *vp = v
22082 }
22083 return
22084 }
22085 fastpathTV.DecMapUintUint16V(rv2i(rv).(map[uint]uint16), false, d)
22086 }
22087 func (f fastpathT) DecMapUintUint16X(vp *map[uint]uint16, d *Decoder) {
22088 if v, changed := f.DecMapUintUint16V(*vp, true, d); changed {
22089 *vp = v
22090 }
22091 }
22092 func (_ fastpathT) DecMapUintUint16V(v map[uint]uint16, canChange bool,
22093 d *Decoder) (_ map[uint]uint16, changed bool) {
22094 dd, esep := d.d, d.hh.hasElemSeparators()
22095
22096 containerLen := dd.ReadMapStart()
22097 if canChange && v == nil {
22098 xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
22099 v = make(map[uint]uint16, xlen)
22100 changed = true
22101 }
22102 if containerLen == 0 {
22103 dd.ReadMapEnd()
22104 return v, changed
22105 }
22106
22107 var mk uint
22108 var mv uint16
22109 hasLen := containerLen > 0
22110 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
22111 if esep {
22112 dd.ReadMapElemKey()
22113 }
22114 mk = uint(dd.DecodeUint(uintBitsize))
22115 if esep {
22116 dd.ReadMapElemValue()
22117 }
22118 if dd.TryDecodeAsNil() {
22119 if d.h.DeleteOnNilMapValue {
22120 delete(v, mk)
22121 } else {
22122 v[mk] = 0
22123 }
22124 continue
22125 }
22126 mv = uint16(dd.DecodeUint(16))
22127 if v != nil {
22128 v[mk] = mv
22129 }
22130 }
22131 dd.ReadMapEnd()
22132 return v, changed
22133 }
22134
22135 func (d *Decoder) fastpathDecMapUintUint32R(f *codecFnInfo, rv reflect.Value) {
22136 if rv.Kind() == reflect.Ptr {
22137 vp := rv2i(rv).(*map[uint]uint32)
22138 if v, changed := fastpathTV.DecMapUintUint32V(*vp, true, d); changed {
22139 *vp = v
22140 }
22141 return
22142 }
22143 fastpathTV.DecMapUintUint32V(rv2i(rv).(map[uint]uint32), false, d)
22144 }
22145 func (f fastpathT) DecMapUintUint32X(vp *map[uint]uint32, d *Decoder) {
22146 if v, changed := f.DecMapUintUint32V(*vp, true, d); changed {
22147 *vp = v
22148 }
22149 }
22150 func (_ fastpathT) DecMapUintUint32V(v map[uint]uint32, canChange bool,
22151 d *Decoder) (_ map[uint]uint32, changed bool) {
22152 dd, esep := d.d, d.hh.hasElemSeparators()
22153
22154 containerLen := dd.ReadMapStart()
22155 if canChange && v == nil {
22156 xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
22157 v = make(map[uint]uint32, xlen)
22158 changed = true
22159 }
22160 if containerLen == 0 {
22161 dd.ReadMapEnd()
22162 return v, changed
22163 }
22164
22165 var mk uint
22166 var mv uint32
22167 hasLen := containerLen > 0
22168 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
22169 if esep {
22170 dd.ReadMapElemKey()
22171 }
22172 mk = uint(dd.DecodeUint(uintBitsize))
22173 if esep {
22174 dd.ReadMapElemValue()
22175 }
22176 if dd.TryDecodeAsNil() {
22177 if d.h.DeleteOnNilMapValue {
22178 delete(v, mk)
22179 } else {
22180 v[mk] = 0
22181 }
22182 continue
22183 }
22184 mv = uint32(dd.DecodeUint(32))
22185 if v != nil {
22186 v[mk] = mv
22187 }
22188 }
22189 dd.ReadMapEnd()
22190 return v, changed
22191 }
22192
22193 func (d *Decoder) fastpathDecMapUintUint64R(f *codecFnInfo, rv reflect.Value) {
22194 if rv.Kind() == reflect.Ptr {
22195 vp := rv2i(rv).(*map[uint]uint64)
22196 if v, changed := fastpathTV.DecMapUintUint64V(*vp, true, d); changed {
22197 *vp = v
22198 }
22199 return
22200 }
22201 fastpathTV.DecMapUintUint64V(rv2i(rv).(map[uint]uint64), false, d)
22202 }
22203 func (f fastpathT) DecMapUintUint64X(vp *map[uint]uint64, d *Decoder) {
22204 if v, changed := f.DecMapUintUint64V(*vp, true, d); changed {
22205 *vp = v
22206 }
22207 }
22208 func (_ fastpathT) DecMapUintUint64V(v map[uint]uint64, canChange bool,
22209 d *Decoder) (_ map[uint]uint64, changed bool) {
22210 dd, esep := d.d, d.hh.hasElemSeparators()
22211
22212 containerLen := dd.ReadMapStart()
22213 if canChange && v == nil {
22214 xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
22215 v = make(map[uint]uint64, xlen)
22216 changed = true
22217 }
22218 if containerLen == 0 {
22219 dd.ReadMapEnd()
22220 return v, changed
22221 }
22222
22223 var mk uint
22224 var mv uint64
22225 hasLen := containerLen > 0
22226 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
22227 if esep {
22228 dd.ReadMapElemKey()
22229 }
22230 mk = uint(dd.DecodeUint(uintBitsize))
22231 if esep {
22232 dd.ReadMapElemValue()
22233 }
22234 if dd.TryDecodeAsNil() {
22235 if d.h.DeleteOnNilMapValue {
22236 delete(v, mk)
22237 } else {
22238 v[mk] = 0
22239 }
22240 continue
22241 }
22242 mv = dd.DecodeUint(64)
22243 if v != nil {
22244 v[mk] = mv
22245 }
22246 }
22247 dd.ReadMapEnd()
22248 return v, changed
22249 }
22250
22251 func (d *Decoder) fastpathDecMapUintUintptrR(f *codecFnInfo, rv reflect.Value) {
22252 if rv.Kind() == reflect.Ptr {
22253 vp := rv2i(rv).(*map[uint]uintptr)
22254 if v, changed := fastpathTV.DecMapUintUintptrV(*vp, true, d); changed {
22255 *vp = v
22256 }
22257 return
22258 }
22259 fastpathTV.DecMapUintUintptrV(rv2i(rv).(map[uint]uintptr), false, d)
22260 }
22261 func (f fastpathT) DecMapUintUintptrX(vp *map[uint]uintptr, d *Decoder) {
22262 if v, changed := f.DecMapUintUintptrV(*vp, true, d); changed {
22263 *vp = v
22264 }
22265 }
22266 func (_ fastpathT) DecMapUintUintptrV(v map[uint]uintptr, canChange bool,
22267 d *Decoder) (_ map[uint]uintptr, changed bool) {
22268 dd, esep := d.d, d.hh.hasElemSeparators()
22269
22270 containerLen := dd.ReadMapStart()
22271 if canChange && v == nil {
22272 xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
22273 v = make(map[uint]uintptr, xlen)
22274 changed = true
22275 }
22276 if containerLen == 0 {
22277 dd.ReadMapEnd()
22278 return v, changed
22279 }
22280
22281 var mk uint
22282 var mv uintptr
22283 hasLen := containerLen > 0
22284 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
22285 if esep {
22286 dd.ReadMapElemKey()
22287 }
22288 mk = uint(dd.DecodeUint(uintBitsize))
22289 if esep {
22290 dd.ReadMapElemValue()
22291 }
22292 if dd.TryDecodeAsNil() {
22293 if d.h.DeleteOnNilMapValue {
22294 delete(v, mk)
22295 } else {
22296 v[mk] = 0
22297 }
22298 continue
22299 }
22300 mv = uintptr(dd.DecodeUint(uintBitsize))
22301 if v != nil {
22302 v[mk] = mv
22303 }
22304 }
22305 dd.ReadMapEnd()
22306 return v, changed
22307 }
22308
22309 func (d *Decoder) fastpathDecMapUintIntR(f *codecFnInfo, rv reflect.Value) {
22310 if rv.Kind() == reflect.Ptr {
22311 vp := rv2i(rv).(*map[uint]int)
22312 if v, changed := fastpathTV.DecMapUintIntV(*vp, true, d); changed {
22313 *vp = v
22314 }
22315 return
22316 }
22317 fastpathTV.DecMapUintIntV(rv2i(rv).(map[uint]int), false, d)
22318 }
22319 func (f fastpathT) DecMapUintIntX(vp *map[uint]int, d *Decoder) {
22320 if v, changed := f.DecMapUintIntV(*vp, true, d); changed {
22321 *vp = v
22322 }
22323 }
22324 func (_ fastpathT) DecMapUintIntV(v map[uint]int, canChange bool,
22325 d *Decoder) (_ map[uint]int, changed bool) {
22326 dd, esep := d.d, d.hh.hasElemSeparators()
22327
22328 containerLen := dd.ReadMapStart()
22329 if canChange && v == nil {
22330 xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
22331 v = make(map[uint]int, xlen)
22332 changed = true
22333 }
22334 if containerLen == 0 {
22335 dd.ReadMapEnd()
22336 return v, changed
22337 }
22338
22339 var mk uint
22340 var mv int
22341 hasLen := containerLen > 0
22342 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
22343 if esep {
22344 dd.ReadMapElemKey()
22345 }
22346 mk = uint(dd.DecodeUint(uintBitsize))
22347 if esep {
22348 dd.ReadMapElemValue()
22349 }
22350 if dd.TryDecodeAsNil() {
22351 if d.h.DeleteOnNilMapValue {
22352 delete(v, mk)
22353 } else {
22354 v[mk] = 0
22355 }
22356 continue
22357 }
22358 mv = int(dd.DecodeInt(intBitsize))
22359 if v != nil {
22360 v[mk] = mv
22361 }
22362 }
22363 dd.ReadMapEnd()
22364 return v, changed
22365 }
22366
22367 func (d *Decoder) fastpathDecMapUintInt8R(f *codecFnInfo, rv reflect.Value) {
22368 if rv.Kind() == reflect.Ptr {
22369 vp := rv2i(rv).(*map[uint]int8)
22370 if v, changed := fastpathTV.DecMapUintInt8V(*vp, true, d); changed {
22371 *vp = v
22372 }
22373 return
22374 }
22375 fastpathTV.DecMapUintInt8V(rv2i(rv).(map[uint]int8), false, d)
22376 }
22377 func (f fastpathT) DecMapUintInt8X(vp *map[uint]int8, d *Decoder) {
22378 if v, changed := f.DecMapUintInt8V(*vp, true, d); changed {
22379 *vp = v
22380 }
22381 }
22382 func (_ fastpathT) DecMapUintInt8V(v map[uint]int8, canChange bool,
22383 d *Decoder) (_ map[uint]int8, changed bool) {
22384 dd, esep := d.d, d.hh.hasElemSeparators()
22385
22386 containerLen := dd.ReadMapStart()
22387 if canChange && v == nil {
22388 xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
22389 v = make(map[uint]int8, xlen)
22390 changed = true
22391 }
22392 if containerLen == 0 {
22393 dd.ReadMapEnd()
22394 return v, changed
22395 }
22396
22397 var mk uint
22398 var mv int8
22399 hasLen := containerLen > 0
22400 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
22401 if esep {
22402 dd.ReadMapElemKey()
22403 }
22404 mk = uint(dd.DecodeUint(uintBitsize))
22405 if esep {
22406 dd.ReadMapElemValue()
22407 }
22408 if dd.TryDecodeAsNil() {
22409 if d.h.DeleteOnNilMapValue {
22410 delete(v, mk)
22411 } else {
22412 v[mk] = 0
22413 }
22414 continue
22415 }
22416 mv = int8(dd.DecodeInt(8))
22417 if v != nil {
22418 v[mk] = mv
22419 }
22420 }
22421 dd.ReadMapEnd()
22422 return v, changed
22423 }
22424
22425 func (d *Decoder) fastpathDecMapUintInt16R(f *codecFnInfo, rv reflect.Value) {
22426 if rv.Kind() == reflect.Ptr {
22427 vp := rv2i(rv).(*map[uint]int16)
22428 if v, changed := fastpathTV.DecMapUintInt16V(*vp, true, d); changed {
22429 *vp = v
22430 }
22431 return
22432 }
22433 fastpathTV.DecMapUintInt16V(rv2i(rv).(map[uint]int16), false, d)
22434 }
22435 func (f fastpathT) DecMapUintInt16X(vp *map[uint]int16, d *Decoder) {
22436 if v, changed := f.DecMapUintInt16V(*vp, true, d); changed {
22437 *vp = v
22438 }
22439 }
22440 func (_ fastpathT) DecMapUintInt16V(v map[uint]int16, canChange bool,
22441 d *Decoder) (_ map[uint]int16, changed bool) {
22442 dd, esep := d.d, d.hh.hasElemSeparators()
22443
22444 containerLen := dd.ReadMapStart()
22445 if canChange && v == nil {
22446 xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
22447 v = make(map[uint]int16, xlen)
22448 changed = true
22449 }
22450 if containerLen == 0 {
22451 dd.ReadMapEnd()
22452 return v, changed
22453 }
22454
22455 var mk uint
22456 var mv int16
22457 hasLen := containerLen > 0
22458 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
22459 if esep {
22460 dd.ReadMapElemKey()
22461 }
22462 mk = uint(dd.DecodeUint(uintBitsize))
22463 if esep {
22464 dd.ReadMapElemValue()
22465 }
22466 if dd.TryDecodeAsNil() {
22467 if d.h.DeleteOnNilMapValue {
22468 delete(v, mk)
22469 } else {
22470 v[mk] = 0
22471 }
22472 continue
22473 }
22474 mv = int16(dd.DecodeInt(16))
22475 if v != nil {
22476 v[mk] = mv
22477 }
22478 }
22479 dd.ReadMapEnd()
22480 return v, changed
22481 }
22482
22483 func (d *Decoder) fastpathDecMapUintInt32R(f *codecFnInfo, rv reflect.Value) {
22484 if rv.Kind() == reflect.Ptr {
22485 vp := rv2i(rv).(*map[uint]int32)
22486 if v, changed := fastpathTV.DecMapUintInt32V(*vp, true, d); changed {
22487 *vp = v
22488 }
22489 return
22490 }
22491 fastpathTV.DecMapUintInt32V(rv2i(rv).(map[uint]int32), false, d)
22492 }
22493 func (f fastpathT) DecMapUintInt32X(vp *map[uint]int32, d *Decoder) {
22494 if v, changed := f.DecMapUintInt32V(*vp, true, d); changed {
22495 *vp = v
22496 }
22497 }
22498 func (_ fastpathT) DecMapUintInt32V(v map[uint]int32, canChange bool,
22499 d *Decoder) (_ map[uint]int32, changed bool) {
22500 dd, esep := d.d, d.hh.hasElemSeparators()
22501
22502 containerLen := dd.ReadMapStart()
22503 if canChange && v == nil {
22504 xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
22505 v = make(map[uint]int32, xlen)
22506 changed = true
22507 }
22508 if containerLen == 0 {
22509 dd.ReadMapEnd()
22510 return v, changed
22511 }
22512
22513 var mk uint
22514 var mv int32
22515 hasLen := containerLen > 0
22516 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
22517 if esep {
22518 dd.ReadMapElemKey()
22519 }
22520 mk = uint(dd.DecodeUint(uintBitsize))
22521 if esep {
22522 dd.ReadMapElemValue()
22523 }
22524 if dd.TryDecodeAsNil() {
22525 if d.h.DeleteOnNilMapValue {
22526 delete(v, mk)
22527 } else {
22528 v[mk] = 0
22529 }
22530 continue
22531 }
22532 mv = int32(dd.DecodeInt(32))
22533 if v != nil {
22534 v[mk] = mv
22535 }
22536 }
22537 dd.ReadMapEnd()
22538 return v, changed
22539 }
22540
22541 func (d *Decoder) fastpathDecMapUintInt64R(f *codecFnInfo, rv reflect.Value) {
22542 if rv.Kind() == reflect.Ptr {
22543 vp := rv2i(rv).(*map[uint]int64)
22544 if v, changed := fastpathTV.DecMapUintInt64V(*vp, true, d); changed {
22545 *vp = v
22546 }
22547 return
22548 }
22549 fastpathTV.DecMapUintInt64V(rv2i(rv).(map[uint]int64), false, d)
22550 }
22551 func (f fastpathT) DecMapUintInt64X(vp *map[uint]int64, d *Decoder) {
22552 if v, changed := f.DecMapUintInt64V(*vp, true, d); changed {
22553 *vp = v
22554 }
22555 }
22556 func (_ fastpathT) DecMapUintInt64V(v map[uint]int64, canChange bool,
22557 d *Decoder) (_ map[uint]int64, changed bool) {
22558 dd, esep := d.d, d.hh.hasElemSeparators()
22559
22560 containerLen := dd.ReadMapStart()
22561 if canChange && v == nil {
22562 xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
22563 v = make(map[uint]int64, xlen)
22564 changed = true
22565 }
22566 if containerLen == 0 {
22567 dd.ReadMapEnd()
22568 return v, changed
22569 }
22570
22571 var mk uint
22572 var mv int64
22573 hasLen := containerLen > 0
22574 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
22575 if esep {
22576 dd.ReadMapElemKey()
22577 }
22578 mk = uint(dd.DecodeUint(uintBitsize))
22579 if esep {
22580 dd.ReadMapElemValue()
22581 }
22582 if dd.TryDecodeAsNil() {
22583 if d.h.DeleteOnNilMapValue {
22584 delete(v, mk)
22585 } else {
22586 v[mk] = 0
22587 }
22588 continue
22589 }
22590 mv = dd.DecodeInt(64)
22591 if v != nil {
22592 v[mk] = mv
22593 }
22594 }
22595 dd.ReadMapEnd()
22596 return v, changed
22597 }
22598
22599 func (d *Decoder) fastpathDecMapUintFloat32R(f *codecFnInfo, rv reflect.Value) {
22600 if rv.Kind() == reflect.Ptr {
22601 vp := rv2i(rv).(*map[uint]float32)
22602 if v, changed := fastpathTV.DecMapUintFloat32V(*vp, true, d); changed {
22603 *vp = v
22604 }
22605 return
22606 }
22607 fastpathTV.DecMapUintFloat32V(rv2i(rv).(map[uint]float32), false, d)
22608 }
22609 func (f fastpathT) DecMapUintFloat32X(vp *map[uint]float32, d *Decoder) {
22610 if v, changed := f.DecMapUintFloat32V(*vp, true, d); changed {
22611 *vp = v
22612 }
22613 }
22614 func (_ fastpathT) DecMapUintFloat32V(v map[uint]float32, canChange bool,
22615 d *Decoder) (_ map[uint]float32, changed bool) {
22616 dd, esep := d.d, d.hh.hasElemSeparators()
22617
22618 containerLen := dd.ReadMapStart()
22619 if canChange && v == nil {
22620 xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
22621 v = make(map[uint]float32, xlen)
22622 changed = true
22623 }
22624 if containerLen == 0 {
22625 dd.ReadMapEnd()
22626 return v, changed
22627 }
22628
22629 var mk uint
22630 var mv float32
22631 hasLen := containerLen > 0
22632 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
22633 if esep {
22634 dd.ReadMapElemKey()
22635 }
22636 mk = uint(dd.DecodeUint(uintBitsize))
22637 if esep {
22638 dd.ReadMapElemValue()
22639 }
22640 if dd.TryDecodeAsNil() {
22641 if d.h.DeleteOnNilMapValue {
22642 delete(v, mk)
22643 } else {
22644 v[mk] = 0
22645 }
22646 continue
22647 }
22648 mv = float32(dd.DecodeFloat(true))
22649 if v != nil {
22650 v[mk] = mv
22651 }
22652 }
22653 dd.ReadMapEnd()
22654 return v, changed
22655 }
22656
22657 func (d *Decoder) fastpathDecMapUintFloat64R(f *codecFnInfo, rv reflect.Value) {
22658 if rv.Kind() == reflect.Ptr {
22659 vp := rv2i(rv).(*map[uint]float64)
22660 if v, changed := fastpathTV.DecMapUintFloat64V(*vp, true, d); changed {
22661 *vp = v
22662 }
22663 return
22664 }
22665 fastpathTV.DecMapUintFloat64V(rv2i(rv).(map[uint]float64), false, d)
22666 }
22667 func (f fastpathT) DecMapUintFloat64X(vp *map[uint]float64, d *Decoder) {
22668 if v, changed := f.DecMapUintFloat64V(*vp, true, d); changed {
22669 *vp = v
22670 }
22671 }
22672 func (_ fastpathT) DecMapUintFloat64V(v map[uint]float64, canChange bool,
22673 d *Decoder) (_ map[uint]float64, changed bool) {
22674 dd, esep := d.d, d.hh.hasElemSeparators()
22675
22676 containerLen := dd.ReadMapStart()
22677 if canChange && v == nil {
22678 xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
22679 v = make(map[uint]float64, xlen)
22680 changed = true
22681 }
22682 if containerLen == 0 {
22683 dd.ReadMapEnd()
22684 return v, changed
22685 }
22686
22687 var mk uint
22688 var mv float64
22689 hasLen := containerLen > 0
22690 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
22691 if esep {
22692 dd.ReadMapElemKey()
22693 }
22694 mk = uint(dd.DecodeUint(uintBitsize))
22695 if esep {
22696 dd.ReadMapElemValue()
22697 }
22698 if dd.TryDecodeAsNil() {
22699 if d.h.DeleteOnNilMapValue {
22700 delete(v, mk)
22701 } else {
22702 v[mk] = 0
22703 }
22704 continue
22705 }
22706 mv = dd.DecodeFloat(false)
22707 if v != nil {
22708 v[mk] = mv
22709 }
22710 }
22711 dd.ReadMapEnd()
22712 return v, changed
22713 }
22714
22715 func (d *Decoder) fastpathDecMapUintBoolR(f *codecFnInfo, rv reflect.Value) {
22716 if rv.Kind() == reflect.Ptr {
22717 vp := rv2i(rv).(*map[uint]bool)
22718 if v, changed := fastpathTV.DecMapUintBoolV(*vp, true, d); changed {
22719 *vp = v
22720 }
22721 return
22722 }
22723 fastpathTV.DecMapUintBoolV(rv2i(rv).(map[uint]bool), false, d)
22724 }
22725 func (f fastpathT) DecMapUintBoolX(vp *map[uint]bool, d *Decoder) {
22726 if v, changed := f.DecMapUintBoolV(*vp, true, d); changed {
22727 *vp = v
22728 }
22729 }
22730 func (_ fastpathT) DecMapUintBoolV(v map[uint]bool, canChange bool,
22731 d *Decoder) (_ map[uint]bool, changed bool) {
22732 dd, esep := d.d, d.hh.hasElemSeparators()
22733
22734 containerLen := dd.ReadMapStart()
22735 if canChange && v == nil {
22736 xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
22737 v = make(map[uint]bool, xlen)
22738 changed = true
22739 }
22740 if containerLen == 0 {
22741 dd.ReadMapEnd()
22742 return v, changed
22743 }
22744
22745 var mk uint
22746 var mv bool
22747 hasLen := containerLen > 0
22748 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
22749 if esep {
22750 dd.ReadMapElemKey()
22751 }
22752 mk = uint(dd.DecodeUint(uintBitsize))
22753 if esep {
22754 dd.ReadMapElemValue()
22755 }
22756 if dd.TryDecodeAsNil() {
22757 if d.h.DeleteOnNilMapValue {
22758 delete(v, mk)
22759 } else {
22760 v[mk] = false
22761 }
22762 continue
22763 }
22764 mv = dd.DecodeBool()
22765 if v != nil {
22766 v[mk] = mv
22767 }
22768 }
22769 dd.ReadMapEnd()
22770 return v, changed
22771 }
22772
22773 func (d *Decoder) fastpathDecMapUint8IntfR(f *codecFnInfo, rv reflect.Value) {
22774 if rv.Kind() == reflect.Ptr {
22775 vp := rv2i(rv).(*map[uint8]interface{})
22776 if v, changed := fastpathTV.DecMapUint8IntfV(*vp, true, d); changed {
22777 *vp = v
22778 }
22779 return
22780 }
22781 fastpathTV.DecMapUint8IntfV(rv2i(rv).(map[uint8]interface{}), false, d)
22782 }
22783 func (f fastpathT) DecMapUint8IntfX(vp *map[uint8]interface{}, d *Decoder) {
22784 if v, changed := f.DecMapUint8IntfV(*vp, true, d); changed {
22785 *vp = v
22786 }
22787 }
22788 func (_ fastpathT) DecMapUint8IntfV(v map[uint8]interface{}, canChange bool,
22789 d *Decoder) (_ map[uint8]interface{}, changed bool) {
22790 dd, esep := d.d, d.hh.hasElemSeparators()
22791
22792 containerLen := dd.ReadMapStart()
22793 if canChange && v == nil {
22794 xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
22795 v = make(map[uint8]interface{}, xlen)
22796 changed = true
22797 }
22798 if containerLen == 0 {
22799 dd.ReadMapEnd()
22800 return v, changed
22801 }
22802 mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
22803 var mk uint8
22804 var mv interface{}
22805 hasLen := containerLen > 0
22806 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
22807 if esep {
22808 dd.ReadMapElemKey()
22809 }
22810 mk = uint8(dd.DecodeUint(8))
22811 if esep {
22812 dd.ReadMapElemValue()
22813 }
22814 if dd.TryDecodeAsNil() {
22815 if d.h.DeleteOnNilMapValue {
22816 delete(v, mk)
22817 } else {
22818 v[mk] = nil
22819 }
22820 continue
22821 }
22822 if mapGet {
22823 mv = v[mk]
22824 } else {
22825 mv = nil
22826 }
22827 d.decode(&mv)
22828 if v != nil {
22829 v[mk] = mv
22830 }
22831 }
22832 dd.ReadMapEnd()
22833 return v, changed
22834 }
22835
22836 func (d *Decoder) fastpathDecMapUint8StringR(f *codecFnInfo, rv reflect.Value) {
22837 if rv.Kind() == reflect.Ptr {
22838 vp := rv2i(rv).(*map[uint8]string)
22839 if v, changed := fastpathTV.DecMapUint8StringV(*vp, true, d); changed {
22840 *vp = v
22841 }
22842 return
22843 }
22844 fastpathTV.DecMapUint8StringV(rv2i(rv).(map[uint8]string), false, d)
22845 }
22846 func (f fastpathT) DecMapUint8StringX(vp *map[uint8]string, d *Decoder) {
22847 if v, changed := f.DecMapUint8StringV(*vp, true, d); changed {
22848 *vp = v
22849 }
22850 }
22851 func (_ fastpathT) DecMapUint8StringV(v map[uint8]string, canChange bool,
22852 d *Decoder) (_ map[uint8]string, changed bool) {
22853 dd, esep := d.d, d.hh.hasElemSeparators()
22854
22855 containerLen := dd.ReadMapStart()
22856 if canChange && v == nil {
22857 xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
22858 v = make(map[uint8]string, xlen)
22859 changed = true
22860 }
22861 if containerLen == 0 {
22862 dd.ReadMapEnd()
22863 return v, changed
22864 }
22865
22866 var mk uint8
22867 var mv string
22868 hasLen := containerLen > 0
22869 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
22870 if esep {
22871 dd.ReadMapElemKey()
22872 }
22873 mk = uint8(dd.DecodeUint(8))
22874 if esep {
22875 dd.ReadMapElemValue()
22876 }
22877 if dd.TryDecodeAsNil() {
22878 if d.h.DeleteOnNilMapValue {
22879 delete(v, mk)
22880 } else {
22881 v[mk] = ""
22882 }
22883 continue
22884 }
22885 mv = dd.DecodeString()
22886 if v != nil {
22887 v[mk] = mv
22888 }
22889 }
22890 dd.ReadMapEnd()
22891 return v, changed
22892 }
22893
22894 func (d *Decoder) fastpathDecMapUint8UintR(f *codecFnInfo, rv reflect.Value) {
22895 if rv.Kind() == reflect.Ptr {
22896 vp := rv2i(rv).(*map[uint8]uint)
22897 if v, changed := fastpathTV.DecMapUint8UintV(*vp, true, d); changed {
22898 *vp = v
22899 }
22900 return
22901 }
22902 fastpathTV.DecMapUint8UintV(rv2i(rv).(map[uint8]uint), false, d)
22903 }
22904 func (f fastpathT) DecMapUint8UintX(vp *map[uint8]uint, d *Decoder) {
22905 if v, changed := f.DecMapUint8UintV(*vp, true, d); changed {
22906 *vp = v
22907 }
22908 }
22909 func (_ fastpathT) DecMapUint8UintV(v map[uint8]uint, canChange bool,
22910 d *Decoder) (_ map[uint8]uint, changed bool) {
22911 dd, esep := d.d, d.hh.hasElemSeparators()
22912
22913 containerLen := dd.ReadMapStart()
22914 if canChange && v == nil {
22915 xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
22916 v = make(map[uint8]uint, xlen)
22917 changed = true
22918 }
22919 if containerLen == 0 {
22920 dd.ReadMapEnd()
22921 return v, changed
22922 }
22923
22924 var mk uint8
22925 var mv uint
22926 hasLen := containerLen > 0
22927 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
22928 if esep {
22929 dd.ReadMapElemKey()
22930 }
22931 mk = uint8(dd.DecodeUint(8))
22932 if esep {
22933 dd.ReadMapElemValue()
22934 }
22935 if dd.TryDecodeAsNil() {
22936 if d.h.DeleteOnNilMapValue {
22937 delete(v, mk)
22938 } else {
22939 v[mk] = 0
22940 }
22941 continue
22942 }
22943 mv = uint(dd.DecodeUint(uintBitsize))
22944 if v != nil {
22945 v[mk] = mv
22946 }
22947 }
22948 dd.ReadMapEnd()
22949 return v, changed
22950 }
22951
22952 func (d *Decoder) fastpathDecMapUint8Uint8R(f *codecFnInfo, rv reflect.Value) {
22953 if rv.Kind() == reflect.Ptr {
22954 vp := rv2i(rv).(*map[uint8]uint8)
22955 if v, changed := fastpathTV.DecMapUint8Uint8V(*vp, true, d); changed {
22956 *vp = v
22957 }
22958 return
22959 }
22960 fastpathTV.DecMapUint8Uint8V(rv2i(rv).(map[uint8]uint8), false, d)
22961 }
22962 func (f fastpathT) DecMapUint8Uint8X(vp *map[uint8]uint8, d *Decoder) {
22963 if v, changed := f.DecMapUint8Uint8V(*vp, true, d); changed {
22964 *vp = v
22965 }
22966 }
22967 func (_ fastpathT) DecMapUint8Uint8V(v map[uint8]uint8, canChange bool,
22968 d *Decoder) (_ map[uint8]uint8, changed bool) {
22969 dd, esep := d.d, d.hh.hasElemSeparators()
22970
22971 containerLen := dd.ReadMapStart()
22972 if canChange && v == nil {
22973 xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
22974 v = make(map[uint8]uint8, xlen)
22975 changed = true
22976 }
22977 if containerLen == 0 {
22978 dd.ReadMapEnd()
22979 return v, changed
22980 }
22981
22982 var mk uint8
22983 var mv uint8
22984 hasLen := containerLen > 0
22985 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
22986 if esep {
22987 dd.ReadMapElemKey()
22988 }
22989 mk = uint8(dd.DecodeUint(8))
22990 if esep {
22991 dd.ReadMapElemValue()
22992 }
22993 if dd.TryDecodeAsNil() {
22994 if d.h.DeleteOnNilMapValue {
22995 delete(v, mk)
22996 } else {
22997 v[mk] = 0
22998 }
22999 continue
23000 }
23001 mv = uint8(dd.DecodeUint(8))
23002 if v != nil {
23003 v[mk] = mv
23004 }
23005 }
23006 dd.ReadMapEnd()
23007 return v, changed
23008 }
23009
23010 func (d *Decoder) fastpathDecMapUint8Uint16R(f *codecFnInfo, rv reflect.Value) {
23011 if rv.Kind() == reflect.Ptr {
23012 vp := rv2i(rv).(*map[uint8]uint16)
23013 if v, changed := fastpathTV.DecMapUint8Uint16V(*vp, true, d); changed {
23014 *vp = v
23015 }
23016 return
23017 }
23018 fastpathTV.DecMapUint8Uint16V(rv2i(rv).(map[uint8]uint16), false, d)
23019 }
23020 func (f fastpathT) DecMapUint8Uint16X(vp *map[uint8]uint16, d *Decoder) {
23021 if v, changed := f.DecMapUint8Uint16V(*vp, true, d); changed {
23022 *vp = v
23023 }
23024 }
23025 func (_ fastpathT) DecMapUint8Uint16V(v map[uint8]uint16, canChange bool,
23026 d *Decoder) (_ map[uint8]uint16, changed bool) {
23027 dd, esep := d.d, d.hh.hasElemSeparators()
23028
23029 containerLen := dd.ReadMapStart()
23030 if canChange && v == nil {
23031 xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
23032 v = make(map[uint8]uint16, xlen)
23033 changed = true
23034 }
23035 if containerLen == 0 {
23036 dd.ReadMapEnd()
23037 return v, changed
23038 }
23039
23040 var mk uint8
23041 var mv uint16
23042 hasLen := containerLen > 0
23043 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
23044 if esep {
23045 dd.ReadMapElemKey()
23046 }
23047 mk = uint8(dd.DecodeUint(8))
23048 if esep {
23049 dd.ReadMapElemValue()
23050 }
23051 if dd.TryDecodeAsNil() {
23052 if d.h.DeleteOnNilMapValue {
23053 delete(v, mk)
23054 } else {
23055 v[mk] = 0
23056 }
23057 continue
23058 }
23059 mv = uint16(dd.DecodeUint(16))
23060 if v != nil {
23061 v[mk] = mv
23062 }
23063 }
23064 dd.ReadMapEnd()
23065 return v, changed
23066 }
23067
23068 func (d *Decoder) fastpathDecMapUint8Uint32R(f *codecFnInfo, rv reflect.Value) {
23069 if rv.Kind() == reflect.Ptr {
23070 vp := rv2i(rv).(*map[uint8]uint32)
23071 if v, changed := fastpathTV.DecMapUint8Uint32V(*vp, true, d); changed {
23072 *vp = v
23073 }
23074 return
23075 }
23076 fastpathTV.DecMapUint8Uint32V(rv2i(rv).(map[uint8]uint32), false, d)
23077 }
23078 func (f fastpathT) DecMapUint8Uint32X(vp *map[uint8]uint32, d *Decoder) {
23079 if v, changed := f.DecMapUint8Uint32V(*vp, true, d); changed {
23080 *vp = v
23081 }
23082 }
23083 func (_ fastpathT) DecMapUint8Uint32V(v map[uint8]uint32, canChange bool,
23084 d *Decoder) (_ map[uint8]uint32, changed bool) {
23085 dd, esep := d.d, d.hh.hasElemSeparators()
23086
23087 containerLen := dd.ReadMapStart()
23088 if canChange && v == nil {
23089 xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
23090 v = make(map[uint8]uint32, xlen)
23091 changed = true
23092 }
23093 if containerLen == 0 {
23094 dd.ReadMapEnd()
23095 return v, changed
23096 }
23097
23098 var mk uint8
23099 var mv uint32
23100 hasLen := containerLen > 0
23101 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
23102 if esep {
23103 dd.ReadMapElemKey()
23104 }
23105 mk = uint8(dd.DecodeUint(8))
23106 if esep {
23107 dd.ReadMapElemValue()
23108 }
23109 if dd.TryDecodeAsNil() {
23110 if d.h.DeleteOnNilMapValue {
23111 delete(v, mk)
23112 } else {
23113 v[mk] = 0
23114 }
23115 continue
23116 }
23117 mv = uint32(dd.DecodeUint(32))
23118 if v != nil {
23119 v[mk] = mv
23120 }
23121 }
23122 dd.ReadMapEnd()
23123 return v, changed
23124 }
23125
23126 func (d *Decoder) fastpathDecMapUint8Uint64R(f *codecFnInfo, rv reflect.Value) {
23127 if rv.Kind() == reflect.Ptr {
23128 vp := rv2i(rv).(*map[uint8]uint64)
23129 if v, changed := fastpathTV.DecMapUint8Uint64V(*vp, true, d); changed {
23130 *vp = v
23131 }
23132 return
23133 }
23134 fastpathTV.DecMapUint8Uint64V(rv2i(rv).(map[uint8]uint64), false, d)
23135 }
23136 func (f fastpathT) DecMapUint8Uint64X(vp *map[uint8]uint64, d *Decoder) {
23137 if v, changed := f.DecMapUint8Uint64V(*vp, true, d); changed {
23138 *vp = v
23139 }
23140 }
23141 func (_ fastpathT) DecMapUint8Uint64V(v map[uint8]uint64, canChange bool,
23142 d *Decoder) (_ map[uint8]uint64, changed bool) {
23143 dd, esep := d.d, d.hh.hasElemSeparators()
23144
23145 containerLen := dd.ReadMapStart()
23146 if canChange && v == nil {
23147 xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
23148 v = make(map[uint8]uint64, xlen)
23149 changed = true
23150 }
23151 if containerLen == 0 {
23152 dd.ReadMapEnd()
23153 return v, changed
23154 }
23155
23156 var mk uint8
23157 var mv uint64
23158 hasLen := containerLen > 0
23159 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
23160 if esep {
23161 dd.ReadMapElemKey()
23162 }
23163 mk = uint8(dd.DecodeUint(8))
23164 if esep {
23165 dd.ReadMapElemValue()
23166 }
23167 if dd.TryDecodeAsNil() {
23168 if d.h.DeleteOnNilMapValue {
23169 delete(v, mk)
23170 } else {
23171 v[mk] = 0
23172 }
23173 continue
23174 }
23175 mv = dd.DecodeUint(64)
23176 if v != nil {
23177 v[mk] = mv
23178 }
23179 }
23180 dd.ReadMapEnd()
23181 return v, changed
23182 }
23183
23184 func (d *Decoder) fastpathDecMapUint8UintptrR(f *codecFnInfo, rv reflect.Value) {
23185 if rv.Kind() == reflect.Ptr {
23186 vp := rv2i(rv).(*map[uint8]uintptr)
23187 if v, changed := fastpathTV.DecMapUint8UintptrV(*vp, true, d); changed {
23188 *vp = v
23189 }
23190 return
23191 }
23192 fastpathTV.DecMapUint8UintptrV(rv2i(rv).(map[uint8]uintptr), false, d)
23193 }
23194 func (f fastpathT) DecMapUint8UintptrX(vp *map[uint8]uintptr, d *Decoder) {
23195 if v, changed := f.DecMapUint8UintptrV(*vp, true, d); changed {
23196 *vp = v
23197 }
23198 }
23199 func (_ fastpathT) DecMapUint8UintptrV(v map[uint8]uintptr, canChange bool,
23200 d *Decoder) (_ map[uint8]uintptr, changed bool) {
23201 dd, esep := d.d, d.hh.hasElemSeparators()
23202
23203 containerLen := dd.ReadMapStart()
23204 if canChange && v == nil {
23205 xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
23206 v = make(map[uint8]uintptr, xlen)
23207 changed = true
23208 }
23209 if containerLen == 0 {
23210 dd.ReadMapEnd()
23211 return v, changed
23212 }
23213
23214 var mk uint8
23215 var mv uintptr
23216 hasLen := containerLen > 0
23217 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
23218 if esep {
23219 dd.ReadMapElemKey()
23220 }
23221 mk = uint8(dd.DecodeUint(8))
23222 if esep {
23223 dd.ReadMapElemValue()
23224 }
23225 if dd.TryDecodeAsNil() {
23226 if d.h.DeleteOnNilMapValue {
23227 delete(v, mk)
23228 } else {
23229 v[mk] = 0
23230 }
23231 continue
23232 }
23233 mv = uintptr(dd.DecodeUint(uintBitsize))
23234 if v != nil {
23235 v[mk] = mv
23236 }
23237 }
23238 dd.ReadMapEnd()
23239 return v, changed
23240 }
23241
23242 func (d *Decoder) fastpathDecMapUint8IntR(f *codecFnInfo, rv reflect.Value) {
23243 if rv.Kind() == reflect.Ptr {
23244 vp := rv2i(rv).(*map[uint8]int)
23245 if v, changed := fastpathTV.DecMapUint8IntV(*vp, true, d); changed {
23246 *vp = v
23247 }
23248 return
23249 }
23250 fastpathTV.DecMapUint8IntV(rv2i(rv).(map[uint8]int), false, d)
23251 }
23252 func (f fastpathT) DecMapUint8IntX(vp *map[uint8]int, d *Decoder) {
23253 if v, changed := f.DecMapUint8IntV(*vp, true, d); changed {
23254 *vp = v
23255 }
23256 }
23257 func (_ fastpathT) DecMapUint8IntV(v map[uint8]int, canChange bool,
23258 d *Decoder) (_ map[uint8]int, changed bool) {
23259 dd, esep := d.d, d.hh.hasElemSeparators()
23260
23261 containerLen := dd.ReadMapStart()
23262 if canChange && v == nil {
23263 xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
23264 v = make(map[uint8]int, xlen)
23265 changed = true
23266 }
23267 if containerLen == 0 {
23268 dd.ReadMapEnd()
23269 return v, changed
23270 }
23271
23272 var mk uint8
23273 var mv int
23274 hasLen := containerLen > 0
23275 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
23276 if esep {
23277 dd.ReadMapElemKey()
23278 }
23279 mk = uint8(dd.DecodeUint(8))
23280 if esep {
23281 dd.ReadMapElemValue()
23282 }
23283 if dd.TryDecodeAsNil() {
23284 if d.h.DeleteOnNilMapValue {
23285 delete(v, mk)
23286 } else {
23287 v[mk] = 0
23288 }
23289 continue
23290 }
23291 mv = int(dd.DecodeInt(intBitsize))
23292 if v != nil {
23293 v[mk] = mv
23294 }
23295 }
23296 dd.ReadMapEnd()
23297 return v, changed
23298 }
23299
23300 func (d *Decoder) fastpathDecMapUint8Int8R(f *codecFnInfo, rv reflect.Value) {
23301 if rv.Kind() == reflect.Ptr {
23302 vp := rv2i(rv).(*map[uint8]int8)
23303 if v, changed := fastpathTV.DecMapUint8Int8V(*vp, true, d); changed {
23304 *vp = v
23305 }
23306 return
23307 }
23308 fastpathTV.DecMapUint8Int8V(rv2i(rv).(map[uint8]int8), false, d)
23309 }
23310 func (f fastpathT) DecMapUint8Int8X(vp *map[uint8]int8, d *Decoder) {
23311 if v, changed := f.DecMapUint8Int8V(*vp, true, d); changed {
23312 *vp = v
23313 }
23314 }
23315 func (_ fastpathT) DecMapUint8Int8V(v map[uint8]int8, canChange bool,
23316 d *Decoder) (_ map[uint8]int8, changed bool) {
23317 dd, esep := d.d, d.hh.hasElemSeparators()
23318
23319 containerLen := dd.ReadMapStart()
23320 if canChange && v == nil {
23321 xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
23322 v = make(map[uint8]int8, xlen)
23323 changed = true
23324 }
23325 if containerLen == 0 {
23326 dd.ReadMapEnd()
23327 return v, changed
23328 }
23329
23330 var mk uint8
23331 var mv int8
23332 hasLen := containerLen > 0
23333 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
23334 if esep {
23335 dd.ReadMapElemKey()
23336 }
23337 mk = uint8(dd.DecodeUint(8))
23338 if esep {
23339 dd.ReadMapElemValue()
23340 }
23341 if dd.TryDecodeAsNil() {
23342 if d.h.DeleteOnNilMapValue {
23343 delete(v, mk)
23344 } else {
23345 v[mk] = 0
23346 }
23347 continue
23348 }
23349 mv = int8(dd.DecodeInt(8))
23350 if v != nil {
23351 v[mk] = mv
23352 }
23353 }
23354 dd.ReadMapEnd()
23355 return v, changed
23356 }
23357
23358 func (d *Decoder) fastpathDecMapUint8Int16R(f *codecFnInfo, rv reflect.Value) {
23359 if rv.Kind() == reflect.Ptr {
23360 vp := rv2i(rv).(*map[uint8]int16)
23361 if v, changed := fastpathTV.DecMapUint8Int16V(*vp, true, d); changed {
23362 *vp = v
23363 }
23364 return
23365 }
23366 fastpathTV.DecMapUint8Int16V(rv2i(rv).(map[uint8]int16), false, d)
23367 }
23368 func (f fastpathT) DecMapUint8Int16X(vp *map[uint8]int16, d *Decoder) {
23369 if v, changed := f.DecMapUint8Int16V(*vp, true, d); changed {
23370 *vp = v
23371 }
23372 }
23373 func (_ fastpathT) DecMapUint8Int16V(v map[uint8]int16, canChange bool,
23374 d *Decoder) (_ map[uint8]int16, changed bool) {
23375 dd, esep := d.d, d.hh.hasElemSeparators()
23376
23377 containerLen := dd.ReadMapStart()
23378 if canChange && v == nil {
23379 xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
23380 v = make(map[uint8]int16, xlen)
23381 changed = true
23382 }
23383 if containerLen == 0 {
23384 dd.ReadMapEnd()
23385 return v, changed
23386 }
23387
23388 var mk uint8
23389 var mv int16
23390 hasLen := containerLen > 0
23391 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
23392 if esep {
23393 dd.ReadMapElemKey()
23394 }
23395 mk = uint8(dd.DecodeUint(8))
23396 if esep {
23397 dd.ReadMapElemValue()
23398 }
23399 if dd.TryDecodeAsNil() {
23400 if d.h.DeleteOnNilMapValue {
23401 delete(v, mk)
23402 } else {
23403 v[mk] = 0
23404 }
23405 continue
23406 }
23407 mv = int16(dd.DecodeInt(16))
23408 if v != nil {
23409 v[mk] = mv
23410 }
23411 }
23412 dd.ReadMapEnd()
23413 return v, changed
23414 }
23415
23416 func (d *Decoder) fastpathDecMapUint8Int32R(f *codecFnInfo, rv reflect.Value) {
23417 if rv.Kind() == reflect.Ptr {
23418 vp := rv2i(rv).(*map[uint8]int32)
23419 if v, changed := fastpathTV.DecMapUint8Int32V(*vp, true, d); changed {
23420 *vp = v
23421 }
23422 return
23423 }
23424 fastpathTV.DecMapUint8Int32V(rv2i(rv).(map[uint8]int32), false, d)
23425 }
23426 func (f fastpathT) DecMapUint8Int32X(vp *map[uint8]int32, d *Decoder) {
23427 if v, changed := f.DecMapUint8Int32V(*vp, true, d); changed {
23428 *vp = v
23429 }
23430 }
23431 func (_ fastpathT) DecMapUint8Int32V(v map[uint8]int32, canChange bool,
23432 d *Decoder) (_ map[uint8]int32, changed bool) {
23433 dd, esep := d.d, d.hh.hasElemSeparators()
23434
23435 containerLen := dd.ReadMapStart()
23436 if canChange && v == nil {
23437 xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
23438 v = make(map[uint8]int32, xlen)
23439 changed = true
23440 }
23441 if containerLen == 0 {
23442 dd.ReadMapEnd()
23443 return v, changed
23444 }
23445
23446 var mk uint8
23447 var mv int32
23448 hasLen := containerLen > 0
23449 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
23450 if esep {
23451 dd.ReadMapElemKey()
23452 }
23453 mk = uint8(dd.DecodeUint(8))
23454 if esep {
23455 dd.ReadMapElemValue()
23456 }
23457 if dd.TryDecodeAsNil() {
23458 if d.h.DeleteOnNilMapValue {
23459 delete(v, mk)
23460 } else {
23461 v[mk] = 0
23462 }
23463 continue
23464 }
23465 mv = int32(dd.DecodeInt(32))
23466 if v != nil {
23467 v[mk] = mv
23468 }
23469 }
23470 dd.ReadMapEnd()
23471 return v, changed
23472 }
23473
23474 func (d *Decoder) fastpathDecMapUint8Int64R(f *codecFnInfo, rv reflect.Value) {
23475 if rv.Kind() == reflect.Ptr {
23476 vp := rv2i(rv).(*map[uint8]int64)
23477 if v, changed := fastpathTV.DecMapUint8Int64V(*vp, true, d); changed {
23478 *vp = v
23479 }
23480 return
23481 }
23482 fastpathTV.DecMapUint8Int64V(rv2i(rv).(map[uint8]int64), false, d)
23483 }
23484 func (f fastpathT) DecMapUint8Int64X(vp *map[uint8]int64, d *Decoder) {
23485 if v, changed := f.DecMapUint8Int64V(*vp, true, d); changed {
23486 *vp = v
23487 }
23488 }
23489 func (_ fastpathT) DecMapUint8Int64V(v map[uint8]int64, canChange bool,
23490 d *Decoder) (_ map[uint8]int64, changed bool) {
23491 dd, esep := d.d, d.hh.hasElemSeparators()
23492
23493 containerLen := dd.ReadMapStart()
23494 if canChange && v == nil {
23495 xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
23496 v = make(map[uint8]int64, xlen)
23497 changed = true
23498 }
23499 if containerLen == 0 {
23500 dd.ReadMapEnd()
23501 return v, changed
23502 }
23503
23504 var mk uint8
23505 var mv int64
23506 hasLen := containerLen > 0
23507 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
23508 if esep {
23509 dd.ReadMapElemKey()
23510 }
23511 mk = uint8(dd.DecodeUint(8))
23512 if esep {
23513 dd.ReadMapElemValue()
23514 }
23515 if dd.TryDecodeAsNil() {
23516 if d.h.DeleteOnNilMapValue {
23517 delete(v, mk)
23518 } else {
23519 v[mk] = 0
23520 }
23521 continue
23522 }
23523 mv = dd.DecodeInt(64)
23524 if v != nil {
23525 v[mk] = mv
23526 }
23527 }
23528 dd.ReadMapEnd()
23529 return v, changed
23530 }
23531
23532 func (d *Decoder) fastpathDecMapUint8Float32R(f *codecFnInfo, rv reflect.Value) {
23533 if rv.Kind() == reflect.Ptr {
23534 vp := rv2i(rv).(*map[uint8]float32)
23535 if v, changed := fastpathTV.DecMapUint8Float32V(*vp, true, d); changed {
23536 *vp = v
23537 }
23538 return
23539 }
23540 fastpathTV.DecMapUint8Float32V(rv2i(rv).(map[uint8]float32), false, d)
23541 }
23542 func (f fastpathT) DecMapUint8Float32X(vp *map[uint8]float32, d *Decoder) {
23543 if v, changed := f.DecMapUint8Float32V(*vp, true, d); changed {
23544 *vp = v
23545 }
23546 }
23547 func (_ fastpathT) DecMapUint8Float32V(v map[uint8]float32, canChange bool,
23548 d *Decoder) (_ map[uint8]float32, changed bool) {
23549 dd, esep := d.d, d.hh.hasElemSeparators()
23550
23551 containerLen := dd.ReadMapStart()
23552 if canChange && v == nil {
23553 xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
23554 v = make(map[uint8]float32, xlen)
23555 changed = true
23556 }
23557 if containerLen == 0 {
23558 dd.ReadMapEnd()
23559 return v, changed
23560 }
23561
23562 var mk uint8
23563 var mv float32
23564 hasLen := containerLen > 0
23565 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
23566 if esep {
23567 dd.ReadMapElemKey()
23568 }
23569 mk = uint8(dd.DecodeUint(8))
23570 if esep {
23571 dd.ReadMapElemValue()
23572 }
23573 if dd.TryDecodeAsNil() {
23574 if d.h.DeleteOnNilMapValue {
23575 delete(v, mk)
23576 } else {
23577 v[mk] = 0
23578 }
23579 continue
23580 }
23581 mv = float32(dd.DecodeFloat(true))
23582 if v != nil {
23583 v[mk] = mv
23584 }
23585 }
23586 dd.ReadMapEnd()
23587 return v, changed
23588 }
23589
23590 func (d *Decoder) fastpathDecMapUint8Float64R(f *codecFnInfo, rv reflect.Value) {
23591 if rv.Kind() == reflect.Ptr {
23592 vp := rv2i(rv).(*map[uint8]float64)
23593 if v, changed := fastpathTV.DecMapUint8Float64V(*vp, true, d); changed {
23594 *vp = v
23595 }
23596 return
23597 }
23598 fastpathTV.DecMapUint8Float64V(rv2i(rv).(map[uint8]float64), false, d)
23599 }
23600 func (f fastpathT) DecMapUint8Float64X(vp *map[uint8]float64, d *Decoder) {
23601 if v, changed := f.DecMapUint8Float64V(*vp, true, d); changed {
23602 *vp = v
23603 }
23604 }
23605 func (_ fastpathT) DecMapUint8Float64V(v map[uint8]float64, canChange bool,
23606 d *Decoder) (_ map[uint8]float64, changed bool) {
23607 dd, esep := d.d, d.hh.hasElemSeparators()
23608
23609 containerLen := dd.ReadMapStart()
23610 if canChange && v == nil {
23611 xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
23612 v = make(map[uint8]float64, xlen)
23613 changed = true
23614 }
23615 if containerLen == 0 {
23616 dd.ReadMapEnd()
23617 return v, changed
23618 }
23619
23620 var mk uint8
23621 var mv float64
23622 hasLen := containerLen > 0
23623 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
23624 if esep {
23625 dd.ReadMapElemKey()
23626 }
23627 mk = uint8(dd.DecodeUint(8))
23628 if esep {
23629 dd.ReadMapElemValue()
23630 }
23631 if dd.TryDecodeAsNil() {
23632 if d.h.DeleteOnNilMapValue {
23633 delete(v, mk)
23634 } else {
23635 v[mk] = 0
23636 }
23637 continue
23638 }
23639 mv = dd.DecodeFloat(false)
23640 if v != nil {
23641 v[mk] = mv
23642 }
23643 }
23644 dd.ReadMapEnd()
23645 return v, changed
23646 }
23647
23648 func (d *Decoder) fastpathDecMapUint8BoolR(f *codecFnInfo, rv reflect.Value) {
23649 if rv.Kind() == reflect.Ptr {
23650 vp := rv2i(rv).(*map[uint8]bool)
23651 if v, changed := fastpathTV.DecMapUint8BoolV(*vp, true, d); changed {
23652 *vp = v
23653 }
23654 return
23655 }
23656 fastpathTV.DecMapUint8BoolV(rv2i(rv).(map[uint8]bool), false, d)
23657 }
23658 func (f fastpathT) DecMapUint8BoolX(vp *map[uint8]bool, d *Decoder) {
23659 if v, changed := f.DecMapUint8BoolV(*vp, true, d); changed {
23660 *vp = v
23661 }
23662 }
23663 func (_ fastpathT) DecMapUint8BoolV(v map[uint8]bool, canChange bool,
23664 d *Decoder) (_ map[uint8]bool, changed bool) {
23665 dd, esep := d.d, d.hh.hasElemSeparators()
23666
23667 containerLen := dd.ReadMapStart()
23668 if canChange && v == nil {
23669 xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
23670 v = make(map[uint8]bool, xlen)
23671 changed = true
23672 }
23673 if containerLen == 0 {
23674 dd.ReadMapEnd()
23675 return v, changed
23676 }
23677
23678 var mk uint8
23679 var mv bool
23680 hasLen := containerLen > 0
23681 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
23682 if esep {
23683 dd.ReadMapElemKey()
23684 }
23685 mk = uint8(dd.DecodeUint(8))
23686 if esep {
23687 dd.ReadMapElemValue()
23688 }
23689 if dd.TryDecodeAsNil() {
23690 if d.h.DeleteOnNilMapValue {
23691 delete(v, mk)
23692 } else {
23693 v[mk] = false
23694 }
23695 continue
23696 }
23697 mv = dd.DecodeBool()
23698 if v != nil {
23699 v[mk] = mv
23700 }
23701 }
23702 dd.ReadMapEnd()
23703 return v, changed
23704 }
23705
23706 func (d *Decoder) fastpathDecMapUint16IntfR(f *codecFnInfo, rv reflect.Value) {
23707 if rv.Kind() == reflect.Ptr {
23708 vp := rv2i(rv).(*map[uint16]interface{})
23709 if v, changed := fastpathTV.DecMapUint16IntfV(*vp, true, d); changed {
23710 *vp = v
23711 }
23712 return
23713 }
23714 fastpathTV.DecMapUint16IntfV(rv2i(rv).(map[uint16]interface{}), false, d)
23715 }
23716 func (f fastpathT) DecMapUint16IntfX(vp *map[uint16]interface{}, d *Decoder) {
23717 if v, changed := f.DecMapUint16IntfV(*vp, true, d); changed {
23718 *vp = v
23719 }
23720 }
23721 func (_ fastpathT) DecMapUint16IntfV(v map[uint16]interface{}, canChange bool,
23722 d *Decoder) (_ map[uint16]interface{}, changed bool) {
23723 dd, esep := d.d, d.hh.hasElemSeparators()
23724
23725 containerLen := dd.ReadMapStart()
23726 if canChange && v == nil {
23727 xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
23728 v = make(map[uint16]interface{}, xlen)
23729 changed = true
23730 }
23731 if containerLen == 0 {
23732 dd.ReadMapEnd()
23733 return v, changed
23734 }
23735 mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
23736 var mk uint16
23737 var mv interface{}
23738 hasLen := containerLen > 0
23739 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
23740 if esep {
23741 dd.ReadMapElemKey()
23742 }
23743 mk = uint16(dd.DecodeUint(16))
23744 if esep {
23745 dd.ReadMapElemValue()
23746 }
23747 if dd.TryDecodeAsNil() {
23748 if d.h.DeleteOnNilMapValue {
23749 delete(v, mk)
23750 } else {
23751 v[mk] = nil
23752 }
23753 continue
23754 }
23755 if mapGet {
23756 mv = v[mk]
23757 } else {
23758 mv = nil
23759 }
23760 d.decode(&mv)
23761 if v != nil {
23762 v[mk] = mv
23763 }
23764 }
23765 dd.ReadMapEnd()
23766 return v, changed
23767 }
23768
23769 func (d *Decoder) fastpathDecMapUint16StringR(f *codecFnInfo, rv reflect.Value) {
23770 if rv.Kind() == reflect.Ptr {
23771 vp := rv2i(rv).(*map[uint16]string)
23772 if v, changed := fastpathTV.DecMapUint16StringV(*vp, true, d); changed {
23773 *vp = v
23774 }
23775 return
23776 }
23777 fastpathTV.DecMapUint16StringV(rv2i(rv).(map[uint16]string), false, d)
23778 }
23779 func (f fastpathT) DecMapUint16StringX(vp *map[uint16]string, d *Decoder) {
23780 if v, changed := f.DecMapUint16StringV(*vp, true, d); changed {
23781 *vp = v
23782 }
23783 }
23784 func (_ fastpathT) DecMapUint16StringV(v map[uint16]string, canChange bool,
23785 d *Decoder) (_ map[uint16]string, changed bool) {
23786 dd, esep := d.d, d.hh.hasElemSeparators()
23787
23788 containerLen := dd.ReadMapStart()
23789 if canChange && v == nil {
23790 xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
23791 v = make(map[uint16]string, xlen)
23792 changed = true
23793 }
23794 if containerLen == 0 {
23795 dd.ReadMapEnd()
23796 return v, changed
23797 }
23798
23799 var mk uint16
23800 var mv string
23801 hasLen := containerLen > 0
23802 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
23803 if esep {
23804 dd.ReadMapElemKey()
23805 }
23806 mk = uint16(dd.DecodeUint(16))
23807 if esep {
23808 dd.ReadMapElemValue()
23809 }
23810 if dd.TryDecodeAsNil() {
23811 if d.h.DeleteOnNilMapValue {
23812 delete(v, mk)
23813 } else {
23814 v[mk] = ""
23815 }
23816 continue
23817 }
23818 mv = dd.DecodeString()
23819 if v != nil {
23820 v[mk] = mv
23821 }
23822 }
23823 dd.ReadMapEnd()
23824 return v, changed
23825 }
23826
23827 func (d *Decoder) fastpathDecMapUint16UintR(f *codecFnInfo, rv reflect.Value) {
23828 if rv.Kind() == reflect.Ptr {
23829 vp := rv2i(rv).(*map[uint16]uint)
23830 if v, changed := fastpathTV.DecMapUint16UintV(*vp, true, d); changed {
23831 *vp = v
23832 }
23833 return
23834 }
23835 fastpathTV.DecMapUint16UintV(rv2i(rv).(map[uint16]uint), false, d)
23836 }
23837 func (f fastpathT) DecMapUint16UintX(vp *map[uint16]uint, d *Decoder) {
23838 if v, changed := f.DecMapUint16UintV(*vp, true, d); changed {
23839 *vp = v
23840 }
23841 }
23842 func (_ fastpathT) DecMapUint16UintV(v map[uint16]uint, canChange bool,
23843 d *Decoder) (_ map[uint16]uint, changed bool) {
23844 dd, esep := d.d, d.hh.hasElemSeparators()
23845
23846 containerLen := dd.ReadMapStart()
23847 if canChange && v == nil {
23848 xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
23849 v = make(map[uint16]uint, xlen)
23850 changed = true
23851 }
23852 if containerLen == 0 {
23853 dd.ReadMapEnd()
23854 return v, changed
23855 }
23856
23857 var mk uint16
23858 var mv uint
23859 hasLen := containerLen > 0
23860 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
23861 if esep {
23862 dd.ReadMapElemKey()
23863 }
23864 mk = uint16(dd.DecodeUint(16))
23865 if esep {
23866 dd.ReadMapElemValue()
23867 }
23868 if dd.TryDecodeAsNil() {
23869 if d.h.DeleteOnNilMapValue {
23870 delete(v, mk)
23871 } else {
23872 v[mk] = 0
23873 }
23874 continue
23875 }
23876 mv = uint(dd.DecodeUint(uintBitsize))
23877 if v != nil {
23878 v[mk] = mv
23879 }
23880 }
23881 dd.ReadMapEnd()
23882 return v, changed
23883 }
23884
23885 func (d *Decoder) fastpathDecMapUint16Uint8R(f *codecFnInfo, rv reflect.Value) {
23886 if rv.Kind() == reflect.Ptr {
23887 vp := rv2i(rv).(*map[uint16]uint8)
23888 if v, changed := fastpathTV.DecMapUint16Uint8V(*vp, true, d); changed {
23889 *vp = v
23890 }
23891 return
23892 }
23893 fastpathTV.DecMapUint16Uint8V(rv2i(rv).(map[uint16]uint8), false, d)
23894 }
23895 func (f fastpathT) DecMapUint16Uint8X(vp *map[uint16]uint8, d *Decoder) {
23896 if v, changed := f.DecMapUint16Uint8V(*vp, true, d); changed {
23897 *vp = v
23898 }
23899 }
23900 func (_ fastpathT) DecMapUint16Uint8V(v map[uint16]uint8, canChange bool,
23901 d *Decoder) (_ map[uint16]uint8, changed bool) {
23902 dd, esep := d.d, d.hh.hasElemSeparators()
23903
23904 containerLen := dd.ReadMapStart()
23905 if canChange && v == nil {
23906 xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
23907 v = make(map[uint16]uint8, xlen)
23908 changed = true
23909 }
23910 if containerLen == 0 {
23911 dd.ReadMapEnd()
23912 return v, changed
23913 }
23914
23915 var mk uint16
23916 var mv uint8
23917 hasLen := containerLen > 0
23918 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
23919 if esep {
23920 dd.ReadMapElemKey()
23921 }
23922 mk = uint16(dd.DecodeUint(16))
23923 if esep {
23924 dd.ReadMapElemValue()
23925 }
23926 if dd.TryDecodeAsNil() {
23927 if d.h.DeleteOnNilMapValue {
23928 delete(v, mk)
23929 } else {
23930 v[mk] = 0
23931 }
23932 continue
23933 }
23934 mv = uint8(dd.DecodeUint(8))
23935 if v != nil {
23936 v[mk] = mv
23937 }
23938 }
23939 dd.ReadMapEnd()
23940 return v, changed
23941 }
23942
23943 func (d *Decoder) fastpathDecMapUint16Uint16R(f *codecFnInfo, rv reflect.Value) {
23944 if rv.Kind() == reflect.Ptr {
23945 vp := rv2i(rv).(*map[uint16]uint16)
23946 if v, changed := fastpathTV.DecMapUint16Uint16V(*vp, true, d); changed {
23947 *vp = v
23948 }
23949 return
23950 }
23951 fastpathTV.DecMapUint16Uint16V(rv2i(rv).(map[uint16]uint16), false, d)
23952 }
23953 func (f fastpathT) DecMapUint16Uint16X(vp *map[uint16]uint16, d *Decoder) {
23954 if v, changed := f.DecMapUint16Uint16V(*vp, true, d); changed {
23955 *vp = v
23956 }
23957 }
23958 func (_ fastpathT) DecMapUint16Uint16V(v map[uint16]uint16, canChange bool,
23959 d *Decoder) (_ map[uint16]uint16, changed bool) {
23960 dd, esep := d.d, d.hh.hasElemSeparators()
23961
23962 containerLen := dd.ReadMapStart()
23963 if canChange && v == nil {
23964 xlen := decInferLen(containerLen, d.h.MaxInitLen, 4)
23965 v = make(map[uint16]uint16, xlen)
23966 changed = true
23967 }
23968 if containerLen == 0 {
23969 dd.ReadMapEnd()
23970 return v, changed
23971 }
23972
23973 var mk uint16
23974 var mv uint16
23975 hasLen := containerLen > 0
23976 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
23977 if esep {
23978 dd.ReadMapElemKey()
23979 }
23980 mk = uint16(dd.DecodeUint(16))
23981 if esep {
23982 dd.ReadMapElemValue()
23983 }
23984 if dd.TryDecodeAsNil() {
23985 if d.h.DeleteOnNilMapValue {
23986 delete(v, mk)
23987 } else {
23988 v[mk] = 0
23989 }
23990 continue
23991 }
23992 mv = uint16(dd.DecodeUint(16))
23993 if v != nil {
23994 v[mk] = mv
23995 }
23996 }
23997 dd.ReadMapEnd()
23998 return v, changed
23999 }
24000
24001 func (d *Decoder) fastpathDecMapUint16Uint32R(f *codecFnInfo, rv reflect.Value) {
24002 if rv.Kind() == reflect.Ptr {
24003 vp := rv2i(rv).(*map[uint16]uint32)
24004 if v, changed := fastpathTV.DecMapUint16Uint32V(*vp, true, d); changed {
24005 *vp = v
24006 }
24007 return
24008 }
24009 fastpathTV.DecMapUint16Uint32V(rv2i(rv).(map[uint16]uint32), false, d)
24010 }
24011 func (f fastpathT) DecMapUint16Uint32X(vp *map[uint16]uint32, d *Decoder) {
24012 if v, changed := f.DecMapUint16Uint32V(*vp, true, d); changed {
24013 *vp = v
24014 }
24015 }
24016 func (_ fastpathT) DecMapUint16Uint32V(v map[uint16]uint32, canChange bool,
24017 d *Decoder) (_ map[uint16]uint32, changed bool) {
24018 dd, esep := d.d, d.hh.hasElemSeparators()
24019
24020 containerLen := dd.ReadMapStart()
24021 if canChange && v == nil {
24022 xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
24023 v = make(map[uint16]uint32, xlen)
24024 changed = true
24025 }
24026 if containerLen == 0 {
24027 dd.ReadMapEnd()
24028 return v, changed
24029 }
24030
24031 var mk uint16
24032 var mv uint32
24033 hasLen := containerLen > 0
24034 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
24035 if esep {
24036 dd.ReadMapElemKey()
24037 }
24038 mk = uint16(dd.DecodeUint(16))
24039 if esep {
24040 dd.ReadMapElemValue()
24041 }
24042 if dd.TryDecodeAsNil() {
24043 if d.h.DeleteOnNilMapValue {
24044 delete(v, mk)
24045 } else {
24046 v[mk] = 0
24047 }
24048 continue
24049 }
24050 mv = uint32(dd.DecodeUint(32))
24051 if v != nil {
24052 v[mk] = mv
24053 }
24054 }
24055 dd.ReadMapEnd()
24056 return v, changed
24057 }
24058
24059 func (d *Decoder) fastpathDecMapUint16Uint64R(f *codecFnInfo, rv reflect.Value) {
24060 if rv.Kind() == reflect.Ptr {
24061 vp := rv2i(rv).(*map[uint16]uint64)
24062 if v, changed := fastpathTV.DecMapUint16Uint64V(*vp, true, d); changed {
24063 *vp = v
24064 }
24065 return
24066 }
24067 fastpathTV.DecMapUint16Uint64V(rv2i(rv).(map[uint16]uint64), false, d)
24068 }
24069 func (f fastpathT) DecMapUint16Uint64X(vp *map[uint16]uint64, d *Decoder) {
24070 if v, changed := f.DecMapUint16Uint64V(*vp, true, d); changed {
24071 *vp = v
24072 }
24073 }
24074 func (_ fastpathT) DecMapUint16Uint64V(v map[uint16]uint64, canChange bool,
24075 d *Decoder) (_ map[uint16]uint64, changed bool) {
24076 dd, esep := d.d, d.hh.hasElemSeparators()
24077
24078 containerLen := dd.ReadMapStart()
24079 if canChange && v == nil {
24080 xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
24081 v = make(map[uint16]uint64, xlen)
24082 changed = true
24083 }
24084 if containerLen == 0 {
24085 dd.ReadMapEnd()
24086 return v, changed
24087 }
24088
24089 var mk uint16
24090 var mv uint64
24091 hasLen := containerLen > 0
24092 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
24093 if esep {
24094 dd.ReadMapElemKey()
24095 }
24096 mk = uint16(dd.DecodeUint(16))
24097 if esep {
24098 dd.ReadMapElemValue()
24099 }
24100 if dd.TryDecodeAsNil() {
24101 if d.h.DeleteOnNilMapValue {
24102 delete(v, mk)
24103 } else {
24104 v[mk] = 0
24105 }
24106 continue
24107 }
24108 mv = dd.DecodeUint(64)
24109 if v != nil {
24110 v[mk] = mv
24111 }
24112 }
24113 dd.ReadMapEnd()
24114 return v, changed
24115 }
24116
24117 func (d *Decoder) fastpathDecMapUint16UintptrR(f *codecFnInfo, rv reflect.Value) {
24118 if rv.Kind() == reflect.Ptr {
24119 vp := rv2i(rv).(*map[uint16]uintptr)
24120 if v, changed := fastpathTV.DecMapUint16UintptrV(*vp, true, d); changed {
24121 *vp = v
24122 }
24123 return
24124 }
24125 fastpathTV.DecMapUint16UintptrV(rv2i(rv).(map[uint16]uintptr), false, d)
24126 }
24127 func (f fastpathT) DecMapUint16UintptrX(vp *map[uint16]uintptr, d *Decoder) {
24128 if v, changed := f.DecMapUint16UintptrV(*vp, true, d); changed {
24129 *vp = v
24130 }
24131 }
24132 func (_ fastpathT) DecMapUint16UintptrV(v map[uint16]uintptr, canChange bool,
24133 d *Decoder) (_ map[uint16]uintptr, changed bool) {
24134 dd, esep := d.d, d.hh.hasElemSeparators()
24135
24136 containerLen := dd.ReadMapStart()
24137 if canChange && v == nil {
24138 xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
24139 v = make(map[uint16]uintptr, xlen)
24140 changed = true
24141 }
24142 if containerLen == 0 {
24143 dd.ReadMapEnd()
24144 return v, changed
24145 }
24146
24147 var mk uint16
24148 var mv uintptr
24149 hasLen := containerLen > 0
24150 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
24151 if esep {
24152 dd.ReadMapElemKey()
24153 }
24154 mk = uint16(dd.DecodeUint(16))
24155 if esep {
24156 dd.ReadMapElemValue()
24157 }
24158 if dd.TryDecodeAsNil() {
24159 if d.h.DeleteOnNilMapValue {
24160 delete(v, mk)
24161 } else {
24162 v[mk] = 0
24163 }
24164 continue
24165 }
24166 mv = uintptr(dd.DecodeUint(uintBitsize))
24167 if v != nil {
24168 v[mk] = mv
24169 }
24170 }
24171 dd.ReadMapEnd()
24172 return v, changed
24173 }
24174
24175 func (d *Decoder) fastpathDecMapUint16IntR(f *codecFnInfo, rv reflect.Value) {
24176 if rv.Kind() == reflect.Ptr {
24177 vp := rv2i(rv).(*map[uint16]int)
24178 if v, changed := fastpathTV.DecMapUint16IntV(*vp, true, d); changed {
24179 *vp = v
24180 }
24181 return
24182 }
24183 fastpathTV.DecMapUint16IntV(rv2i(rv).(map[uint16]int), false, d)
24184 }
24185 func (f fastpathT) DecMapUint16IntX(vp *map[uint16]int, d *Decoder) {
24186 if v, changed := f.DecMapUint16IntV(*vp, true, d); changed {
24187 *vp = v
24188 }
24189 }
24190 func (_ fastpathT) DecMapUint16IntV(v map[uint16]int, canChange bool,
24191 d *Decoder) (_ map[uint16]int, changed bool) {
24192 dd, esep := d.d, d.hh.hasElemSeparators()
24193
24194 containerLen := dd.ReadMapStart()
24195 if canChange && v == nil {
24196 xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
24197 v = make(map[uint16]int, xlen)
24198 changed = true
24199 }
24200 if containerLen == 0 {
24201 dd.ReadMapEnd()
24202 return v, changed
24203 }
24204
24205 var mk uint16
24206 var mv int
24207 hasLen := containerLen > 0
24208 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
24209 if esep {
24210 dd.ReadMapElemKey()
24211 }
24212 mk = uint16(dd.DecodeUint(16))
24213 if esep {
24214 dd.ReadMapElemValue()
24215 }
24216 if dd.TryDecodeAsNil() {
24217 if d.h.DeleteOnNilMapValue {
24218 delete(v, mk)
24219 } else {
24220 v[mk] = 0
24221 }
24222 continue
24223 }
24224 mv = int(dd.DecodeInt(intBitsize))
24225 if v != nil {
24226 v[mk] = mv
24227 }
24228 }
24229 dd.ReadMapEnd()
24230 return v, changed
24231 }
24232
24233 func (d *Decoder) fastpathDecMapUint16Int8R(f *codecFnInfo, rv reflect.Value) {
24234 if rv.Kind() == reflect.Ptr {
24235 vp := rv2i(rv).(*map[uint16]int8)
24236 if v, changed := fastpathTV.DecMapUint16Int8V(*vp, true, d); changed {
24237 *vp = v
24238 }
24239 return
24240 }
24241 fastpathTV.DecMapUint16Int8V(rv2i(rv).(map[uint16]int8), false, d)
24242 }
24243 func (f fastpathT) DecMapUint16Int8X(vp *map[uint16]int8, d *Decoder) {
24244 if v, changed := f.DecMapUint16Int8V(*vp, true, d); changed {
24245 *vp = v
24246 }
24247 }
24248 func (_ fastpathT) DecMapUint16Int8V(v map[uint16]int8, canChange bool,
24249 d *Decoder) (_ map[uint16]int8, changed bool) {
24250 dd, esep := d.d, d.hh.hasElemSeparators()
24251
24252 containerLen := dd.ReadMapStart()
24253 if canChange && v == nil {
24254 xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
24255 v = make(map[uint16]int8, xlen)
24256 changed = true
24257 }
24258 if containerLen == 0 {
24259 dd.ReadMapEnd()
24260 return v, changed
24261 }
24262
24263 var mk uint16
24264 var mv int8
24265 hasLen := containerLen > 0
24266 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
24267 if esep {
24268 dd.ReadMapElemKey()
24269 }
24270 mk = uint16(dd.DecodeUint(16))
24271 if esep {
24272 dd.ReadMapElemValue()
24273 }
24274 if dd.TryDecodeAsNil() {
24275 if d.h.DeleteOnNilMapValue {
24276 delete(v, mk)
24277 } else {
24278 v[mk] = 0
24279 }
24280 continue
24281 }
24282 mv = int8(dd.DecodeInt(8))
24283 if v != nil {
24284 v[mk] = mv
24285 }
24286 }
24287 dd.ReadMapEnd()
24288 return v, changed
24289 }
24290
24291 func (d *Decoder) fastpathDecMapUint16Int16R(f *codecFnInfo, rv reflect.Value) {
24292 if rv.Kind() == reflect.Ptr {
24293 vp := rv2i(rv).(*map[uint16]int16)
24294 if v, changed := fastpathTV.DecMapUint16Int16V(*vp, true, d); changed {
24295 *vp = v
24296 }
24297 return
24298 }
24299 fastpathTV.DecMapUint16Int16V(rv2i(rv).(map[uint16]int16), false, d)
24300 }
24301 func (f fastpathT) DecMapUint16Int16X(vp *map[uint16]int16, d *Decoder) {
24302 if v, changed := f.DecMapUint16Int16V(*vp, true, d); changed {
24303 *vp = v
24304 }
24305 }
24306 func (_ fastpathT) DecMapUint16Int16V(v map[uint16]int16, canChange bool,
24307 d *Decoder) (_ map[uint16]int16, changed bool) {
24308 dd, esep := d.d, d.hh.hasElemSeparators()
24309
24310 containerLen := dd.ReadMapStart()
24311 if canChange && v == nil {
24312 xlen := decInferLen(containerLen, d.h.MaxInitLen, 4)
24313 v = make(map[uint16]int16, xlen)
24314 changed = true
24315 }
24316 if containerLen == 0 {
24317 dd.ReadMapEnd()
24318 return v, changed
24319 }
24320
24321 var mk uint16
24322 var mv int16
24323 hasLen := containerLen > 0
24324 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
24325 if esep {
24326 dd.ReadMapElemKey()
24327 }
24328 mk = uint16(dd.DecodeUint(16))
24329 if esep {
24330 dd.ReadMapElemValue()
24331 }
24332 if dd.TryDecodeAsNil() {
24333 if d.h.DeleteOnNilMapValue {
24334 delete(v, mk)
24335 } else {
24336 v[mk] = 0
24337 }
24338 continue
24339 }
24340 mv = int16(dd.DecodeInt(16))
24341 if v != nil {
24342 v[mk] = mv
24343 }
24344 }
24345 dd.ReadMapEnd()
24346 return v, changed
24347 }
24348
24349 func (d *Decoder) fastpathDecMapUint16Int32R(f *codecFnInfo, rv reflect.Value) {
24350 if rv.Kind() == reflect.Ptr {
24351 vp := rv2i(rv).(*map[uint16]int32)
24352 if v, changed := fastpathTV.DecMapUint16Int32V(*vp, true, d); changed {
24353 *vp = v
24354 }
24355 return
24356 }
24357 fastpathTV.DecMapUint16Int32V(rv2i(rv).(map[uint16]int32), false, d)
24358 }
24359 func (f fastpathT) DecMapUint16Int32X(vp *map[uint16]int32, d *Decoder) {
24360 if v, changed := f.DecMapUint16Int32V(*vp, true, d); changed {
24361 *vp = v
24362 }
24363 }
24364 func (_ fastpathT) DecMapUint16Int32V(v map[uint16]int32, canChange bool,
24365 d *Decoder) (_ map[uint16]int32, changed bool) {
24366 dd, esep := d.d, d.hh.hasElemSeparators()
24367
24368 containerLen := dd.ReadMapStart()
24369 if canChange && v == nil {
24370 xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
24371 v = make(map[uint16]int32, xlen)
24372 changed = true
24373 }
24374 if containerLen == 0 {
24375 dd.ReadMapEnd()
24376 return v, changed
24377 }
24378
24379 var mk uint16
24380 var mv int32
24381 hasLen := containerLen > 0
24382 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
24383 if esep {
24384 dd.ReadMapElemKey()
24385 }
24386 mk = uint16(dd.DecodeUint(16))
24387 if esep {
24388 dd.ReadMapElemValue()
24389 }
24390 if dd.TryDecodeAsNil() {
24391 if d.h.DeleteOnNilMapValue {
24392 delete(v, mk)
24393 } else {
24394 v[mk] = 0
24395 }
24396 continue
24397 }
24398 mv = int32(dd.DecodeInt(32))
24399 if v != nil {
24400 v[mk] = mv
24401 }
24402 }
24403 dd.ReadMapEnd()
24404 return v, changed
24405 }
24406
24407 func (d *Decoder) fastpathDecMapUint16Int64R(f *codecFnInfo, rv reflect.Value) {
24408 if rv.Kind() == reflect.Ptr {
24409 vp := rv2i(rv).(*map[uint16]int64)
24410 if v, changed := fastpathTV.DecMapUint16Int64V(*vp, true, d); changed {
24411 *vp = v
24412 }
24413 return
24414 }
24415 fastpathTV.DecMapUint16Int64V(rv2i(rv).(map[uint16]int64), false, d)
24416 }
24417 func (f fastpathT) DecMapUint16Int64X(vp *map[uint16]int64, d *Decoder) {
24418 if v, changed := f.DecMapUint16Int64V(*vp, true, d); changed {
24419 *vp = v
24420 }
24421 }
24422 func (_ fastpathT) DecMapUint16Int64V(v map[uint16]int64, canChange bool,
24423 d *Decoder) (_ map[uint16]int64, changed bool) {
24424 dd, esep := d.d, d.hh.hasElemSeparators()
24425
24426 containerLen := dd.ReadMapStart()
24427 if canChange && v == nil {
24428 xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
24429 v = make(map[uint16]int64, xlen)
24430 changed = true
24431 }
24432 if containerLen == 0 {
24433 dd.ReadMapEnd()
24434 return v, changed
24435 }
24436
24437 var mk uint16
24438 var mv int64
24439 hasLen := containerLen > 0
24440 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
24441 if esep {
24442 dd.ReadMapElemKey()
24443 }
24444 mk = uint16(dd.DecodeUint(16))
24445 if esep {
24446 dd.ReadMapElemValue()
24447 }
24448 if dd.TryDecodeAsNil() {
24449 if d.h.DeleteOnNilMapValue {
24450 delete(v, mk)
24451 } else {
24452 v[mk] = 0
24453 }
24454 continue
24455 }
24456 mv = dd.DecodeInt(64)
24457 if v != nil {
24458 v[mk] = mv
24459 }
24460 }
24461 dd.ReadMapEnd()
24462 return v, changed
24463 }
24464
24465 func (d *Decoder) fastpathDecMapUint16Float32R(f *codecFnInfo, rv reflect.Value) {
24466 if rv.Kind() == reflect.Ptr {
24467 vp := rv2i(rv).(*map[uint16]float32)
24468 if v, changed := fastpathTV.DecMapUint16Float32V(*vp, true, d); changed {
24469 *vp = v
24470 }
24471 return
24472 }
24473 fastpathTV.DecMapUint16Float32V(rv2i(rv).(map[uint16]float32), false, d)
24474 }
24475 func (f fastpathT) DecMapUint16Float32X(vp *map[uint16]float32, d *Decoder) {
24476 if v, changed := f.DecMapUint16Float32V(*vp, true, d); changed {
24477 *vp = v
24478 }
24479 }
24480 func (_ fastpathT) DecMapUint16Float32V(v map[uint16]float32, canChange bool,
24481 d *Decoder) (_ map[uint16]float32, changed bool) {
24482 dd, esep := d.d, d.hh.hasElemSeparators()
24483
24484 containerLen := dd.ReadMapStart()
24485 if canChange && v == nil {
24486 xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
24487 v = make(map[uint16]float32, xlen)
24488 changed = true
24489 }
24490 if containerLen == 0 {
24491 dd.ReadMapEnd()
24492 return v, changed
24493 }
24494
24495 var mk uint16
24496 var mv float32
24497 hasLen := containerLen > 0
24498 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
24499 if esep {
24500 dd.ReadMapElemKey()
24501 }
24502 mk = uint16(dd.DecodeUint(16))
24503 if esep {
24504 dd.ReadMapElemValue()
24505 }
24506 if dd.TryDecodeAsNil() {
24507 if d.h.DeleteOnNilMapValue {
24508 delete(v, mk)
24509 } else {
24510 v[mk] = 0
24511 }
24512 continue
24513 }
24514 mv = float32(dd.DecodeFloat(true))
24515 if v != nil {
24516 v[mk] = mv
24517 }
24518 }
24519 dd.ReadMapEnd()
24520 return v, changed
24521 }
24522
24523 func (d *Decoder) fastpathDecMapUint16Float64R(f *codecFnInfo, rv reflect.Value) {
24524 if rv.Kind() == reflect.Ptr {
24525 vp := rv2i(rv).(*map[uint16]float64)
24526 if v, changed := fastpathTV.DecMapUint16Float64V(*vp, true, d); changed {
24527 *vp = v
24528 }
24529 return
24530 }
24531 fastpathTV.DecMapUint16Float64V(rv2i(rv).(map[uint16]float64), false, d)
24532 }
24533 func (f fastpathT) DecMapUint16Float64X(vp *map[uint16]float64, d *Decoder) {
24534 if v, changed := f.DecMapUint16Float64V(*vp, true, d); changed {
24535 *vp = v
24536 }
24537 }
24538 func (_ fastpathT) DecMapUint16Float64V(v map[uint16]float64, canChange bool,
24539 d *Decoder) (_ map[uint16]float64, changed bool) {
24540 dd, esep := d.d, d.hh.hasElemSeparators()
24541
24542 containerLen := dd.ReadMapStart()
24543 if canChange && v == nil {
24544 xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
24545 v = make(map[uint16]float64, xlen)
24546 changed = true
24547 }
24548 if containerLen == 0 {
24549 dd.ReadMapEnd()
24550 return v, changed
24551 }
24552
24553 var mk uint16
24554 var mv float64
24555 hasLen := containerLen > 0
24556 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
24557 if esep {
24558 dd.ReadMapElemKey()
24559 }
24560 mk = uint16(dd.DecodeUint(16))
24561 if esep {
24562 dd.ReadMapElemValue()
24563 }
24564 if dd.TryDecodeAsNil() {
24565 if d.h.DeleteOnNilMapValue {
24566 delete(v, mk)
24567 } else {
24568 v[mk] = 0
24569 }
24570 continue
24571 }
24572 mv = dd.DecodeFloat(false)
24573 if v != nil {
24574 v[mk] = mv
24575 }
24576 }
24577 dd.ReadMapEnd()
24578 return v, changed
24579 }
24580
24581 func (d *Decoder) fastpathDecMapUint16BoolR(f *codecFnInfo, rv reflect.Value) {
24582 if rv.Kind() == reflect.Ptr {
24583 vp := rv2i(rv).(*map[uint16]bool)
24584 if v, changed := fastpathTV.DecMapUint16BoolV(*vp, true, d); changed {
24585 *vp = v
24586 }
24587 return
24588 }
24589 fastpathTV.DecMapUint16BoolV(rv2i(rv).(map[uint16]bool), false, d)
24590 }
24591 func (f fastpathT) DecMapUint16BoolX(vp *map[uint16]bool, d *Decoder) {
24592 if v, changed := f.DecMapUint16BoolV(*vp, true, d); changed {
24593 *vp = v
24594 }
24595 }
24596 func (_ fastpathT) DecMapUint16BoolV(v map[uint16]bool, canChange bool,
24597 d *Decoder) (_ map[uint16]bool, changed bool) {
24598 dd, esep := d.d, d.hh.hasElemSeparators()
24599
24600 containerLen := dd.ReadMapStart()
24601 if canChange && v == nil {
24602 xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
24603 v = make(map[uint16]bool, xlen)
24604 changed = true
24605 }
24606 if containerLen == 0 {
24607 dd.ReadMapEnd()
24608 return v, changed
24609 }
24610
24611 var mk uint16
24612 var mv bool
24613 hasLen := containerLen > 0
24614 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
24615 if esep {
24616 dd.ReadMapElemKey()
24617 }
24618 mk = uint16(dd.DecodeUint(16))
24619 if esep {
24620 dd.ReadMapElemValue()
24621 }
24622 if dd.TryDecodeAsNil() {
24623 if d.h.DeleteOnNilMapValue {
24624 delete(v, mk)
24625 } else {
24626 v[mk] = false
24627 }
24628 continue
24629 }
24630 mv = dd.DecodeBool()
24631 if v != nil {
24632 v[mk] = mv
24633 }
24634 }
24635 dd.ReadMapEnd()
24636 return v, changed
24637 }
24638
24639 func (d *Decoder) fastpathDecMapUint32IntfR(f *codecFnInfo, rv reflect.Value) {
24640 if rv.Kind() == reflect.Ptr {
24641 vp := rv2i(rv).(*map[uint32]interface{})
24642 if v, changed := fastpathTV.DecMapUint32IntfV(*vp, true, d); changed {
24643 *vp = v
24644 }
24645 return
24646 }
24647 fastpathTV.DecMapUint32IntfV(rv2i(rv).(map[uint32]interface{}), false, d)
24648 }
24649 func (f fastpathT) DecMapUint32IntfX(vp *map[uint32]interface{}, d *Decoder) {
24650 if v, changed := f.DecMapUint32IntfV(*vp, true, d); changed {
24651 *vp = v
24652 }
24653 }
24654 func (_ fastpathT) DecMapUint32IntfV(v map[uint32]interface{}, canChange bool,
24655 d *Decoder) (_ map[uint32]interface{}, changed bool) {
24656 dd, esep := d.d, d.hh.hasElemSeparators()
24657
24658 containerLen := dd.ReadMapStart()
24659 if canChange && v == nil {
24660 xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
24661 v = make(map[uint32]interface{}, xlen)
24662 changed = true
24663 }
24664 if containerLen == 0 {
24665 dd.ReadMapEnd()
24666 return v, changed
24667 }
24668 mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
24669 var mk uint32
24670 var mv interface{}
24671 hasLen := containerLen > 0
24672 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
24673 if esep {
24674 dd.ReadMapElemKey()
24675 }
24676 mk = uint32(dd.DecodeUint(32))
24677 if esep {
24678 dd.ReadMapElemValue()
24679 }
24680 if dd.TryDecodeAsNil() {
24681 if d.h.DeleteOnNilMapValue {
24682 delete(v, mk)
24683 } else {
24684 v[mk] = nil
24685 }
24686 continue
24687 }
24688 if mapGet {
24689 mv = v[mk]
24690 } else {
24691 mv = nil
24692 }
24693 d.decode(&mv)
24694 if v != nil {
24695 v[mk] = mv
24696 }
24697 }
24698 dd.ReadMapEnd()
24699 return v, changed
24700 }
24701
24702 func (d *Decoder) fastpathDecMapUint32StringR(f *codecFnInfo, rv reflect.Value) {
24703 if rv.Kind() == reflect.Ptr {
24704 vp := rv2i(rv).(*map[uint32]string)
24705 if v, changed := fastpathTV.DecMapUint32StringV(*vp, true, d); changed {
24706 *vp = v
24707 }
24708 return
24709 }
24710 fastpathTV.DecMapUint32StringV(rv2i(rv).(map[uint32]string), false, d)
24711 }
24712 func (f fastpathT) DecMapUint32StringX(vp *map[uint32]string, d *Decoder) {
24713 if v, changed := f.DecMapUint32StringV(*vp, true, d); changed {
24714 *vp = v
24715 }
24716 }
24717 func (_ fastpathT) DecMapUint32StringV(v map[uint32]string, canChange bool,
24718 d *Decoder) (_ map[uint32]string, changed bool) {
24719 dd, esep := d.d, d.hh.hasElemSeparators()
24720
24721 containerLen := dd.ReadMapStart()
24722 if canChange && v == nil {
24723 xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
24724 v = make(map[uint32]string, xlen)
24725 changed = true
24726 }
24727 if containerLen == 0 {
24728 dd.ReadMapEnd()
24729 return v, changed
24730 }
24731
24732 var mk uint32
24733 var mv string
24734 hasLen := containerLen > 0
24735 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
24736 if esep {
24737 dd.ReadMapElemKey()
24738 }
24739 mk = uint32(dd.DecodeUint(32))
24740 if esep {
24741 dd.ReadMapElemValue()
24742 }
24743 if dd.TryDecodeAsNil() {
24744 if d.h.DeleteOnNilMapValue {
24745 delete(v, mk)
24746 } else {
24747 v[mk] = ""
24748 }
24749 continue
24750 }
24751 mv = dd.DecodeString()
24752 if v != nil {
24753 v[mk] = mv
24754 }
24755 }
24756 dd.ReadMapEnd()
24757 return v, changed
24758 }
24759
24760 func (d *Decoder) fastpathDecMapUint32UintR(f *codecFnInfo, rv reflect.Value) {
24761 if rv.Kind() == reflect.Ptr {
24762 vp := rv2i(rv).(*map[uint32]uint)
24763 if v, changed := fastpathTV.DecMapUint32UintV(*vp, true, d); changed {
24764 *vp = v
24765 }
24766 return
24767 }
24768 fastpathTV.DecMapUint32UintV(rv2i(rv).(map[uint32]uint), false, d)
24769 }
24770 func (f fastpathT) DecMapUint32UintX(vp *map[uint32]uint, d *Decoder) {
24771 if v, changed := f.DecMapUint32UintV(*vp, true, d); changed {
24772 *vp = v
24773 }
24774 }
24775 func (_ fastpathT) DecMapUint32UintV(v map[uint32]uint, canChange bool,
24776 d *Decoder) (_ map[uint32]uint, changed bool) {
24777 dd, esep := d.d, d.hh.hasElemSeparators()
24778
24779 containerLen := dd.ReadMapStart()
24780 if canChange && v == nil {
24781 xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
24782 v = make(map[uint32]uint, xlen)
24783 changed = true
24784 }
24785 if containerLen == 0 {
24786 dd.ReadMapEnd()
24787 return v, changed
24788 }
24789
24790 var mk uint32
24791 var mv uint
24792 hasLen := containerLen > 0
24793 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
24794 if esep {
24795 dd.ReadMapElemKey()
24796 }
24797 mk = uint32(dd.DecodeUint(32))
24798 if esep {
24799 dd.ReadMapElemValue()
24800 }
24801 if dd.TryDecodeAsNil() {
24802 if d.h.DeleteOnNilMapValue {
24803 delete(v, mk)
24804 } else {
24805 v[mk] = 0
24806 }
24807 continue
24808 }
24809 mv = uint(dd.DecodeUint(uintBitsize))
24810 if v != nil {
24811 v[mk] = mv
24812 }
24813 }
24814 dd.ReadMapEnd()
24815 return v, changed
24816 }
24817
24818 func (d *Decoder) fastpathDecMapUint32Uint8R(f *codecFnInfo, rv reflect.Value) {
24819 if rv.Kind() == reflect.Ptr {
24820 vp := rv2i(rv).(*map[uint32]uint8)
24821 if v, changed := fastpathTV.DecMapUint32Uint8V(*vp, true, d); changed {
24822 *vp = v
24823 }
24824 return
24825 }
24826 fastpathTV.DecMapUint32Uint8V(rv2i(rv).(map[uint32]uint8), false, d)
24827 }
24828 func (f fastpathT) DecMapUint32Uint8X(vp *map[uint32]uint8, d *Decoder) {
24829 if v, changed := f.DecMapUint32Uint8V(*vp, true, d); changed {
24830 *vp = v
24831 }
24832 }
24833 func (_ fastpathT) DecMapUint32Uint8V(v map[uint32]uint8, canChange bool,
24834 d *Decoder) (_ map[uint32]uint8, changed bool) {
24835 dd, esep := d.d, d.hh.hasElemSeparators()
24836
24837 containerLen := dd.ReadMapStart()
24838 if canChange && v == nil {
24839 xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
24840 v = make(map[uint32]uint8, xlen)
24841 changed = true
24842 }
24843 if containerLen == 0 {
24844 dd.ReadMapEnd()
24845 return v, changed
24846 }
24847
24848 var mk uint32
24849 var mv uint8
24850 hasLen := containerLen > 0
24851 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
24852 if esep {
24853 dd.ReadMapElemKey()
24854 }
24855 mk = uint32(dd.DecodeUint(32))
24856 if esep {
24857 dd.ReadMapElemValue()
24858 }
24859 if dd.TryDecodeAsNil() {
24860 if d.h.DeleteOnNilMapValue {
24861 delete(v, mk)
24862 } else {
24863 v[mk] = 0
24864 }
24865 continue
24866 }
24867 mv = uint8(dd.DecodeUint(8))
24868 if v != nil {
24869 v[mk] = mv
24870 }
24871 }
24872 dd.ReadMapEnd()
24873 return v, changed
24874 }
24875
24876 func (d *Decoder) fastpathDecMapUint32Uint16R(f *codecFnInfo, rv reflect.Value) {
24877 if rv.Kind() == reflect.Ptr {
24878 vp := rv2i(rv).(*map[uint32]uint16)
24879 if v, changed := fastpathTV.DecMapUint32Uint16V(*vp, true, d); changed {
24880 *vp = v
24881 }
24882 return
24883 }
24884 fastpathTV.DecMapUint32Uint16V(rv2i(rv).(map[uint32]uint16), false, d)
24885 }
24886 func (f fastpathT) DecMapUint32Uint16X(vp *map[uint32]uint16, d *Decoder) {
24887 if v, changed := f.DecMapUint32Uint16V(*vp, true, d); changed {
24888 *vp = v
24889 }
24890 }
24891 func (_ fastpathT) DecMapUint32Uint16V(v map[uint32]uint16, canChange bool,
24892 d *Decoder) (_ map[uint32]uint16, changed bool) {
24893 dd, esep := d.d, d.hh.hasElemSeparators()
24894
24895 containerLen := dd.ReadMapStart()
24896 if canChange && v == nil {
24897 xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
24898 v = make(map[uint32]uint16, xlen)
24899 changed = true
24900 }
24901 if containerLen == 0 {
24902 dd.ReadMapEnd()
24903 return v, changed
24904 }
24905
24906 var mk uint32
24907 var mv uint16
24908 hasLen := containerLen > 0
24909 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
24910 if esep {
24911 dd.ReadMapElemKey()
24912 }
24913 mk = uint32(dd.DecodeUint(32))
24914 if esep {
24915 dd.ReadMapElemValue()
24916 }
24917 if dd.TryDecodeAsNil() {
24918 if d.h.DeleteOnNilMapValue {
24919 delete(v, mk)
24920 } else {
24921 v[mk] = 0
24922 }
24923 continue
24924 }
24925 mv = uint16(dd.DecodeUint(16))
24926 if v != nil {
24927 v[mk] = mv
24928 }
24929 }
24930 dd.ReadMapEnd()
24931 return v, changed
24932 }
24933
24934 func (d *Decoder) fastpathDecMapUint32Uint32R(f *codecFnInfo, rv reflect.Value) {
24935 if rv.Kind() == reflect.Ptr {
24936 vp := rv2i(rv).(*map[uint32]uint32)
24937 if v, changed := fastpathTV.DecMapUint32Uint32V(*vp, true, d); changed {
24938 *vp = v
24939 }
24940 return
24941 }
24942 fastpathTV.DecMapUint32Uint32V(rv2i(rv).(map[uint32]uint32), false, d)
24943 }
24944 func (f fastpathT) DecMapUint32Uint32X(vp *map[uint32]uint32, d *Decoder) {
24945 if v, changed := f.DecMapUint32Uint32V(*vp, true, d); changed {
24946 *vp = v
24947 }
24948 }
24949 func (_ fastpathT) DecMapUint32Uint32V(v map[uint32]uint32, canChange bool,
24950 d *Decoder) (_ map[uint32]uint32, changed bool) {
24951 dd, esep := d.d, d.hh.hasElemSeparators()
24952
24953 containerLen := dd.ReadMapStart()
24954 if canChange && v == nil {
24955 xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
24956 v = make(map[uint32]uint32, xlen)
24957 changed = true
24958 }
24959 if containerLen == 0 {
24960 dd.ReadMapEnd()
24961 return v, changed
24962 }
24963
24964 var mk uint32
24965 var mv uint32
24966 hasLen := containerLen > 0
24967 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
24968 if esep {
24969 dd.ReadMapElemKey()
24970 }
24971 mk = uint32(dd.DecodeUint(32))
24972 if esep {
24973 dd.ReadMapElemValue()
24974 }
24975 if dd.TryDecodeAsNil() {
24976 if d.h.DeleteOnNilMapValue {
24977 delete(v, mk)
24978 } else {
24979 v[mk] = 0
24980 }
24981 continue
24982 }
24983 mv = uint32(dd.DecodeUint(32))
24984 if v != nil {
24985 v[mk] = mv
24986 }
24987 }
24988 dd.ReadMapEnd()
24989 return v, changed
24990 }
24991
24992 func (d *Decoder) fastpathDecMapUint32Uint64R(f *codecFnInfo, rv reflect.Value) {
24993 if rv.Kind() == reflect.Ptr {
24994 vp := rv2i(rv).(*map[uint32]uint64)
24995 if v, changed := fastpathTV.DecMapUint32Uint64V(*vp, true, d); changed {
24996 *vp = v
24997 }
24998 return
24999 }
25000 fastpathTV.DecMapUint32Uint64V(rv2i(rv).(map[uint32]uint64), false, d)
25001 }
25002 func (f fastpathT) DecMapUint32Uint64X(vp *map[uint32]uint64, d *Decoder) {
25003 if v, changed := f.DecMapUint32Uint64V(*vp, true, d); changed {
25004 *vp = v
25005 }
25006 }
25007 func (_ fastpathT) DecMapUint32Uint64V(v map[uint32]uint64, canChange bool,
25008 d *Decoder) (_ map[uint32]uint64, changed bool) {
25009 dd, esep := d.d, d.hh.hasElemSeparators()
25010
25011 containerLen := dd.ReadMapStart()
25012 if canChange && v == nil {
25013 xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
25014 v = make(map[uint32]uint64, xlen)
25015 changed = true
25016 }
25017 if containerLen == 0 {
25018 dd.ReadMapEnd()
25019 return v, changed
25020 }
25021
25022 var mk uint32
25023 var mv uint64
25024 hasLen := containerLen > 0
25025 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
25026 if esep {
25027 dd.ReadMapElemKey()
25028 }
25029 mk = uint32(dd.DecodeUint(32))
25030 if esep {
25031 dd.ReadMapElemValue()
25032 }
25033 if dd.TryDecodeAsNil() {
25034 if d.h.DeleteOnNilMapValue {
25035 delete(v, mk)
25036 } else {
25037 v[mk] = 0
25038 }
25039 continue
25040 }
25041 mv = dd.DecodeUint(64)
25042 if v != nil {
25043 v[mk] = mv
25044 }
25045 }
25046 dd.ReadMapEnd()
25047 return v, changed
25048 }
25049
25050 func (d *Decoder) fastpathDecMapUint32UintptrR(f *codecFnInfo, rv reflect.Value) {
25051 if rv.Kind() == reflect.Ptr {
25052 vp := rv2i(rv).(*map[uint32]uintptr)
25053 if v, changed := fastpathTV.DecMapUint32UintptrV(*vp, true, d); changed {
25054 *vp = v
25055 }
25056 return
25057 }
25058 fastpathTV.DecMapUint32UintptrV(rv2i(rv).(map[uint32]uintptr), false, d)
25059 }
25060 func (f fastpathT) DecMapUint32UintptrX(vp *map[uint32]uintptr, d *Decoder) {
25061 if v, changed := f.DecMapUint32UintptrV(*vp, true, d); changed {
25062 *vp = v
25063 }
25064 }
25065 func (_ fastpathT) DecMapUint32UintptrV(v map[uint32]uintptr, canChange bool,
25066 d *Decoder) (_ map[uint32]uintptr, changed bool) {
25067 dd, esep := d.d, d.hh.hasElemSeparators()
25068
25069 containerLen := dd.ReadMapStart()
25070 if canChange && v == nil {
25071 xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
25072 v = make(map[uint32]uintptr, xlen)
25073 changed = true
25074 }
25075 if containerLen == 0 {
25076 dd.ReadMapEnd()
25077 return v, changed
25078 }
25079
25080 var mk uint32
25081 var mv uintptr
25082 hasLen := containerLen > 0
25083 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
25084 if esep {
25085 dd.ReadMapElemKey()
25086 }
25087 mk = uint32(dd.DecodeUint(32))
25088 if esep {
25089 dd.ReadMapElemValue()
25090 }
25091 if dd.TryDecodeAsNil() {
25092 if d.h.DeleteOnNilMapValue {
25093 delete(v, mk)
25094 } else {
25095 v[mk] = 0
25096 }
25097 continue
25098 }
25099 mv = uintptr(dd.DecodeUint(uintBitsize))
25100 if v != nil {
25101 v[mk] = mv
25102 }
25103 }
25104 dd.ReadMapEnd()
25105 return v, changed
25106 }
25107
25108 func (d *Decoder) fastpathDecMapUint32IntR(f *codecFnInfo, rv reflect.Value) {
25109 if rv.Kind() == reflect.Ptr {
25110 vp := rv2i(rv).(*map[uint32]int)
25111 if v, changed := fastpathTV.DecMapUint32IntV(*vp, true, d); changed {
25112 *vp = v
25113 }
25114 return
25115 }
25116 fastpathTV.DecMapUint32IntV(rv2i(rv).(map[uint32]int), false, d)
25117 }
25118 func (f fastpathT) DecMapUint32IntX(vp *map[uint32]int, d *Decoder) {
25119 if v, changed := f.DecMapUint32IntV(*vp, true, d); changed {
25120 *vp = v
25121 }
25122 }
25123 func (_ fastpathT) DecMapUint32IntV(v map[uint32]int, canChange bool,
25124 d *Decoder) (_ map[uint32]int, changed bool) {
25125 dd, esep := d.d, d.hh.hasElemSeparators()
25126
25127 containerLen := dd.ReadMapStart()
25128 if canChange && v == nil {
25129 xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
25130 v = make(map[uint32]int, xlen)
25131 changed = true
25132 }
25133 if containerLen == 0 {
25134 dd.ReadMapEnd()
25135 return v, changed
25136 }
25137
25138 var mk uint32
25139 var mv int
25140 hasLen := containerLen > 0
25141 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
25142 if esep {
25143 dd.ReadMapElemKey()
25144 }
25145 mk = uint32(dd.DecodeUint(32))
25146 if esep {
25147 dd.ReadMapElemValue()
25148 }
25149 if dd.TryDecodeAsNil() {
25150 if d.h.DeleteOnNilMapValue {
25151 delete(v, mk)
25152 } else {
25153 v[mk] = 0
25154 }
25155 continue
25156 }
25157 mv = int(dd.DecodeInt(intBitsize))
25158 if v != nil {
25159 v[mk] = mv
25160 }
25161 }
25162 dd.ReadMapEnd()
25163 return v, changed
25164 }
25165
25166 func (d *Decoder) fastpathDecMapUint32Int8R(f *codecFnInfo, rv reflect.Value) {
25167 if rv.Kind() == reflect.Ptr {
25168 vp := rv2i(rv).(*map[uint32]int8)
25169 if v, changed := fastpathTV.DecMapUint32Int8V(*vp, true, d); changed {
25170 *vp = v
25171 }
25172 return
25173 }
25174 fastpathTV.DecMapUint32Int8V(rv2i(rv).(map[uint32]int8), false, d)
25175 }
25176 func (f fastpathT) DecMapUint32Int8X(vp *map[uint32]int8, d *Decoder) {
25177 if v, changed := f.DecMapUint32Int8V(*vp, true, d); changed {
25178 *vp = v
25179 }
25180 }
25181 func (_ fastpathT) DecMapUint32Int8V(v map[uint32]int8, canChange bool,
25182 d *Decoder) (_ map[uint32]int8, changed bool) {
25183 dd, esep := d.d, d.hh.hasElemSeparators()
25184
25185 containerLen := dd.ReadMapStart()
25186 if canChange && v == nil {
25187 xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
25188 v = make(map[uint32]int8, xlen)
25189 changed = true
25190 }
25191 if containerLen == 0 {
25192 dd.ReadMapEnd()
25193 return v, changed
25194 }
25195
25196 var mk uint32
25197 var mv int8
25198 hasLen := containerLen > 0
25199 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
25200 if esep {
25201 dd.ReadMapElemKey()
25202 }
25203 mk = uint32(dd.DecodeUint(32))
25204 if esep {
25205 dd.ReadMapElemValue()
25206 }
25207 if dd.TryDecodeAsNil() {
25208 if d.h.DeleteOnNilMapValue {
25209 delete(v, mk)
25210 } else {
25211 v[mk] = 0
25212 }
25213 continue
25214 }
25215 mv = int8(dd.DecodeInt(8))
25216 if v != nil {
25217 v[mk] = mv
25218 }
25219 }
25220 dd.ReadMapEnd()
25221 return v, changed
25222 }
25223
25224 func (d *Decoder) fastpathDecMapUint32Int16R(f *codecFnInfo, rv reflect.Value) {
25225 if rv.Kind() == reflect.Ptr {
25226 vp := rv2i(rv).(*map[uint32]int16)
25227 if v, changed := fastpathTV.DecMapUint32Int16V(*vp, true, d); changed {
25228 *vp = v
25229 }
25230 return
25231 }
25232 fastpathTV.DecMapUint32Int16V(rv2i(rv).(map[uint32]int16), false, d)
25233 }
25234 func (f fastpathT) DecMapUint32Int16X(vp *map[uint32]int16, d *Decoder) {
25235 if v, changed := f.DecMapUint32Int16V(*vp, true, d); changed {
25236 *vp = v
25237 }
25238 }
25239 func (_ fastpathT) DecMapUint32Int16V(v map[uint32]int16, canChange bool,
25240 d *Decoder) (_ map[uint32]int16, changed bool) {
25241 dd, esep := d.d, d.hh.hasElemSeparators()
25242
25243 containerLen := dd.ReadMapStart()
25244 if canChange && v == nil {
25245 xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
25246 v = make(map[uint32]int16, xlen)
25247 changed = true
25248 }
25249 if containerLen == 0 {
25250 dd.ReadMapEnd()
25251 return v, changed
25252 }
25253
25254 var mk uint32
25255 var mv int16
25256 hasLen := containerLen > 0
25257 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
25258 if esep {
25259 dd.ReadMapElemKey()
25260 }
25261 mk = uint32(dd.DecodeUint(32))
25262 if esep {
25263 dd.ReadMapElemValue()
25264 }
25265 if dd.TryDecodeAsNil() {
25266 if d.h.DeleteOnNilMapValue {
25267 delete(v, mk)
25268 } else {
25269 v[mk] = 0
25270 }
25271 continue
25272 }
25273 mv = int16(dd.DecodeInt(16))
25274 if v != nil {
25275 v[mk] = mv
25276 }
25277 }
25278 dd.ReadMapEnd()
25279 return v, changed
25280 }
25281
25282 func (d *Decoder) fastpathDecMapUint32Int32R(f *codecFnInfo, rv reflect.Value) {
25283 if rv.Kind() == reflect.Ptr {
25284 vp := rv2i(rv).(*map[uint32]int32)
25285 if v, changed := fastpathTV.DecMapUint32Int32V(*vp, true, d); changed {
25286 *vp = v
25287 }
25288 return
25289 }
25290 fastpathTV.DecMapUint32Int32V(rv2i(rv).(map[uint32]int32), false, d)
25291 }
25292 func (f fastpathT) DecMapUint32Int32X(vp *map[uint32]int32, d *Decoder) {
25293 if v, changed := f.DecMapUint32Int32V(*vp, true, d); changed {
25294 *vp = v
25295 }
25296 }
25297 func (_ fastpathT) DecMapUint32Int32V(v map[uint32]int32, canChange bool,
25298 d *Decoder) (_ map[uint32]int32, changed bool) {
25299 dd, esep := d.d, d.hh.hasElemSeparators()
25300
25301 containerLen := dd.ReadMapStart()
25302 if canChange && v == nil {
25303 xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
25304 v = make(map[uint32]int32, xlen)
25305 changed = true
25306 }
25307 if containerLen == 0 {
25308 dd.ReadMapEnd()
25309 return v, changed
25310 }
25311
25312 var mk uint32
25313 var mv int32
25314 hasLen := containerLen > 0
25315 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
25316 if esep {
25317 dd.ReadMapElemKey()
25318 }
25319 mk = uint32(dd.DecodeUint(32))
25320 if esep {
25321 dd.ReadMapElemValue()
25322 }
25323 if dd.TryDecodeAsNil() {
25324 if d.h.DeleteOnNilMapValue {
25325 delete(v, mk)
25326 } else {
25327 v[mk] = 0
25328 }
25329 continue
25330 }
25331 mv = int32(dd.DecodeInt(32))
25332 if v != nil {
25333 v[mk] = mv
25334 }
25335 }
25336 dd.ReadMapEnd()
25337 return v, changed
25338 }
25339
25340 func (d *Decoder) fastpathDecMapUint32Int64R(f *codecFnInfo, rv reflect.Value) {
25341 if rv.Kind() == reflect.Ptr {
25342 vp := rv2i(rv).(*map[uint32]int64)
25343 if v, changed := fastpathTV.DecMapUint32Int64V(*vp, true, d); changed {
25344 *vp = v
25345 }
25346 return
25347 }
25348 fastpathTV.DecMapUint32Int64V(rv2i(rv).(map[uint32]int64), false, d)
25349 }
25350 func (f fastpathT) DecMapUint32Int64X(vp *map[uint32]int64, d *Decoder) {
25351 if v, changed := f.DecMapUint32Int64V(*vp, true, d); changed {
25352 *vp = v
25353 }
25354 }
25355 func (_ fastpathT) DecMapUint32Int64V(v map[uint32]int64, canChange bool,
25356 d *Decoder) (_ map[uint32]int64, changed bool) {
25357 dd, esep := d.d, d.hh.hasElemSeparators()
25358
25359 containerLen := dd.ReadMapStart()
25360 if canChange && v == nil {
25361 xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
25362 v = make(map[uint32]int64, xlen)
25363 changed = true
25364 }
25365 if containerLen == 0 {
25366 dd.ReadMapEnd()
25367 return v, changed
25368 }
25369
25370 var mk uint32
25371 var mv int64
25372 hasLen := containerLen > 0
25373 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
25374 if esep {
25375 dd.ReadMapElemKey()
25376 }
25377 mk = uint32(dd.DecodeUint(32))
25378 if esep {
25379 dd.ReadMapElemValue()
25380 }
25381 if dd.TryDecodeAsNil() {
25382 if d.h.DeleteOnNilMapValue {
25383 delete(v, mk)
25384 } else {
25385 v[mk] = 0
25386 }
25387 continue
25388 }
25389 mv = dd.DecodeInt(64)
25390 if v != nil {
25391 v[mk] = mv
25392 }
25393 }
25394 dd.ReadMapEnd()
25395 return v, changed
25396 }
25397
25398 func (d *Decoder) fastpathDecMapUint32Float32R(f *codecFnInfo, rv reflect.Value) {
25399 if rv.Kind() == reflect.Ptr {
25400 vp := rv2i(rv).(*map[uint32]float32)
25401 if v, changed := fastpathTV.DecMapUint32Float32V(*vp, true, d); changed {
25402 *vp = v
25403 }
25404 return
25405 }
25406 fastpathTV.DecMapUint32Float32V(rv2i(rv).(map[uint32]float32), false, d)
25407 }
25408 func (f fastpathT) DecMapUint32Float32X(vp *map[uint32]float32, d *Decoder) {
25409 if v, changed := f.DecMapUint32Float32V(*vp, true, d); changed {
25410 *vp = v
25411 }
25412 }
25413 func (_ fastpathT) DecMapUint32Float32V(v map[uint32]float32, canChange bool,
25414 d *Decoder) (_ map[uint32]float32, changed bool) {
25415 dd, esep := d.d, d.hh.hasElemSeparators()
25416
25417 containerLen := dd.ReadMapStart()
25418 if canChange && v == nil {
25419 xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
25420 v = make(map[uint32]float32, xlen)
25421 changed = true
25422 }
25423 if containerLen == 0 {
25424 dd.ReadMapEnd()
25425 return v, changed
25426 }
25427
25428 var mk uint32
25429 var mv float32
25430 hasLen := containerLen > 0
25431 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
25432 if esep {
25433 dd.ReadMapElemKey()
25434 }
25435 mk = uint32(dd.DecodeUint(32))
25436 if esep {
25437 dd.ReadMapElemValue()
25438 }
25439 if dd.TryDecodeAsNil() {
25440 if d.h.DeleteOnNilMapValue {
25441 delete(v, mk)
25442 } else {
25443 v[mk] = 0
25444 }
25445 continue
25446 }
25447 mv = float32(dd.DecodeFloat(true))
25448 if v != nil {
25449 v[mk] = mv
25450 }
25451 }
25452 dd.ReadMapEnd()
25453 return v, changed
25454 }
25455
25456 func (d *Decoder) fastpathDecMapUint32Float64R(f *codecFnInfo, rv reflect.Value) {
25457 if rv.Kind() == reflect.Ptr {
25458 vp := rv2i(rv).(*map[uint32]float64)
25459 if v, changed := fastpathTV.DecMapUint32Float64V(*vp, true, d); changed {
25460 *vp = v
25461 }
25462 return
25463 }
25464 fastpathTV.DecMapUint32Float64V(rv2i(rv).(map[uint32]float64), false, d)
25465 }
25466 func (f fastpathT) DecMapUint32Float64X(vp *map[uint32]float64, d *Decoder) {
25467 if v, changed := f.DecMapUint32Float64V(*vp, true, d); changed {
25468 *vp = v
25469 }
25470 }
25471 func (_ fastpathT) DecMapUint32Float64V(v map[uint32]float64, canChange bool,
25472 d *Decoder) (_ map[uint32]float64, changed bool) {
25473 dd, esep := d.d, d.hh.hasElemSeparators()
25474
25475 containerLen := dd.ReadMapStart()
25476 if canChange && v == nil {
25477 xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
25478 v = make(map[uint32]float64, xlen)
25479 changed = true
25480 }
25481 if containerLen == 0 {
25482 dd.ReadMapEnd()
25483 return v, changed
25484 }
25485
25486 var mk uint32
25487 var mv float64
25488 hasLen := containerLen > 0
25489 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
25490 if esep {
25491 dd.ReadMapElemKey()
25492 }
25493 mk = uint32(dd.DecodeUint(32))
25494 if esep {
25495 dd.ReadMapElemValue()
25496 }
25497 if dd.TryDecodeAsNil() {
25498 if d.h.DeleteOnNilMapValue {
25499 delete(v, mk)
25500 } else {
25501 v[mk] = 0
25502 }
25503 continue
25504 }
25505 mv = dd.DecodeFloat(false)
25506 if v != nil {
25507 v[mk] = mv
25508 }
25509 }
25510 dd.ReadMapEnd()
25511 return v, changed
25512 }
25513
25514 func (d *Decoder) fastpathDecMapUint32BoolR(f *codecFnInfo, rv reflect.Value) {
25515 if rv.Kind() == reflect.Ptr {
25516 vp := rv2i(rv).(*map[uint32]bool)
25517 if v, changed := fastpathTV.DecMapUint32BoolV(*vp, true, d); changed {
25518 *vp = v
25519 }
25520 return
25521 }
25522 fastpathTV.DecMapUint32BoolV(rv2i(rv).(map[uint32]bool), false, d)
25523 }
25524 func (f fastpathT) DecMapUint32BoolX(vp *map[uint32]bool, d *Decoder) {
25525 if v, changed := f.DecMapUint32BoolV(*vp, true, d); changed {
25526 *vp = v
25527 }
25528 }
25529 func (_ fastpathT) DecMapUint32BoolV(v map[uint32]bool, canChange bool,
25530 d *Decoder) (_ map[uint32]bool, changed bool) {
25531 dd, esep := d.d, d.hh.hasElemSeparators()
25532
25533 containerLen := dd.ReadMapStart()
25534 if canChange && v == nil {
25535 xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
25536 v = make(map[uint32]bool, xlen)
25537 changed = true
25538 }
25539 if containerLen == 0 {
25540 dd.ReadMapEnd()
25541 return v, changed
25542 }
25543
25544 var mk uint32
25545 var mv bool
25546 hasLen := containerLen > 0
25547 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
25548 if esep {
25549 dd.ReadMapElemKey()
25550 }
25551 mk = uint32(dd.DecodeUint(32))
25552 if esep {
25553 dd.ReadMapElemValue()
25554 }
25555 if dd.TryDecodeAsNil() {
25556 if d.h.DeleteOnNilMapValue {
25557 delete(v, mk)
25558 } else {
25559 v[mk] = false
25560 }
25561 continue
25562 }
25563 mv = dd.DecodeBool()
25564 if v != nil {
25565 v[mk] = mv
25566 }
25567 }
25568 dd.ReadMapEnd()
25569 return v, changed
25570 }
25571
25572 func (d *Decoder) fastpathDecMapUint64IntfR(f *codecFnInfo, rv reflect.Value) {
25573 if rv.Kind() == reflect.Ptr {
25574 vp := rv2i(rv).(*map[uint64]interface{})
25575 if v, changed := fastpathTV.DecMapUint64IntfV(*vp, true, d); changed {
25576 *vp = v
25577 }
25578 return
25579 }
25580 fastpathTV.DecMapUint64IntfV(rv2i(rv).(map[uint64]interface{}), false, d)
25581 }
25582 func (f fastpathT) DecMapUint64IntfX(vp *map[uint64]interface{}, d *Decoder) {
25583 if v, changed := f.DecMapUint64IntfV(*vp, true, d); changed {
25584 *vp = v
25585 }
25586 }
25587 func (_ fastpathT) DecMapUint64IntfV(v map[uint64]interface{}, canChange bool,
25588 d *Decoder) (_ map[uint64]interface{}, changed bool) {
25589 dd, esep := d.d, d.hh.hasElemSeparators()
25590
25591 containerLen := dd.ReadMapStart()
25592 if canChange && v == nil {
25593 xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
25594 v = make(map[uint64]interface{}, xlen)
25595 changed = true
25596 }
25597 if containerLen == 0 {
25598 dd.ReadMapEnd()
25599 return v, changed
25600 }
25601 mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
25602 var mk uint64
25603 var mv interface{}
25604 hasLen := containerLen > 0
25605 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
25606 if esep {
25607 dd.ReadMapElemKey()
25608 }
25609 mk = dd.DecodeUint(64)
25610 if esep {
25611 dd.ReadMapElemValue()
25612 }
25613 if dd.TryDecodeAsNil() {
25614 if d.h.DeleteOnNilMapValue {
25615 delete(v, mk)
25616 } else {
25617 v[mk] = nil
25618 }
25619 continue
25620 }
25621 if mapGet {
25622 mv = v[mk]
25623 } else {
25624 mv = nil
25625 }
25626 d.decode(&mv)
25627 if v != nil {
25628 v[mk] = mv
25629 }
25630 }
25631 dd.ReadMapEnd()
25632 return v, changed
25633 }
25634
25635 func (d *Decoder) fastpathDecMapUint64StringR(f *codecFnInfo, rv reflect.Value) {
25636 if rv.Kind() == reflect.Ptr {
25637 vp := rv2i(rv).(*map[uint64]string)
25638 if v, changed := fastpathTV.DecMapUint64StringV(*vp, true, d); changed {
25639 *vp = v
25640 }
25641 return
25642 }
25643 fastpathTV.DecMapUint64StringV(rv2i(rv).(map[uint64]string), false, d)
25644 }
25645 func (f fastpathT) DecMapUint64StringX(vp *map[uint64]string, d *Decoder) {
25646 if v, changed := f.DecMapUint64StringV(*vp, true, d); changed {
25647 *vp = v
25648 }
25649 }
25650 func (_ fastpathT) DecMapUint64StringV(v map[uint64]string, canChange bool,
25651 d *Decoder) (_ map[uint64]string, changed bool) {
25652 dd, esep := d.d, d.hh.hasElemSeparators()
25653
25654 containerLen := dd.ReadMapStart()
25655 if canChange && v == nil {
25656 xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
25657 v = make(map[uint64]string, xlen)
25658 changed = true
25659 }
25660 if containerLen == 0 {
25661 dd.ReadMapEnd()
25662 return v, changed
25663 }
25664
25665 var mk uint64
25666 var mv string
25667 hasLen := containerLen > 0
25668 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
25669 if esep {
25670 dd.ReadMapElemKey()
25671 }
25672 mk = dd.DecodeUint(64)
25673 if esep {
25674 dd.ReadMapElemValue()
25675 }
25676 if dd.TryDecodeAsNil() {
25677 if d.h.DeleteOnNilMapValue {
25678 delete(v, mk)
25679 } else {
25680 v[mk] = ""
25681 }
25682 continue
25683 }
25684 mv = dd.DecodeString()
25685 if v != nil {
25686 v[mk] = mv
25687 }
25688 }
25689 dd.ReadMapEnd()
25690 return v, changed
25691 }
25692
25693 func (d *Decoder) fastpathDecMapUint64UintR(f *codecFnInfo, rv reflect.Value) {
25694 if rv.Kind() == reflect.Ptr {
25695 vp := rv2i(rv).(*map[uint64]uint)
25696 if v, changed := fastpathTV.DecMapUint64UintV(*vp, true, d); changed {
25697 *vp = v
25698 }
25699 return
25700 }
25701 fastpathTV.DecMapUint64UintV(rv2i(rv).(map[uint64]uint), false, d)
25702 }
25703 func (f fastpathT) DecMapUint64UintX(vp *map[uint64]uint, d *Decoder) {
25704 if v, changed := f.DecMapUint64UintV(*vp, true, d); changed {
25705 *vp = v
25706 }
25707 }
25708 func (_ fastpathT) DecMapUint64UintV(v map[uint64]uint, canChange bool,
25709 d *Decoder) (_ map[uint64]uint, changed bool) {
25710 dd, esep := d.d, d.hh.hasElemSeparators()
25711
25712 containerLen := dd.ReadMapStart()
25713 if canChange && v == nil {
25714 xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
25715 v = make(map[uint64]uint, xlen)
25716 changed = true
25717 }
25718 if containerLen == 0 {
25719 dd.ReadMapEnd()
25720 return v, changed
25721 }
25722
25723 var mk uint64
25724 var mv uint
25725 hasLen := containerLen > 0
25726 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
25727 if esep {
25728 dd.ReadMapElemKey()
25729 }
25730 mk = dd.DecodeUint(64)
25731 if esep {
25732 dd.ReadMapElemValue()
25733 }
25734 if dd.TryDecodeAsNil() {
25735 if d.h.DeleteOnNilMapValue {
25736 delete(v, mk)
25737 } else {
25738 v[mk] = 0
25739 }
25740 continue
25741 }
25742 mv = uint(dd.DecodeUint(uintBitsize))
25743 if v != nil {
25744 v[mk] = mv
25745 }
25746 }
25747 dd.ReadMapEnd()
25748 return v, changed
25749 }
25750
25751 func (d *Decoder) fastpathDecMapUint64Uint8R(f *codecFnInfo, rv reflect.Value) {
25752 if rv.Kind() == reflect.Ptr {
25753 vp := rv2i(rv).(*map[uint64]uint8)
25754 if v, changed := fastpathTV.DecMapUint64Uint8V(*vp, true, d); changed {
25755 *vp = v
25756 }
25757 return
25758 }
25759 fastpathTV.DecMapUint64Uint8V(rv2i(rv).(map[uint64]uint8), false, d)
25760 }
25761 func (f fastpathT) DecMapUint64Uint8X(vp *map[uint64]uint8, d *Decoder) {
25762 if v, changed := f.DecMapUint64Uint8V(*vp, true, d); changed {
25763 *vp = v
25764 }
25765 }
25766 func (_ fastpathT) DecMapUint64Uint8V(v map[uint64]uint8, canChange bool,
25767 d *Decoder) (_ map[uint64]uint8, changed bool) {
25768 dd, esep := d.d, d.hh.hasElemSeparators()
25769
25770 containerLen := dd.ReadMapStart()
25771 if canChange && v == nil {
25772 xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
25773 v = make(map[uint64]uint8, xlen)
25774 changed = true
25775 }
25776 if containerLen == 0 {
25777 dd.ReadMapEnd()
25778 return v, changed
25779 }
25780
25781 var mk uint64
25782 var mv uint8
25783 hasLen := containerLen > 0
25784 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
25785 if esep {
25786 dd.ReadMapElemKey()
25787 }
25788 mk = dd.DecodeUint(64)
25789 if esep {
25790 dd.ReadMapElemValue()
25791 }
25792 if dd.TryDecodeAsNil() {
25793 if d.h.DeleteOnNilMapValue {
25794 delete(v, mk)
25795 } else {
25796 v[mk] = 0
25797 }
25798 continue
25799 }
25800 mv = uint8(dd.DecodeUint(8))
25801 if v != nil {
25802 v[mk] = mv
25803 }
25804 }
25805 dd.ReadMapEnd()
25806 return v, changed
25807 }
25808
25809 func (d *Decoder) fastpathDecMapUint64Uint16R(f *codecFnInfo, rv reflect.Value) {
25810 if rv.Kind() == reflect.Ptr {
25811 vp := rv2i(rv).(*map[uint64]uint16)
25812 if v, changed := fastpathTV.DecMapUint64Uint16V(*vp, true, d); changed {
25813 *vp = v
25814 }
25815 return
25816 }
25817 fastpathTV.DecMapUint64Uint16V(rv2i(rv).(map[uint64]uint16), false, d)
25818 }
25819 func (f fastpathT) DecMapUint64Uint16X(vp *map[uint64]uint16, d *Decoder) {
25820 if v, changed := f.DecMapUint64Uint16V(*vp, true, d); changed {
25821 *vp = v
25822 }
25823 }
25824 func (_ fastpathT) DecMapUint64Uint16V(v map[uint64]uint16, canChange bool,
25825 d *Decoder) (_ map[uint64]uint16, changed bool) {
25826 dd, esep := d.d, d.hh.hasElemSeparators()
25827
25828 containerLen := dd.ReadMapStart()
25829 if canChange && v == nil {
25830 xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
25831 v = make(map[uint64]uint16, xlen)
25832 changed = true
25833 }
25834 if containerLen == 0 {
25835 dd.ReadMapEnd()
25836 return v, changed
25837 }
25838
25839 var mk uint64
25840 var mv uint16
25841 hasLen := containerLen > 0
25842 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
25843 if esep {
25844 dd.ReadMapElemKey()
25845 }
25846 mk = dd.DecodeUint(64)
25847 if esep {
25848 dd.ReadMapElemValue()
25849 }
25850 if dd.TryDecodeAsNil() {
25851 if d.h.DeleteOnNilMapValue {
25852 delete(v, mk)
25853 } else {
25854 v[mk] = 0
25855 }
25856 continue
25857 }
25858 mv = uint16(dd.DecodeUint(16))
25859 if v != nil {
25860 v[mk] = mv
25861 }
25862 }
25863 dd.ReadMapEnd()
25864 return v, changed
25865 }
25866
25867 func (d *Decoder) fastpathDecMapUint64Uint32R(f *codecFnInfo, rv reflect.Value) {
25868 if rv.Kind() == reflect.Ptr {
25869 vp := rv2i(rv).(*map[uint64]uint32)
25870 if v, changed := fastpathTV.DecMapUint64Uint32V(*vp, true, d); changed {
25871 *vp = v
25872 }
25873 return
25874 }
25875 fastpathTV.DecMapUint64Uint32V(rv2i(rv).(map[uint64]uint32), false, d)
25876 }
25877 func (f fastpathT) DecMapUint64Uint32X(vp *map[uint64]uint32, d *Decoder) {
25878 if v, changed := f.DecMapUint64Uint32V(*vp, true, d); changed {
25879 *vp = v
25880 }
25881 }
25882 func (_ fastpathT) DecMapUint64Uint32V(v map[uint64]uint32, canChange bool,
25883 d *Decoder) (_ map[uint64]uint32, changed bool) {
25884 dd, esep := d.d, d.hh.hasElemSeparators()
25885
25886 containerLen := dd.ReadMapStart()
25887 if canChange && v == nil {
25888 xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
25889 v = make(map[uint64]uint32, xlen)
25890 changed = true
25891 }
25892 if containerLen == 0 {
25893 dd.ReadMapEnd()
25894 return v, changed
25895 }
25896
25897 var mk uint64
25898 var mv uint32
25899 hasLen := containerLen > 0
25900 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
25901 if esep {
25902 dd.ReadMapElemKey()
25903 }
25904 mk = dd.DecodeUint(64)
25905 if esep {
25906 dd.ReadMapElemValue()
25907 }
25908 if dd.TryDecodeAsNil() {
25909 if d.h.DeleteOnNilMapValue {
25910 delete(v, mk)
25911 } else {
25912 v[mk] = 0
25913 }
25914 continue
25915 }
25916 mv = uint32(dd.DecodeUint(32))
25917 if v != nil {
25918 v[mk] = mv
25919 }
25920 }
25921 dd.ReadMapEnd()
25922 return v, changed
25923 }
25924
25925 func (d *Decoder) fastpathDecMapUint64Uint64R(f *codecFnInfo, rv reflect.Value) {
25926 if rv.Kind() == reflect.Ptr {
25927 vp := rv2i(rv).(*map[uint64]uint64)
25928 if v, changed := fastpathTV.DecMapUint64Uint64V(*vp, true, d); changed {
25929 *vp = v
25930 }
25931 return
25932 }
25933 fastpathTV.DecMapUint64Uint64V(rv2i(rv).(map[uint64]uint64), false, d)
25934 }
25935 func (f fastpathT) DecMapUint64Uint64X(vp *map[uint64]uint64, d *Decoder) {
25936 if v, changed := f.DecMapUint64Uint64V(*vp, true, d); changed {
25937 *vp = v
25938 }
25939 }
25940 func (_ fastpathT) DecMapUint64Uint64V(v map[uint64]uint64, canChange bool,
25941 d *Decoder) (_ map[uint64]uint64, changed bool) {
25942 dd, esep := d.d, d.hh.hasElemSeparators()
25943
25944 containerLen := dd.ReadMapStart()
25945 if canChange && v == nil {
25946 xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
25947 v = make(map[uint64]uint64, xlen)
25948 changed = true
25949 }
25950 if containerLen == 0 {
25951 dd.ReadMapEnd()
25952 return v, changed
25953 }
25954
25955 var mk uint64
25956 var mv uint64
25957 hasLen := containerLen > 0
25958 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
25959 if esep {
25960 dd.ReadMapElemKey()
25961 }
25962 mk = dd.DecodeUint(64)
25963 if esep {
25964 dd.ReadMapElemValue()
25965 }
25966 if dd.TryDecodeAsNil() {
25967 if d.h.DeleteOnNilMapValue {
25968 delete(v, mk)
25969 } else {
25970 v[mk] = 0
25971 }
25972 continue
25973 }
25974 mv = dd.DecodeUint(64)
25975 if v != nil {
25976 v[mk] = mv
25977 }
25978 }
25979 dd.ReadMapEnd()
25980 return v, changed
25981 }
25982
25983 func (d *Decoder) fastpathDecMapUint64UintptrR(f *codecFnInfo, rv reflect.Value) {
25984 if rv.Kind() == reflect.Ptr {
25985 vp := rv2i(rv).(*map[uint64]uintptr)
25986 if v, changed := fastpathTV.DecMapUint64UintptrV(*vp, true, d); changed {
25987 *vp = v
25988 }
25989 return
25990 }
25991 fastpathTV.DecMapUint64UintptrV(rv2i(rv).(map[uint64]uintptr), false, d)
25992 }
25993 func (f fastpathT) DecMapUint64UintptrX(vp *map[uint64]uintptr, d *Decoder) {
25994 if v, changed := f.DecMapUint64UintptrV(*vp, true, d); changed {
25995 *vp = v
25996 }
25997 }
25998 func (_ fastpathT) DecMapUint64UintptrV(v map[uint64]uintptr, canChange bool,
25999 d *Decoder) (_ map[uint64]uintptr, changed bool) {
26000 dd, esep := d.d, d.hh.hasElemSeparators()
26001
26002 containerLen := dd.ReadMapStart()
26003 if canChange && v == nil {
26004 xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
26005 v = make(map[uint64]uintptr, xlen)
26006 changed = true
26007 }
26008 if containerLen == 0 {
26009 dd.ReadMapEnd()
26010 return v, changed
26011 }
26012
26013 var mk uint64
26014 var mv uintptr
26015 hasLen := containerLen > 0
26016 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
26017 if esep {
26018 dd.ReadMapElemKey()
26019 }
26020 mk = dd.DecodeUint(64)
26021 if esep {
26022 dd.ReadMapElemValue()
26023 }
26024 if dd.TryDecodeAsNil() {
26025 if d.h.DeleteOnNilMapValue {
26026 delete(v, mk)
26027 } else {
26028 v[mk] = 0
26029 }
26030 continue
26031 }
26032 mv = uintptr(dd.DecodeUint(uintBitsize))
26033 if v != nil {
26034 v[mk] = mv
26035 }
26036 }
26037 dd.ReadMapEnd()
26038 return v, changed
26039 }
26040
26041 func (d *Decoder) fastpathDecMapUint64IntR(f *codecFnInfo, rv reflect.Value) {
26042 if rv.Kind() == reflect.Ptr {
26043 vp := rv2i(rv).(*map[uint64]int)
26044 if v, changed := fastpathTV.DecMapUint64IntV(*vp, true, d); changed {
26045 *vp = v
26046 }
26047 return
26048 }
26049 fastpathTV.DecMapUint64IntV(rv2i(rv).(map[uint64]int), false, d)
26050 }
26051 func (f fastpathT) DecMapUint64IntX(vp *map[uint64]int, d *Decoder) {
26052 if v, changed := f.DecMapUint64IntV(*vp, true, d); changed {
26053 *vp = v
26054 }
26055 }
26056 func (_ fastpathT) DecMapUint64IntV(v map[uint64]int, canChange bool,
26057 d *Decoder) (_ map[uint64]int, changed bool) {
26058 dd, esep := d.d, d.hh.hasElemSeparators()
26059
26060 containerLen := dd.ReadMapStart()
26061 if canChange && v == nil {
26062 xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
26063 v = make(map[uint64]int, xlen)
26064 changed = true
26065 }
26066 if containerLen == 0 {
26067 dd.ReadMapEnd()
26068 return v, changed
26069 }
26070
26071 var mk uint64
26072 var mv int
26073 hasLen := containerLen > 0
26074 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
26075 if esep {
26076 dd.ReadMapElemKey()
26077 }
26078 mk = dd.DecodeUint(64)
26079 if esep {
26080 dd.ReadMapElemValue()
26081 }
26082 if dd.TryDecodeAsNil() {
26083 if d.h.DeleteOnNilMapValue {
26084 delete(v, mk)
26085 } else {
26086 v[mk] = 0
26087 }
26088 continue
26089 }
26090 mv = int(dd.DecodeInt(intBitsize))
26091 if v != nil {
26092 v[mk] = mv
26093 }
26094 }
26095 dd.ReadMapEnd()
26096 return v, changed
26097 }
26098
26099 func (d *Decoder) fastpathDecMapUint64Int8R(f *codecFnInfo, rv reflect.Value) {
26100 if rv.Kind() == reflect.Ptr {
26101 vp := rv2i(rv).(*map[uint64]int8)
26102 if v, changed := fastpathTV.DecMapUint64Int8V(*vp, true, d); changed {
26103 *vp = v
26104 }
26105 return
26106 }
26107 fastpathTV.DecMapUint64Int8V(rv2i(rv).(map[uint64]int8), false, d)
26108 }
26109 func (f fastpathT) DecMapUint64Int8X(vp *map[uint64]int8, d *Decoder) {
26110 if v, changed := f.DecMapUint64Int8V(*vp, true, d); changed {
26111 *vp = v
26112 }
26113 }
26114 func (_ fastpathT) DecMapUint64Int8V(v map[uint64]int8, canChange bool,
26115 d *Decoder) (_ map[uint64]int8, changed bool) {
26116 dd, esep := d.d, d.hh.hasElemSeparators()
26117
26118 containerLen := dd.ReadMapStart()
26119 if canChange && v == nil {
26120 xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
26121 v = make(map[uint64]int8, xlen)
26122 changed = true
26123 }
26124 if containerLen == 0 {
26125 dd.ReadMapEnd()
26126 return v, changed
26127 }
26128
26129 var mk uint64
26130 var mv int8
26131 hasLen := containerLen > 0
26132 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
26133 if esep {
26134 dd.ReadMapElemKey()
26135 }
26136 mk = dd.DecodeUint(64)
26137 if esep {
26138 dd.ReadMapElemValue()
26139 }
26140 if dd.TryDecodeAsNil() {
26141 if d.h.DeleteOnNilMapValue {
26142 delete(v, mk)
26143 } else {
26144 v[mk] = 0
26145 }
26146 continue
26147 }
26148 mv = int8(dd.DecodeInt(8))
26149 if v != nil {
26150 v[mk] = mv
26151 }
26152 }
26153 dd.ReadMapEnd()
26154 return v, changed
26155 }
26156
26157 func (d *Decoder) fastpathDecMapUint64Int16R(f *codecFnInfo, rv reflect.Value) {
26158 if rv.Kind() == reflect.Ptr {
26159 vp := rv2i(rv).(*map[uint64]int16)
26160 if v, changed := fastpathTV.DecMapUint64Int16V(*vp, true, d); changed {
26161 *vp = v
26162 }
26163 return
26164 }
26165 fastpathTV.DecMapUint64Int16V(rv2i(rv).(map[uint64]int16), false, d)
26166 }
26167 func (f fastpathT) DecMapUint64Int16X(vp *map[uint64]int16, d *Decoder) {
26168 if v, changed := f.DecMapUint64Int16V(*vp, true, d); changed {
26169 *vp = v
26170 }
26171 }
26172 func (_ fastpathT) DecMapUint64Int16V(v map[uint64]int16, canChange bool,
26173 d *Decoder) (_ map[uint64]int16, changed bool) {
26174 dd, esep := d.d, d.hh.hasElemSeparators()
26175
26176 containerLen := dd.ReadMapStart()
26177 if canChange && v == nil {
26178 xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
26179 v = make(map[uint64]int16, xlen)
26180 changed = true
26181 }
26182 if containerLen == 0 {
26183 dd.ReadMapEnd()
26184 return v, changed
26185 }
26186
26187 var mk uint64
26188 var mv int16
26189 hasLen := containerLen > 0
26190 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
26191 if esep {
26192 dd.ReadMapElemKey()
26193 }
26194 mk = dd.DecodeUint(64)
26195 if esep {
26196 dd.ReadMapElemValue()
26197 }
26198 if dd.TryDecodeAsNil() {
26199 if d.h.DeleteOnNilMapValue {
26200 delete(v, mk)
26201 } else {
26202 v[mk] = 0
26203 }
26204 continue
26205 }
26206 mv = int16(dd.DecodeInt(16))
26207 if v != nil {
26208 v[mk] = mv
26209 }
26210 }
26211 dd.ReadMapEnd()
26212 return v, changed
26213 }
26214
26215 func (d *Decoder) fastpathDecMapUint64Int32R(f *codecFnInfo, rv reflect.Value) {
26216 if rv.Kind() == reflect.Ptr {
26217 vp := rv2i(rv).(*map[uint64]int32)
26218 if v, changed := fastpathTV.DecMapUint64Int32V(*vp, true, d); changed {
26219 *vp = v
26220 }
26221 return
26222 }
26223 fastpathTV.DecMapUint64Int32V(rv2i(rv).(map[uint64]int32), false, d)
26224 }
26225 func (f fastpathT) DecMapUint64Int32X(vp *map[uint64]int32, d *Decoder) {
26226 if v, changed := f.DecMapUint64Int32V(*vp, true, d); changed {
26227 *vp = v
26228 }
26229 }
26230 func (_ fastpathT) DecMapUint64Int32V(v map[uint64]int32, canChange bool,
26231 d *Decoder) (_ map[uint64]int32, changed bool) {
26232 dd, esep := d.d, d.hh.hasElemSeparators()
26233
26234 containerLen := dd.ReadMapStart()
26235 if canChange && v == nil {
26236 xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
26237 v = make(map[uint64]int32, xlen)
26238 changed = true
26239 }
26240 if containerLen == 0 {
26241 dd.ReadMapEnd()
26242 return v, changed
26243 }
26244
26245 var mk uint64
26246 var mv int32
26247 hasLen := containerLen > 0
26248 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
26249 if esep {
26250 dd.ReadMapElemKey()
26251 }
26252 mk = dd.DecodeUint(64)
26253 if esep {
26254 dd.ReadMapElemValue()
26255 }
26256 if dd.TryDecodeAsNil() {
26257 if d.h.DeleteOnNilMapValue {
26258 delete(v, mk)
26259 } else {
26260 v[mk] = 0
26261 }
26262 continue
26263 }
26264 mv = int32(dd.DecodeInt(32))
26265 if v != nil {
26266 v[mk] = mv
26267 }
26268 }
26269 dd.ReadMapEnd()
26270 return v, changed
26271 }
26272
26273 func (d *Decoder) fastpathDecMapUint64Int64R(f *codecFnInfo, rv reflect.Value) {
26274 if rv.Kind() == reflect.Ptr {
26275 vp := rv2i(rv).(*map[uint64]int64)
26276 if v, changed := fastpathTV.DecMapUint64Int64V(*vp, true, d); changed {
26277 *vp = v
26278 }
26279 return
26280 }
26281 fastpathTV.DecMapUint64Int64V(rv2i(rv).(map[uint64]int64), false, d)
26282 }
26283 func (f fastpathT) DecMapUint64Int64X(vp *map[uint64]int64, d *Decoder) {
26284 if v, changed := f.DecMapUint64Int64V(*vp, true, d); changed {
26285 *vp = v
26286 }
26287 }
26288 func (_ fastpathT) DecMapUint64Int64V(v map[uint64]int64, canChange bool,
26289 d *Decoder) (_ map[uint64]int64, changed bool) {
26290 dd, esep := d.d, d.hh.hasElemSeparators()
26291
26292 containerLen := dd.ReadMapStart()
26293 if canChange && v == nil {
26294 xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
26295 v = make(map[uint64]int64, xlen)
26296 changed = true
26297 }
26298 if containerLen == 0 {
26299 dd.ReadMapEnd()
26300 return v, changed
26301 }
26302
26303 var mk uint64
26304 var mv int64
26305 hasLen := containerLen > 0
26306 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
26307 if esep {
26308 dd.ReadMapElemKey()
26309 }
26310 mk = dd.DecodeUint(64)
26311 if esep {
26312 dd.ReadMapElemValue()
26313 }
26314 if dd.TryDecodeAsNil() {
26315 if d.h.DeleteOnNilMapValue {
26316 delete(v, mk)
26317 } else {
26318 v[mk] = 0
26319 }
26320 continue
26321 }
26322 mv = dd.DecodeInt(64)
26323 if v != nil {
26324 v[mk] = mv
26325 }
26326 }
26327 dd.ReadMapEnd()
26328 return v, changed
26329 }
26330
26331 func (d *Decoder) fastpathDecMapUint64Float32R(f *codecFnInfo, rv reflect.Value) {
26332 if rv.Kind() == reflect.Ptr {
26333 vp := rv2i(rv).(*map[uint64]float32)
26334 if v, changed := fastpathTV.DecMapUint64Float32V(*vp, true, d); changed {
26335 *vp = v
26336 }
26337 return
26338 }
26339 fastpathTV.DecMapUint64Float32V(rv2i(rv).(map[uint64]float32), false, d)
26340 }
26341 func (f fastpathT) DecMapUint64Float32X(vp *map[uint64]float32, d *Decoder) {
26342 if v, changed := f.DecMapUint64Float32V(*vp, true, d); changed {
26343 *vp = v
26344 }
26345 }
26346 func (_ fastpathT) DecMapUint64Float32V(v map[uint64]float32, canChange bool,
26347 d *Decoder) (_ map[uint64]float32, changed bool) {
26348 dd, esep := d.d, d.hh.hasElemSeparators()
26349
26350 containerLen := dd.ReadMapStart()
26351 if canChange && v == nil {
26352 xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
26353 v = make(map[uint64]float32, xlen)
26354 changed = true
26355 }
26356 if containerLen == 0 {
26357 dd.ReadMapEnd()
26358 return v, changed
26359 }
26360
26361 var mk uint64
26362 var mv float32
26363 hasLen := containerLen > 0
26364 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
26365 if esep {
26366 dd.ReadMapElemKey()
26367 }
26368 mk = dd.DecodeUint(64)
26369 if esep {
26370 dd.ReadMapElemValue()
26371 }
26372 if dd.TryDecodeAsNil() {
26373 if d.h.DeleteOnNilMapValue {
26374 delete(v, mk)
26375 } else {
26376 v[mk] = 0
26377 }
26378 continue
26379 }
26380 mv = float32(dd.DecodeFloat(true))
26381 if v != nil {
26382 v[mk] = mv
26383 }
26384 }
26385 dd.ReadMapEnd()
26386 return v, changed
26387 }
26388
26389 func (d *Decoder) fastpathDecMapUint64Float64R(f *codecFnInfo, rv reflect.Value) {
26390 if rv.Kind() == reflect.Ptr {
26391 vp := rv2i(rv).(*map[uint64]float64)
26392 if v, changed := fastpathTV.DecMapUint64Float64V(*vp, true, d); changed {
26393 *vp = v
26394 }
26395 return
26396 }
26397 fastpathTV.DecMapUint64Float64V(rv2i(rv).(map[uint64]float64), false, d)
26398 }
26399 func (f fastpathT) DecMapUint64Float64X(vp *map[uint64]float64, d *Decoder) {
26400 if v, changed := f.DecMapUint64Float64V(*vp, true, d); changed {
26401 *vp = v
26402 }
26403 }
26404 func (_ fastpathT) DecMapUint64Float64V(v map[uint64]float64, canChange bool,
26405 d *Decoder) (_ map[uint64]float64, changed bool) {
26406 dd, esep := d.d, d.hh.hasElemSeparators()
26407
26408 containerLen := dd.ReadMapStart()
26409 if canChange && v == nil {
26410 xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
26411 v = make(map[uint64]float64, xlen)
26412 changed = true
26413 }
26414 if containerLen == 0 {
26415 dd.ReadMapEnd()
26416 return v, changed
26417 }
26418
26419 var mk uint64
26420 var mv float64
26421 hasLen := containerLen > 0
26422 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
26423 if esep {
26424 dd.ReadMapElemKey()
26425 }
26426 mk = dd.DecodeUint(64)
26427 if esep {
26428 dd.ReadMapElemValue()
26429 }
26430 if dd.TryDecodeAsNil() {
26431 if d.h.DeleteOnNilMapValue {
26432 delete(v, mk)
26433 } else {
26434 v[mk] = 0
26435 }
26436 continue
26437 }
26438 mv = dd.DecodeFloat(false)
26439 if v != nil {
26440 v[mk] = mv
26441 }
26442 }
26443 dd.ReadMapEnd()
26444 return v, changed
26445 }
26446
26447 func (d *Decoder) fastpathDecMapUint64BoolR(f *codecFnInfo, rv reflect.Value) {
26448 if rv.Kind() == reflect.Ptr {
26449 vp := rv2i(rv).(*map[uint64]bool)
26450 if v, changed := fastpathTV.DecMapUint64BoolV(*vp, true, d); changed {
26451 *vp = v
26452 }
26453 return
26454 }
26455 fastpathTV.DecMapUint64BoolV(rv2i(rv).(map[uint64]bool), false, d)
26456 }
26457 func (f fastpathT) DecMapUint64BoolX(vp *map[uint64]bool, d *Decoder) {
26458 if v, changed := f.DecMapUint64BoolV(*vp, true, d); changed {
26459 *vp = v
26460 }
26461 }
26462 func (_ fastpathT) DecMapUint64BoolV(v map[uint64]bool, canChange bool,
26463 d *Decoder) (_ map[uint64]bool, changed bool) {
26464 dd, esep := d.d, d.hh.hasElemSeparators()
26465
26466 containerLen := dd.ReadMapStart()
26467 if canChange && v == nil {
26468 xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
26469 v = make(map[uint64]bool, xlen)
26470 changed = true
26471 }
26472 if containerLen == 0 {
26473 dd.ReadMapEnd()
26474 return v, changed
26475 }
26476
26477 var mk uint64
26478 var mv bool
26479 hasLen := containerLen > 0
26480 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
26481 if esep {
26482 dd.ReadMapElemKey()
26483 }
26484 mk = dd.DecodeUint(64)
26485 if esep {
26486 dd.ReadMapElemValue()
26487 }
26488 if dd.TryDecodeAsNil() {
26489 if d.h.DeleteOnNilMapValue {
26490 delete(v, mk)
26491 } else {
26492 v[mk] = false
26493 }
26494 continue
26495 }
26496 mv = dd.DecodeBool()
26497 if v != nil {
26498 v[mk] = mv
26499 }
26500 }
26501 dd.ReadMapEnd()
26502 return v, changed
26503 }
26504
26505 func (d *Decoder) fastpathDecMapUintptrIntfR(f *codecFnInfo, rv reflect.Value) {
26506 if rv.Kind() == reflect.Ptr {
26507 vp := rv2i(rv).(*map[uintptr]interface{})
26508 if v, changed := fastpathTV.DecMapUintptrIntfV(*vp, true, d); changed {
26509 *vp = v
26510 }
26511 return
26512 }
26513 fastpathTV.DecMapUintptrIntfV(rv2i(rv).(map[uintptr]interface{}), false, d)
26514 }
26515 func (f fastpathT) DecMapUintptrIntfX(vp *map[uintptr]interface{}, d *Decoder) {
26516 if v, changed := f.DecMapUintptrIntfV(*vp, true, d); changed {
26517 *vp = v
26518 }
26519 }
26520 func (_ fastpathT) DecMapUintptrIntfV(v map[uintptr]interface{}, canChange bool,
26521 d *Decoder) (_ map[uintptr]interface{}, changed bool) {
26522 dd, esep := d.d, d.hh.hasElemSeparators()
26523
26524 containerLen := dd.ReadMapStart()
26525 if canChange && v == nil {
26526 xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
26527 v = make(map[uintptr]interface{}, xlen)
26528 changed = true
26529 }
26530 if containerLen == 0 {
26531 dd.ReadMapEnd()
26532 return v, changed
26533 }
26534 mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
26535 var mk uintptr
26536 var mv interface{}
26537 hasLen := containerLen > 0
26538 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
26539 if esep {
26540 dd.ReadMapElemKey()
26541 }
26542 mk = uintptr(dd.DecodeUint(uintBitsize))
26543 if esep {
26544 dd.ReadMapElemValue()
26545 }
26546 if dd.TryDecodeAsNil() {
26547 if d.h.DeleteOnNilMapValue {
26548 delete(v, mk)
26549 } else {
26550 v[mk] = nil
26551 }
26552 continue
26553 }
26554 if mapGet {
26555 mv = v[mk]
26556 } else {
26557 mv = nil
26558 }
26559 d.decode(&mv)
26560 if v != nil {
26561 v[mk] = mv
26562 }
26563 }
26564 dd.ReadMapEnd()
26565 return v, changed
26566 }
26567
26568 func (d *Decoder) fastpathDecMapUintptrStringR(f *codecFnInfo, rv reflect.Value) {
26569 if rv.Kind() == reflect.Ptr {
26570 vp := rv2i(rv).(*map[uintptr]string)
26571 if v, changed := fastpathTV.DecMapUintptrStringV(*vp, true, d); changed {
26572 *vp = v
26573 }
26574 return
26575 }
26576 fastpathTV.DecMapUintptrStringV(rv2i(rv).(map[uintptr]string), false, d)
26577 }
26578 func (f fastpathT) DecMapUintptrStringX(vp *map[uintptr]string, d *Decoder) {
26579 if v, changed := f.DecMapUintptrStringV(*vp, true, d); changed {
26580 *vp = v
26581 }
26582 }
26583 func (_ fastpathT) DecMapUintptrStringV(v map[uintptr]string, canChange bool,
26584 d *Decoder) (_ map[uintptr]string, changed bool) {
26585 dd, esep := d.d, d.hh.hasElemSeparators()
26586
26587 containerLen := dd.ReadMapStart()
26588 if canChange && v == nil {
26589 xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
26590 v = make(map[uintptr]string, xlen)
26591 changed = true
26592 }
26593 if containerLen == 0 {
26594 dd.ReadMapEnd()
26595 return v, changed
26596 }
26597
26598 var mk uintptr
26599 var mv string
26600 hasLen := containerLen > 0
26601 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
26602 if esep {
26603 dd.ReadMapElemKey()
26604 }
26605 mk = uintptr(dd.DecodeUint(uintBitsize))
26606 if esep {
26607 dd.ReadMapElemValue()
26608 }
26609 if dd.TryDecodeAsNil() {
26610 if d.h.DeleteOnNilMapValue {
26611 delete(v, mk)
26612 } else {
26613 v[mk] = ""
26614 }
26615 continue
26616 }
26617 mv = dd.DecodeString()
26618 if v != nil {
26619 v[mk] = mv
26620 }
26621 }
26622 dd.ReadMapEnd()
26623 return v, changed
26624 }
26625
26626 func (d *Decoder) fastpathDecMapUintptrUintR(f *codecFnInfo, rv reflect.Value) {
26627 if rv.Kind() == reflect.Ptr {
26628 vp := rv2i(rv).(*map[uintptr]uint)
26629 if v, changed := fastpathTV.DecMapUintptrUintV(*vp, true, d); changed {
26630 *vp = v
26631 }
26632 return
26633 }
26634 fastpathTV.DecMapUintptrUintV(rv2i(rv).(map[uintptr]uint), false, d)
26635 }
26636 func (f fastpathT) DecMapUintptrUintX(vp *map[uintptr]uint, d *Decoder) {
26637 if v, changed := f.DecMapUintptrUintV(*vp, true, d); changed {
26638 *vp = v
26639 }
26640 }
26641 func (_ fastpathT) DecMapUintptrUintV(v map[uintptr]uint, canChange bool,
26642 d *Decoder) (_ map[uintptr]uint, changed bool) {
26643 dd, esep := d.d, d.hh.hasElemSeparators()
26644
26645 containerLen := dd.ReadMapStart()
26646 if canChange && v == nil {
26647 xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
26648 v = make(map[uintptr]uint, xlen)
26649 changed = true
26650 }
26651 if containerLen == 0 {
26652 dd.ReadMapEnd()
26653 return v, changed
26654 }
26655
26656 var mk uintptr
26657 var mv uint
26658 hasLen := containerLen > 0
26659 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
26660 if esep {
26661 dd.ReadMapElemKey()
26662 }
26663 mk = uintptr(dd.DecodeUint(uintBitsize))
26664 if esep {
26665 dd.ReadMapElemValue()
26666 }
26667 if dd.TryDecodeAsNil() {
26668 if d.h.DeleteOnNilMapValue {
26669 delete(v, mk)
26670 } else {
26671 v[mk] = 0
26672 }
26673 continue
26674 }
26675 mv = uint(dd.DecodeUint(uintBitsize))
26676 if v != nil {
26677 v[mk] = mv
26678 }
26679 }
26680 dd.ReadMapEnd()
26681 return v, changed
26682 }
26683
26684 func (d *Decoder) fastpathDecMapUintptrUint8R(f *codecFnInfo, rv reflect.Value) {
26685 if rv.Kind() == reflect.Ptr {
26686 vp := rv2i(rv).(*map[uintptr]uint8)
26687 if v, changed := fastpathTV.DecMapUintptrUint8V(*vp, true, d); changed {
26688 *vp = v
26689 }
26690 return
26691 }
26692 fastpathTV.DecMapUintptrUint8V(rv2i(rv).(map[uintptr]uint8), false, d)
26693 }
26694 func (f fastpathT) DecMapUintptrUint8X(vp *map[uintptr]uint8, d *Decoder) {
26695 if v, changed := f.DecMapUintptrUint8V(*vp, true, d); changed {
26696 *vp = v
26697 }
26698 }
26699 func (_ fastpathT) DecMapUintptrUint8V(v map[uintptr]uint8, canChange bool,
26700 d *Decoder) (_ map[uintptr]uint8, changed bool) {
26701 dd, esep := d.d, d.hh.hasElemSeparators()
26702
26703 containerLen := dd.ReadMapStart()
26704 if canChange && v == nil {
26705 xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
26706 v = make(map[uintptr]uint8, xlen)
26707 changed = true
26708 }
26709 if containerLen == 0 {
26710 dd.ReadMapEnd()
26711 return v, changed
26712 }
26713
26714 var mk uintptr
26715 var mv uint8
26716 hasLen := containerLen > 0
26717 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
26718 if esep {
26719 dd.ReadMapElemKey()
26720 }
26721 mk = uintptr(dd.DecodeUint(uintBitsize))
26722 if esep {
26723 dd.ReadMapElemValue()
26724 }
26725 if dd.TryDecodeAsNil() {
26726 if d.h.DeleteOnNilMapValue {
26727 delete(v, mk)
26728 } else {
26729 v[mk] = 0
26730 }
26731 continue
26732 }
26733 mv = uint8(dd.DecodeUint(8))
26734 if v != nil {
26735 v[mk] = mv
26736 }
26737 }
26738 dd.ReadMapEnd()
26739 return v, changed
26740 }
26741
26742 func (d *Decoder) fastpathDecMapUintptrUint16R(f *codecFnInfo, rv reflect.Value) {
26743 if rv.Kind() == reflect.Ptr {
26744 vp := rv2i(rv).(*map[uintptr]uint16)
26745 if v, changed := fastpathTV.DecMapUintptrUint16V(*vp, true, d); changed {
26746 *vp = v
26747 }
26748 return
26749 }
26750 fastpathTV.DecMapUintptrUint16V(rv2i(rv).(map[uintptr]uint16), false, d)
26751 }
26752 func (f fastpathT) DecMapUintptrUint16X(vp *map[uintptr]uint16, d *Decoder) {
26753 if v, changed := f.DecMapUintptrUint16V(*vp, true, d); changed {
26754 *vp = v
26755 }
26756 }
26757 func (_ fastpathT) DecMapUintptrUint16V(v map[uintptr]uint16, canChange bool,
26758 d *Decoder) (_ map[uintptr]uint16, changed bool) {
26759 dd, esep := d.d, d.hh.hasElemSeparators()
26760
26761 containerLen := dd.ReadMapStart()
26762 if canChange && v == nil {
26763 xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
26764 v = make(map[uintptr]uint16, xlen)
26765 changed = true
26766 }
26767 if containerLen == 0 {
26768 dd.ReadMapEnd()
26769 return v, changed
26770 }
26771
26772 var mk uintptr
26773 var mv uint16
26774 hasLen := containerLen > 0
26775 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
26776 if esep {
26777 dd.ReadMapElemKey()
26778 }
26779 mk = uintptr(dd.DecodeUint(uintBitsize))
26780 if esep {
26781 dd.ReadMapElemValue()
26782 }
26783 if dd.TryDecodeAsNil() {
26784 if d.h.DeleteOnNilMapValue {
26785 delete(v, mk)
26786 } else {
26787 v[mk] = 0
26788 }
26789 continue
26790 }
26791 mv = uint16(dd.DecodeUint(16))
26792 if v != nil {
26793 v[mk] = mv
26794 }
26795 }
26796 dd.ReadMapEnd()
26797 return v, changed
26798 }
26799
26800 func (d *Decoder) fastpathDecMapUintptrUint32R(f *codecFnInfo, rv reflect.Value) {
26801 if rv.Kind() == reflect.Ptr {
26802 vp := rv2i(rv).(*map[uintptr]uint32)
26803 if v, changed := fastpathTV.DecMapUintptrUint32V(*vp, true, d); changed {
26804 *vp = v
26805 }
26806 return
26807 }
26808 fastpathTV.DecMapUintptrUint32V(rv2i(rv).(map[uintptr]uint32), false, d)
26809 }
26810 func (f fastpathT) DecMapUintptrUint32X(vp *map[uintptr]uint32, d *Decoder) {
26811 if v, changed := f.DecMapUintptrUint32V(*vp, true, d); changed {
26812 *vp = v
26813 }
26814 }
26815 func (_ fastpathT) DecMapUintptrUint32V(v map[uintptr]uint32, canChange bool,
26816 d *Decoder) (_ map[uintptr]uint32, changed bool) {
26817 dd, esep := d.d, d.hh.hasElemSeparators()
26818
26819 containerLen := dd.ReadMapStart()
26820 if canChange && v == nil {
26821 xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
26822 v = make(map[uintptr]uint32, xlen)
26823 changed = true
26824 }
26825 if containerLen == 0 {
26826 dd.ReadMapEnd()
26827 return v, changed
26828 }
26829
26830 var mk uintptr
26831 var mv uint32
26832 hasLen := containerLen > 0
26833 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
26834 if esep {
26835 dd.ReadMapElemKey()
26836 }
26837 mk = uintptr(dd.DecodeUint(uintBitsize))
26838 if esep {
26839 dd.ReadMapElemValue()
26840 }
26841 if dd.TryDecodeAsNil() {
26842 if d.h.DeleteOnNilMapValue {
26843 delete(v, mk)
26844 } else {
26845 v[mk] = 0
26846 }
26847 continue
26848 }
26849 mv = uint32(dd.DecodeUint(32))
26850 if v != nil {
26851 v[mk] = mv
26852 }
26853 }
26854 dd.ReadMapEnd()
26855 return v, changed
26856 }
26857
26858 func (d *Decoder) fastpathDecMapUintptrUint64R(f *codecFnInfo, rv reflect.Value) {
26859 if rv.Kind() == reflect.Ptr {
26860 vp := rv2i(rv).(*map[uintptr]uint64)
26861 if v, changed := fastpathTV.DecMapUintptrUint64V(*vp, true, d); changed {
26862 *vp = v
26863 }
26864 return
26865 }
26866 fastpathTV.DecMapUintptrUint64V(rv2i(rv).(map[uintptr]uint64), false, d)
26867 }
26868 func (f fastpathT) DecMapUintptrUint64X(vp *map[uintptr]uint64, d *Decoder) {
26869 if v, changed := f.DecMapUintptrUint64V(*vp, true, d); changed {
26870 *vp = v
26871 }
26872 }
26873 func (_ fastpathT) DecMapUintptrUint64V(v map[uintptr]uint64, canChange bool,
26874 d *Decoder) (_ map[uintptr]uint64, changed bool) {
26875 dd, esep := d.d, d.hh.hasElemSeparators()
26876
26877 containerLen := dd.ReadMapStart()
26878 if canChange && v == nil {
26879 xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
26880 v = make(map[uintptr]uint64, xlen)
26881 changed = true
26882 }
26883 if containerLen == 0 {
26884 dd.ReadMapEnd()
26885 return v, changed
26886 }
26887
26888 var mk uintptr
26889 var mv uint64
26890 hasLen := containerLen > 0
26891 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
26892 if esep {
26893 dd.ReadMapElemKey()
26894 }
26895 mk = uintptr(dd.DecodeUint(uintBitsize))
26896 if esep {
26897 dd.ReadMapElemValue()
26898 }
26899 if dd.TryDecodeAsNil() {
26900 if d.h.DeleteOnNilMapValue {
26901 delete(v, mk)
26902 } else {
26903 v[mk] = 0
26904 }
26905 continue
26906 }
26907 mv = dd.DecodeUint(64)
26908 if v != nil {
26909 v[mk] = mv
26910 }
26911 }
26912 dd.ReadMapEnd()
26913 return v, changed
26914 }
26915
26916 func (d *Decoder) fastpathDecMapUintptrUintptrR(f *codecFnInfo, rv reflect.Value) {
26917 if rv.Kind() == reflect.Ptr {
26918 vp := rv2i(rv).(*map[uintptr]uintptr)
26919 if v, changed := fastpathTV.DecMapUintptrUintptrV(*vp, true, d); changed {
26920 *vp = v
26921 }
26922 return
26923 }
26924 fastpathTV.DecMapUintptrUintptrV(rv2i(rv).(map[uintptr]uintptr), false, d)
26925 }
26926 func (f fastpathT) DecMapUintptrUintptrX(vp *map[uintptr]uintptr, d *Decoder) {
26927 if v, changed := f.DecMapUintptrUintptrV(*vp, true, d); changed {
26928 *vp = v
26929 }
26930 }
26931 func (_ fastpathT) DecMapUintptrUintptrV(v map[uintptr]uintptr, canChange bool,
26932 d *Decoder) (_ map[uintptr]uintptr, changed bool) {
26933 dd, esep := d.d, d.hh.hasElemSeparators()
26934
26935 containerLen := dd.ReadMapStart()
26936 if canChange && v == nil {
26937 xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
26938 v = make(map[uintptr]uintptr, xlen)
26939 changed = true
26940 }
26941 if containerLen == 0 {
26942 dd.ReadMapEnd()
26943 return v, changed
26944 }
26945
26946 var mk uintptr
26947 var mv uintptr
26948 hasLen := containerLen > 0
26949 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
26950 if esep {
26951 dd.ReadMapElemKey()
26952 }
26953 mk = uintptr(dd.DecodeUint(uintBitsize))
26954 if esep {
26955 dd.ReadMapElemValue()
26956 }
26957 if dd.TryDecodeAsNil() {
26958 if d.h.DeleteOnNilMapValue {
26959 delete(v, mk)
26960 } else {
26961 v[mk] = 0
26962 }
26963 continue
26964 }
26965 mv = uintptr(dd.DecodeUint(uintBitsize))
26966 if v != nil {
26967 v[mk] = mv
26968 }
26969 }
26970 dd.ReadMapEnd()
26971 return v, changed
26972 }
26973
26974 func (d *Decoder) fastpathDecMapUintptrIntR(f *codecFnInfo, rv reflect.Value) {
26975 if rv.Kind() == reflect.Ptr {
26976 vp := rv2i(rv).(*map[uintptr]int)
26977 if v, changed := fastpathTV.DecMapUintptrIntV(*vp, true, d); changed {
26978 *vp = v
26979 }
26980 return
26981 }
26982 fastpathTV.DecMapUintptrIntV(rv2i(rv).(map[uintptr]int), false, d)
26983 }
26984 func (f fastpathT) DecMapUintptrIntX(vp *map[uintptr]int, d *Decoder) {
26985 if v, changed := f.DecMapUintptrIntV(*vp, true, d); changed {
26986 *vp = v
26987 }
26988 }
26989 func (_ fastpathT) DecMapUintptrIntV(v map[uintptr]int, canChange bool,
26990 d *Decoder) (_ map[uintptr]int, changed bool) {
26991 dd, esep := d.d, d.hh.hasElemSeparators()
26992
26993 containerLen := dd.ReadMapStart()
26994 if canChange && v == nil {
26995 xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
26996 v = make(map[uintptr]int, xlen)
26997 changed = true
26998 }
26999 if containerLen == 0 {
27000 dd.ReadMapEnd()
27001 return v, changed
27002 }
27003
27004 var mk uintptr
27005 var mv int
27006 hasLen := containerLen > 0
27007 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
27008 if esep {
27009 dd.ReadMapElemKey()
27010 }
27011 mk = uintptr(dd.DecodeUint(uintBitsize))
27012 if esep {
27013 dd.ReadMapElemValue()
27014 }
27015 if dd.TryDecodeAsNil() {
27016 if d.h.DeleteOnNilMapValue {
27017 delete(v, mk)
27018 } else {
27019 v[mk] = 0
27020 }
27021 continue
27022 }
27023 mv = int(dd.DecodeInt(intBitsize))
27024 if v != nil {
27025 v[mk] = mv
27026 }
27027 }
27028 dd.ReadMapEnd()
27029 return v, changed
27030 }
27031
27032 func (d *Decoder) fastpathDecMapUintptrInt8R(f *codecFnInfo, rv reflect.Value) {
27033 if rv.Kind() == reflect.Ptr {
27034 vp := rv2i(rv).(*map[uintptr]int8)
27035 if v, changed := fastpathTV.DecMapUintptrInt8V(*vp, true, d); changed {
27036 *vp = v
27037 }
27038 return
27039 }
27040 fastpathTV.DecMapUintptrInt8V(rv2i(rv).(map[uintptr]int8), false, d)
27041 }
27042 func (f fastpathT) DecMapUintptrInt8X(vp *map[uintptr]int8, d *Decoder) {
27043 if v, changed := f.DecMapUintptrInt8V(*vp, true, d); changed {
27044 *vp = v
27045 }
27046 }
27047 func (_ fastpathT) DecMapUintptrInt8V(v map[uintptr]int8, canChange bool,
27048 d *Decoder) (_ map[uintptr]int8, changed bool) {
27049 dd, esep := d.d, d.hh.hasElemSeparators()
27050
27051 containerLen := dd.ReadMapStart()
27052 if canChange && v == nil {
27053 xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
27054 v = make(map[uintptr]int8, xlen)
27055 changed = true
27056 }
27057 if containerLen == 0 {
27058 dd.ReadMapEnd()
27059 return v, changed
27060 }
27061
27062 var mk uintptr
27063 var mv int8
27064 hasLen := containerLen > 0
27065 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
27066 if esep {
27067 dd.ReadMapElemKey()
27068 }
27069 mk = uintptr(dd.DecodeUint(uintBitsize))
27070 if esep {
27071 dd.ReadMapElemValue()
27072 }
27073 if dd.TryDecodeAsNil() {
27074 if d.h.DeleteOnNilMapValue {
27075 delete(v, mk)
27076 } else {
27077 v[mk] = 0
27078 }
27079 continue
27080 }
27081 mv = int8(dd.DecodeInt(8))
27082 if v != nil {
27083 v[mk] = mv
27084 }
27085 }
27086 dd.ReadMapEnd()
27087 return v, changed
27088 }
27089
27090 func (d *Decoder) fastpathDecMapUintptrInt16R(f *codecFnInfo, rv reflect.Value) {
27091 if rv.Kind() == reflect.Ptr {
27092 vp := rv2i(rv).(*map[uintptr]int16)
27093 if v, changed := fastpathTV.DecMapUintptrInt16V(*vp, true, d); changed {
27094 *vp = v
27095 }
27096 return
27097 }
27098 fastpathTV.DecMapUintptrInt16V(rv2i(rv).(map[uintptr]int16), false, d)
27099 }
27100 func (f fastpathT) DecMapUintptrInt16X(vp *map[uintptr]int16, d *Decoder) {
27101 if v, changed := f.DecMapUintptrInt16V(*vp, true, d); changed {
27102 *vp = v
27103 }
27104 }
27105 func (_ fastpathT) DecMapUintptrInt16V(v map[uintptr]int16, canChange bool,
27106 d *Decoder) (_ map[uintptr]int16, changed bool) {
27107 dd, esep := d.d, d.hh.hasElemSeparators()
27108
27109 containerLen := dd.ReadMapStart()
27110 if canChange && v == nil {
27111 xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
27112 v = make(map[uintptr]int16, xlen)
27113 changed = true
27114 }
27115 if containerLen == 0 {
27116 dd.ReadMapEnd()
27117 return v, changed
27118 }
27119
27120 var mk uintptr
27121 var mv int16
27122 hasLen := containerLen > 0
27123 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
27124 if esep {
27125 dd.ReadMapElemKey()
27126 }
27127 mk = uintptr(dd.DecodeUint(uintBitsize))
27128 if esep {
27129 dd.ReadMapElemValue()
27130 }
27131 if dd.TryDecodeAsNil() {
27132 if d.h.DeleteOnNilMapValue {
27133 delete(v, mk)
27134 } else {
27135 v[mk] = 0
27136 }
27137 continue
27138 }
27139 mv = int16(dd.DecodeInt(16))
27140 if v != nil {
27141 v[mk] = mv
27142 }
27143 }
27144 dd.ReadMapEnd()
27145 return v, changed
27146 }
27147
27148 func (d *Decoder) fastpathDecMapUintptrInt32R(f *codecFnInfo, rv reflect.Value) {
27149 if rv.Kind() == reflect.Ptr {
27150 vp := rv2i(rv).(*map[uintptr]int32)
27151 if v, changed := fastpathTV.DecMapUintptrInt32V(*vp, true, d); changed {
27152 *vp = v
27153 }
27154 return
27155 }
27156 fastpathTV.DecMapUintptrInt32V(rv2i(rv).(map[uintptr]int32), false, d)
27157 }
27158 func (f fastpathT) DecMapUintptrInt32X(vp *map[uintptr]int32, d *Decoder) {
27159 if v, changed := f.DecMapUintptrInt32V(*vp, true, d); changed {
27160 *vp = v
27161 }
27162 }
27163 func (_ fastpathT) DecMapUintptrInt32V(v map[uintptr]int32, canChange bool,
27164 d *Decoder) (_ map[uintptr]int32, changed bool) {
27165 dd, esep := d.d, d.hh.hasElemSeparators()
27166
27167 containerLen := dd.ReadMapStart()
27168 if canChange && v == nil {
27169 xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
27170 v = make(map[uintptr]int32, xlen)
27171 changed = true
27172 }
27173 if containerLen == 0 {
27174 dd.ReadMapEnd()
27175 return v, changed
27176 }
27177
27178 var mk uintptr
27179 var mv int32
27180 hasLen := containerLen > 0
27181 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
27182 if esep {
27183 dd.ReadMapElemKey()
27184 }
27185 mk = uintptr(dd.DecodeUint(uintBitsize))
27186 if esep {
27187 dd.ReadMapElemValue()
27188 }
27189 if dd.TryDecodeAsNil() {
27190 if d.h.DeleteOnNilMapValue {
27191 delete(v, mk)
27192 } else {
27193 v[mk] = 0
27194 }
27195 continue
27196 }
27197 mv = int32(dd.DecodeInt(32))
27198 if v != nil {
27199 v[mk] = mv
27200 }
27201 }
27202 dd.ReadMapEnd()
27203 return v, changed
27204 }
27205
27206 func (d *Decoder) fastpathDecMapUintptrInt64R(f *codecFnInfo, rv reflect.Value) {
27207 if rv.Kind() == reflect.Ptr {
27208 vp := rv2i(rv).(*map[uintptr]int64)
27209 if v, changed := fastpathTV.DecMapUintptrInt64V(*vp, true, d); changed {
27210 *vp = v
27211 }
27212 return
27213 }
27214 fastpathTV.DecMapUintptrInt64V(rv2i(rv).(map[uintptr]int64), false, d)
27215 }
27216 func (f fastpathT) DecMapUintptrInt64X(vp *map[uintptr]int64, d *Decoder) {
27217 if v, changed := f.DecMapUintptrInt64V(*vp, true, d); changed {
27218 *vp = v
27219 }
27220 }
27221 func (_ fastpathT) DecMapUintptrInt64V(v map[uintptr]int64, canChange bool,
27222 d *Decoder) (_ map[uintptr]int64, changed bool) {
27223 dd, esep := d.d, d.hh.hasElemSeparators()
27224
27225 containerLen := dd.ReadMapStart()
27226 if canChange && v == nil {
27227 xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
27228 v = make(map[uintptr]int64, xlen)
27229 changed = true
27230 }
27231 if containerLen == 0 {
27232 dd.ReadMapEnd()
27233 return v, changed
27234 }
27235
27236 var mk uintptr
27237 var mv int64
27238 hasLen := containerLen > 0
27239 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
27240 if esep {
27241 dd.ReadMapElemKey()
27242 }
27243 mk = uintptr(dd.DecodeUint(uintBitsize))
27244 if esep {
27245 dd.ReadMapElemValue()
27246 }
27247 if dd.TryDecodeAsNil() {
27248 if d.h.DeleteOnNilMapValue {
27249 delete(v, mk)
27250 } else {
27251 v[mk] = 0
27252 }
27253 continue
27254 }
27255 mv = dd.DecodeInt(64)
27256 if v != nil {
27257 v[mk] = mv
27258 }
27259 }
27260 dd.ReadMapEnd()
27261 return v, changed
27262 }
27263
27264 func (d *Decoder) fastpathDecMapUintptrFloat32R(f *codecFnInfo, rv reflect.Value) {
27265 if rv.Kind() == reflect.Ptr {
27266 vp := rv2i(rv).(*map[uintptr]float32)
27267 if v, changed := fastpathTV.DecMapUintptrFloat32V(*vp, true, d); changed {
27268 *vp = v
27269 }
27270 return
27271 }
27272 fastpathTV.DecMapUintptrFloat32V(rv2i(rv).(map[uintptr]float32), false, d)
27273 }
27274 func (f fastpathT) DecMapUintptrFloat32X(vp *map[uintptr]float32, d *Decoder) {
27275 if v, changed := f.DecMapUintptrFloat32V(*vp, true, d); changed {
27276 *vp = v
27277 }
27278 }
27279 func (_ fastpathT) DecMapUintptrFloat32V(v map[uintptr]float32, canChange bool,
27280 d *Decoder) (_ map[uintptr]float32, changed bool) {
27281 dd, esep := d.d, d.hh.hasElemSeparators()
27282
27283 containerLen := dd.ReadMapStart()
27284 if canChange && v == nil {
27285 xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
27286 v = make(map[uintptr]float32, xlen)
27287 changed = true
27288 }
27289 if containerLen == 0 {
27290 dd.ReadMapEnd()
27291 return v, changed
27292 }
27293
27294 var mk uintptr
27295 var mv float32
27296 hasLen := containerLen > 0
27297 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
27298 if esep {
27299 dd.ReadMapElemKey()
27300 }
27301 mk = uintptr(dd.DecodeUint(uintBitsize))
27302 if esep {
27303 dd.ReadMapElemValue()
27304 }
27305 if dd.TryDecodeAsNil() {
27306 if d.h.DeleteOnNilMapValue {
27307 delete(v, mk)
27308 } else {
27309 v[mk] = 0
27310 }
27311 continue
27312 }
27313 mv = float32(dd.DecodeFloat(true))
27314 if v != nil {
27315 v[mk] = mv
27316 }
27317 }
27318 dd.ReadMapEnd()
27319 return v, changed
27320 }
27321
27322 func (d *Decoder) fastpathDecMapUintptrFloat64R(f *codecFnInfo, rv reflect.Value) {
27323 if rv.Kind() == reflect.Ptr {
27324 vp := rv2i(rv).(*map[uintptr]float64)
27325 if v, changed := fastpathTV.DecMapUintptrFloat64V(*vp, true, d); changed {
27326 *vp = v
27327 }
27328 return
27329 }
27330 fastpathTV.DecMapUintptrFloat64V(rv2i(rv).(map[uintptr]float64), false, d)
27331 }
27332 func (f fastpathT) DecMapUintptrFloat64X(vp *map[uintptr]float64, d *Decoder) {
27333 if v, changed := f.DecMapUintptrFloat64V(*vp, true, d); changed {
27334 *vp = v
27335 }
27336 }
27337 func (_ fastpathT) DecMapUintptrFloat64V(v map[uintptr]float64, canChange bool,
27338 d *Decoder) (_ map[uintptr]float64, changed bool) {
27339 dd, esep := d.d, d.hh.hasElemSeparators()
27340
27341 containerLen := dd.ReadMapStart()
27342 if canChange && v == nil {
27343 xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
27344 v = make(map[uintptr]float64, xlen)
27345 changed = true
27346 }
27347 if containerLen == 0 {
27348 dd.ReadMapEnd()
27349 return v, changed
27350 }
27351
27352 var mk uintptr
27353 var mv float64
27354 hasLen := containerLen > 0
27355 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
27356 if esep {
27357 dd.ReadMapElemKey()
27358 }
27359 mk = uintptr(dd.DecodeUint(uintBitsize))
27360 if esep {
27361 dd.ReadMapElemValue()
27362 }
27363 if dd.TryDecodeAsNil() {
27364 if d.h.DeleteOnNilMapValue {
27365 delete(v, mk)
27366 } else {
27367 v[mk] = 0
27368 }
27369 continue
27370 }
27371 mv = dd.DecodeFloat(false)
27372 if v != nil {
27373 v[mk] = mv
27374 }
27375 }
27376 dd.ReadMapEnd()
27377 return v, changed
27378 }
27379
27380 func (d *Decoder) fastpathDecMapUintptrBoolR(f *codecFnInfo, rv reflect.Value) {
27381 if rv.Kind() == reflect.Ptr {
27382 vp := rv2i(rv).(*map[uintptr]bool)
27383 if v, changed := fastpathTV.DecMapUintptrBoolV(*vp, true, d); changed {
27384 *vp = v
27385 }
27386 return
27387 }
27388 fastpathTV.DecMapUintptrBoolV(rv2i(rv).(map[uintptr]bool), false, d)
27389 }
27390 func (f fastpathT) DecMapUintptrBoolX(vp *map[uintptr]bool, d *Decoder) {
27391 if v, changed := f.DecMapUintptrBoolV(*vp, true, d); changed {
27392 *vp = v
27393 }
27394 }
27395 func (_ fastpathT) DecMapUintptrBoolV(v map[uintptr]bool, canChange bool,
27396 d *Decoder) (_ map[uintptr]bool, changed bool) {
27397 dd, esep := d.d, d.hh.hasElemSeparators()
27398
27399 containerLen := dd.ReadMapStart()
27400 if canChange && v == nil {
27401 xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
27402 v = make(map[uintptr]bool, xlen)
27403 changed = true
27404 }
27405 if containerLen == 0 {
27406 dd.ReadMapEnd()
27407 return v, changed
27408 }
27409
27410 var mk uintptr
27411 var mv bool
27412 hasLen := containerLen > 0
27413 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
27414 if esep {
27415 dd.ReadMapElemKey()
27416 }
27417 mk = uintptr(dd.DecodeUint(uintBitsize))
27418 if esep {
27419 dd.ReadMapElemValue()
27420 }
27421 if dd.TryDecodeAsNil() {
27422 if d.h.DeleteOnNilMapValue {
27423 delete(v, mk)
27424 } else {
27425 v[mk] = false
27426 }
27427 continue
27428 }
27429 mv = dd.DecodeBool()
27430 if v != nil {
27431 v[mk] = mv
27432 }
27433 }
27434 dd.ReadMapEnd()
27435 return v, changed
27436 }
27437
27438 func (d *Decoder) fastpathDecMapIntIntfR(f *codecFnInfo, rv reflect.Value) {
27439 if rv.Kind() == reflect.Ptr {
27440 vp := rv2i(rv).(*map[int]interface{})
27441 if v, changed := fastpathTV.DecMapIntIntfV(*vp, true, d); changed {
27442 *vp = v
27443 }
27444 return
27445 }
27446 fastpathTV.DecMapIntIntfV(rv2i(rv).(map[int]interface{}), false, d)
27447 }
27448 func (f fastpathT) DecMapIntIntfX(vp *map[int]interface{}, d *Decoder) {
27449 if v, changed := f.DecMapIntIntfV(*vp, true, d); changed {
27450 *vp = v
27451 }
27452 }
27453 func (_ fastpathT) DecMapIntIntfV(v map[int]interface{}, canChange bool,
27454 d *Decoder) (_ map[int]interface{}, changed bool) {
27455 dd, esep := d.d, d.hh.hasElemSeparators()
27456
27457 containerLen := dd.ReadMapStart()
27458 if canChange && v == nil {
27459 xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
27460 v = make(map[int]interface{}, xlen)
27461 changed = true
27462 }
27463 if containerLen == 0 {
27464 dd.ReadMapEnd()
27465 return v, changed
27466 }
27467 mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
27468 var mk int
27469 var mv interface{}
27470 hasLen := containerLen > 0
27471 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
27472 if esep {
27473 dd.ReadMapElemKey()
27474 }
27475 mk = int(dd.DecodeInt(intBitsize))
27476 if esep {
27477 dd.ReadMapElemValue()
27478 }
27479 if dd.TryDecodeAsNil() {
27480 if d.h.DeleteOnNilMapValue {
27481 delete(v, mk)
27482 } else {
27483 v[mk] = nil
27484 }
27485 continue
27486 }
27487 if mapGet {
27488 mv = v[mk]
27489 } else {
27490 mv = nil
27491 }
27492 d.decode(&mv)
27493 if v != nil {
27494 v[mk] = mv
27495 }
27496 }
27497 dd.ReadMapEnd()
27498 return v, changed
27499 }
27500
27501 func (d *Decoder) fastpathDecMapIntStringR(f *codecFnInfo, rv reflect.Value) {
27502 if rv.Kind() == reflect.Ptr {
27503 vp := rv2i(rv).(*map[int]string)
27504 if v, changed := fastpathTV.DecMapIntStringV(*vp, true, d); changed {
27505 *vp = v
27506 }
27507 return
27508 }
27509 fastpathTV.DecMapIntStringV(rv2i(rv).(map[int]string), false, d)
27510 }
27511 func (f fastpathT) DecMapIntStringX(vp *map[int]string, d *Decoder) {
27512 if v, changed := f.DecMapIntStringV(*vp, true, d); changed {
27513 *vp = v
27514 }
27515 }
27516 func (_ fastpathT) DecMapIntStringV(v map[int]string, canChange bool,
27517 d *Decoder) (_ map[int]string, changed bool) {
27518 dd, esep := d.d, d.hh.hasElemSeparators()
27519
27520 containerLen := dd.ReadMapStart()
27521 if canChange && v == nil {
27522 xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
27523 v = make(map[int]string, xlen)
27524 changed = true
27525 }
27526 if containerLen == 0 {
27527 dd.ReadMapEnd()
27528 return v, changed
27529 }
27530
27531 var mk int
27532 var mv string
27533 hasLen := containerLen > 0
27534 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
27535 if esep {
27536 dd.ReadMapElemKey()
27537 }
27538 mk = int(dd.DecodeInt(intBitsize))
27539 if esep {
27540 dd.ReadMapElemValue()
27541 }
27542 if dd.TryDecodeAsNil() {
27543 if d.h.DeleteOnNilMapValue {
27544 delete(v, mk)
27545 } else {
27546 v[mk] = ""
27547 }
27548 continue
27549 }
27550 mv = dd.DecodeString()
27551 if v != nil {
27552 v[mk] = mv
27553 }
27554 }
27555 dd.ReadMapEnd()
27556 return v, changed
27557 }
27558
27559 func (d *Decoder) fastpathDecMapIntUintR(f *codecFnInfo, rv reflect.Value) {
27560 if rv.Kind() == reflect.Ptr {
27561 vp := rv2i(rv).(*map[int]uint)
27562 if v, changed := fastpathTV.DecMapIntUintV(*vp, true, d); changed {
27563 *vp = v
27564 }
27565 return
27566 }
27567 fastpathTV.DecMapIntUintV(rv2i(rv).(map[int]uint), false, d)
27568 }
27569 func (f fastpathT) DecMapIntUintX(vp *map[int]uint, d *Decoder) {
27570 if v, changed := f.DecMapIntUintV(*vp, true, d); changed {
27571 *vp = v
27572 }
27573 }
27574 func (_ fastpathT) DecMapIntUintV(v map[int]uint, canChange bool,
27575 d *Decoder) (_ map[int]uint, changed bool) {
27576 dd, esep := d.d, d.hh.hasElemSeparators()
27577
27578 containerLen := dd.ReadMapStart()
27579 if canChange && v == nil {
27580 xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
27581 v = make(map[int]uint, xlen)
27582 changed = true
27583 }
27584 if containerLen == 0 {
27585 dd.ReadMapEnd()
27586 return v, changed
27587 }
27588
27589 var mk int
27590 var mv uint
27591 hasLen := containerLen > 0
27592 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
27593 if esep {
27594 dd.ReadMapElemKey()
27595 }
27596 mk = int(dd.DecodeInt(intBitsize))
27597 if esep {
27598 dd.ReadMapElemValue()
27599 }
27600 if dd.TryDecodeAsNil() {
27601 if d.h.DeleteOnNilMapValue {
27602 delete(v, mk)
27603 } else {
27604 v[mk] = 0
27605 }
27606 continue
27607 }
27608 mv = uint(dd.DecodeUint(uintBitsize))
27609 if v != nil {
27610 v[mk] = mv
27611 }
27612 }
27613 dd.ReadMapEnd()
27614 return v, changed
27615 }
27616
27617 func (d *Decoder) fastpathDecMapIntUint8R(f *codecFnInfo, rv reflect.Value) {
27618 if rv.Kind() == reflect.Ptr {
27619 vp := rv2i(rv).(*map[int]uint8)
27620 if v, changed := fastpathTV.DecMapIntUint8V(*vp, true, d); changed {
27621 *vp = v
27622 }
27623 return
27624 }
27625 fastpathTV.DecMapIntUint8V(rv2i(rv).(map[int]uint8), false, d)
27626 }
27627 func (f fastpathT) DecMapIntUint8X(vp *map[int]uint8, d *Decoder) {
27628 if v, changed := f.DecMapIntUint8V(*vp, true, d); changed {
27629 *vp = v
27630 }
27631 }
27632 func (_ fastpathT) DecMapIntUint8V(v map[int]uint8, canChange bool,
27633 d *Decoder) (_ map[int]uint8, changed bool) {
27634 dd, esep := d.d, d.hh.hasElemSeparators()
27635
27636 containerLen := dd.ReadMapStart()
27637 if canChange && v == nil {
27638 xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
27639 v = make(map[int]uint8, xlen)
27640 changed = true
27641 }
27642 if containerLen == 0 {
27643 dd.ReadMapEnd()
27644 return v, changed
27645 }
27646
27647 var mk int
27648 var mv uint8
27649 hasLen := containerLen > 0
27650 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
27651 if esep {
27652 dd.ReadMapElemKey()
27653 }
27654 mk = int(dd.DecodeInt(intBitsize))
27655 if esep {
27656 dd.ReadMapElemValue()
27657 }
27658 if dd.TryDecodeAsNil() {
27659 if d.h.DeleteOnNilMapValue {
27660 delete(v, mk)
27661 } else {
27662 v[mk] = 0
27663 }
27664 continue
27665 }
27666 mv = uint8(dd.DecodeUint(8))
27667 if v != nil {
27668 v[mk] = mv
27669 }
27670 }
27671 dd.ReadMapEnd()
27672 return v, changed
27673 }
27674
27675 func (d *Decoder) fastpathDecMapIntUint16R(f *codecFnInfo, rv reflect.Value) {
27676 if rv.Kind() == reflect.Ptr {
27677 vp := rv2i(rv).(*map[int]uint16)
27678 if v, changed := fastpathTV.DecMapIntUint16V(*vp, true, d); changed {
27679 *vp = v
27680 }
27681 return
27682 }
27683 fastpathTV.DecMapIntUint16V(rv2i(rv).(map[int]uint16), false, d)
27684 }
27685 func (f fastpathT) DecMapIntUint16X(vp *map[int]uint16, d *Decoder) {
27686 if v, changed := f.DecMapIntUint16V(*vp, true, d); changed {
27687 *vp = v
27688 }
27689 }
27690 func (_ fastpathT) DecMapIntUint16V(v map[int]uint16, canChange bool,
27691 d *Decoder) (_ map[int]uint16, changed bool) {
27692 dd, esep := d.d, d.hh.hasElemSeparators()
27693
27694 containerLen := dd.ReadMapStart()
27695 if canChange && v == nil {
27696 xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
27697 v = make(map[int]uint16, xlen)
27698 changed = true
27699 }
27700 if containerLen == 0 {
27701 dd.ReadMapEnd()
27702 return v, changed
27703 }
27704
27705 var mk int
27706 var mv uint16
27707 hasLen := containerLen > 0
27708 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
27709 if esep {
27710 dd.ReadMapElemKey()
27711 }
27712 mk = int(dd.DecodeInt(intBitsize))
27713 if esep {
27714 dd.ReadMapElemValue()
27715 }
27716 if dd.TryDecodeAsNil() {
27717 if d.h.DeleteOnNilMapValue {
27718 delete(v, mk)
27719 } else {
27720 v[mk] = 0
27721 }
27722 continue
27723 }
27724 mv = uint16(dd.DecodeUint(16))
27725 if v != nil {
27726 v[mk] = mv
27727 }
27728 }
27729 dd.ReadMapEnd()
27730 return v, changed
27731 }
27732
27733 func (d *Decoder) fastpathDecMapIntUint32R(f *codecFnInfo, rv reflect.Value) {
27734 if rv.Kind() == reflect.Ptr {
27735 vp := rv2i(rv).(*map[int]uint32)
27736 if v, changed := fastpathTV.DecMapIntUint32V(*vp, true, d); changed {
27737 *vp = v
27738 }
27739 return
27740 }
27741 fastpathTV.DecMapIntUint32V(rv2i(rv).(map[int]uint32), false, d)
27742 }
27743 func (f fastpathT) DecMapIntUint32X(vp *map[int]uint32, d *Decoder) {
27744 if v, changed := f.DecMapIntUint32V(*vp, true, d); changed {
27745 *vp = v
27746 }
27747 }
27748 func (_ fastpathT) DecMapIntUint32V(v map[int]uint32, canChange bool,
27749 d *Decoder) (_ map[int]uint32, changed bool) {
27750 dd, esep := d.d, d.hh.hasElemSeparators()
27751
27752 containerLen := dd.ReadMapStart()
27753 if canChange && v == nil {
27754 xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
27755 v = make(map[int]uint32, xlen)
27756 changed = true
27757 }
27758 if containerLen == 0 {
27759 dd.ReadMapEnd()
27760 return v, changed
27761 }
27762
27763 var mk int
27764 var mv uint32
27765 hasLen := containerLen > 0
27766 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
27767 if esep {
27768 dd.ReadMapElemKey()
27769 }
27770 mk = int(dd.DecodeInt(intBitsize))
27771 if esep {
27772 dd.ReadMapElemValue()
27773 }
27774 if dd.TryDecodeAsNil() {
27775 if d.h.DeleteOnNilMapValue {
27776 delete(v, mk)
27777 } else {
27778 v[mk] = 0
27779 }
27780 continue
27781 }
27782 mv = uint32(dd.DecodeUint(32))
27783 if v != nil {
27784 v[mk] = mv
27785 }
27786 }
27787 dd.ReadMapEnd()
27788 return v, changed
27789 }
27790
27791 func (d *Decoder) fastpathDecMapIntUint64R(f *codecFnInfo, rv reflect.Value) {
27792 if rv.Kind() == reflect.Ptr {
27793 vp := rv2i(rv).(*map[int]uint64)
27794 if v, changed := fastpathTV.DecMapIntUint64V(*vp, true, d); changed {
27795 *vp = v
27796 }
27797 return
27798 }
27799 fastpathTV.DecMapIntUint64V(rv2i(rv).(map[int]uint64), false, d)
27800 }
27801 func (f fastpathT) DecMapIntUint64X(vp *map[int]uint64, d *Decoder) {
27802 if v, changed := f.DecMapIntUint64V(*vp, true, d); changed {
27803 *vp = v
27804 }
27805 }
27806 func (_ fastpathT) DecMapIntUint64V(v map[int]uint64, canChange bool,
27807 d *Decoder) (_ map[int]uint64, changed bool) {
27808 dd, esep := d.d, d.hh.hasElemSeparators()
27809
27810 containerLen := dd.ReadMapStart()
27811 if canChange && v == nil {
27812 xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
27813 v = make(map[int]uint64, xlen)
27814 changed = true
27815 }
27816 if containerLen == 0 {
27817 dd.ReadMapEnd()
27818 return v, changed
27819 }
27820
27821 var mk int
27822 var mv uint64
27823 hasLen := containerLen > 0
27824 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
27825 if esep {
27826 dd.ReadMapElemKey()
27827 }
27828 mk = int(dd.DecodeInt(intBitsize))
27829 if esep {
27830 dd.ReadMapElemValue()
27831 }
27832 if dd.TryDecodeAsNil() {
27833 if d.h.DeleteOnNilMapValue {
27834 delete(v, mk)
27835 } else {
27836 v[mk] = 0
27837 }
27838 continue
27839 }
27840 mv = dd.DecodeUint(64)
27841 if v != nil {
27842 v[mk] = mv
27843 }
27844 }
27845 dd.ReadMapEnd()
27846 return v, changed
27847 }
27848
27849 func (d *Decoder) fastpathDecMapIntUintptrR(f *codecFnInfo, rv reflect.Value) {
27850 if rv.Kind() == reflect.Ptr {
27851 vp := rv2i(rv).(*map[int]uintptr)
27852 if v, changed := fastpathTV.DecMapIntUintptrV(*vp, true, d); changed {
27853 *vp = v
27854 }
27855 return
27856 }
27857 fastpathTV.DecMapIntUintptrV(rv2i(rv).(map[int]uintptr), false, d)
27858 }
27859 func (f fastpathT) DecMapIntUintptrX(vp *map[int]uintptr, d *Decoder) {
27860 if v, changed := f.DecMapIntUintptrV(*vp, true, d); changed {
27861 *vp = v
27862 }
27863 }
27864 func (_ fastpathT) DecMapIntUintptrV(v map[int]uintptr, canChange bool,
27865 d *Decoder) (_ map[int]uintptr, changed bool) {
27866 dd, esep := d.d, d.hh.hasElemSeparators()
27867
27868 containerLen := dd.ReadMapStart()
27869 if canChange && v == nil {
27870 xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
27871 v = make(map[int]uintptr, xlen)
27872 changed = true
27873 }
27874 if containerLen == 0 {
27875 dd.ReadMapEnd()
27876 return v, changed
27877 }
27878
27879 var mk int
27880 var mv uintptr
27881 hasLen := containerLen > 0
27882 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
27883 if esep {
27884 dd.ReadMapElemKey()
27885 }
27886 mk = int(dd.DecodeInt(intBitsize))
27887 if esep {
27888 dd.ReadMapElemValue()
27889 }
27890 if dd.TryDecodeAsNil() {
27891 if d.h.DeleteOnNilMapValue {
27892 delete(v, mk)
27893 } else {
27894 v[mk] = 0
27895 }
27896 continue
27897 }
27898 mv = uintptr(dd.DecodeUint(uintBitsize))
27899 if v != nil {
27900 v[mk] = mv
27901 }
27902 }
27903 dd.ReadMapEnd()
27904 return v, changed
27905 }
27906
27907 func (d *Decoder) fastpathDecMapIntIntR(f *codecFnInfo, rv reflect.Value) {
27908 if rv.Kind() == reflect.Ptr {
27909 vp := rv2i(rv).(*map[int]int)
27910 if v, changed := fastpathTV.DecMapIntIntV(*vp, true, d); changed {
27911 *vp = v
27912 }
27913 return
27914 }
27915 fastpathTV.DecMapIntIntV(rv2i(rv).(map[int]int), false, d)
27916 }
27917 func (f fastpathT) DecMapIntIntX(vp *map[int]int, d *Decoder) {
27918 if v, changed := f.DecMapIntIntV(*vp, true, d); changed {
27919 *vp = v
27920 }
27921 }
27922 func (_ fastpathT) DecMapIntIntV(v map[int]int, canChange bool,
27923 d *Decoder) (_ map[int]int, changed bool) {
27924 dd, esep := d.d, d.hh.hasElemSeparators()
27925
27926 containerLen := dd.ReadMapStart()
27927 if canChange && v == nil {
27928 xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
27929 v = make(map[int]int, xlen)
27930 changed = true
27931 }
27932 if containerLen == 0 {
27933 dd.ReadMapEnd()
27934 return v, changed
27935 }
27936
27937 var mk int
27938 var mv int
27939 hasLen := containerLen > 0
27940 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
27941 if esep {
27942 dd.ReadMapElemKey()
27943 }
27944 mk = int(dd.DecodeInt(intBitsize))
27945 if esep {
27946 dd.ReadMapElemValue()
27947 }
27948 if dd.TryDecodeAsNil() {
27949 if d.h.DeleteOnNilMapValue {
27950 delete(v, mk)
27951 } else {
27952 v[mk] = 0
27953 }
27954 continue
27955 }
27956 mv = int(dd.DecodeInt(intBitsize))
27957 if v != nil {
27958 v[mk] = mv
27959 }
27960 }
27961 dd.ReadMapEnd()
27962 return v, changed
27963 }
27964
27965 func (d *Decoder) fastpathDecMapIntInt8R(f *codecFnInfo, rv reflect.Value) {
27966 if rv.Kind() == reflect.Ptr {
27967 vp := rv2i(rv).(*map[int]int8)
27968 if v, changed := fastpathTV.DecMapIntInt8V(*vp, true, d); changed {
27969 *vp = v
27970 }
27971 return
27972 }
27973 fastpathTV.DecMapIntInt8V(rv2i(rv).(map[int]int8), false, d)
27974 }
27975 func (f fastpathT) DecMapIntInt8X(vp *map[int]int8, d *Decoder) {
27976 if v, changed := f.DecMapIntInt8V(*vp, true, d); changed {
27977 *vp = v
27978 }
27979 }
27980 func (_ fastpathT) DecMapIntInt8V(v map[int]int8, canChange bool,
27981 d *Decoder) (_ map[int]int8, changed bool) {
27982 dd, esep := d.d, d.hh.hasElemSeparators()
27983
27984 containerLen := dd.ReadMapStart()
27985 if canChange && v == nil {
27986 xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
27987 v = make(map[int]int8, xlen)
27988 changed = true
27989 }
27990 if containerLen == 0 {
27991 dd.ReadMapEnd()
27992 return v, changed
27993 }
27994
27995 var mk int
27996 var mv int8
27997 hasLen := containerLen > 0
27998 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
27999 if esep {
28000 dd.ReadMapElemKey()
28001 }
28002 mk = int(dd.DecodeInt(intBitsize))
28003 if esep {
28004 dd.ReadMapElemValue()
28005 }
28006 if dd.TryDecodeAsNil() {
28007 if d.h.DeleteOnNilMapValue {
28008 delete(v, mk)
28009 } else {
28010 v[mk] = 0
28011 }
28012 continue
28013 }
28014 mv = int8(dd.DecodeInt(8))
28015 if v != nil {
28016 v[mk] = mv
28017 }
28018 }
28019 dd.ReadMapEnd()
28020 return v, changed
28021 }
28022
28023 func (d *Decoder) fastpathDecMapIntInt16R(f *codecFnInfo, rv reflect.Value) {
28024 if rv.Kind() == reflect.Ptr {
28025 vp := rv2i(rv).(*map[int]int16)
28026 if v, changed := fastpathTV.DecMapIntInt16V(*vp, true, d); changed {
28027 *vp = v
28028 }
28029 return
28030 }
28031 fastpathTV.DecMapIntInt16V(rv2i(rv).(map[int]int16), false, d)
28032 }
28033 func (f fastpathT) DecMapIntInt16X(vp *map[int]int16, d *Decoder) {
28034 if v, changed := f.DecMapIntInt16V(*vp, true, d); changed {
28035 *vp = v
28036 }
28037 }
28038 func (_ fastpathT) DecMapIntInt16V(v map[int]int16, canChange bool,
28039 d *Decoder) (_ map[int]int16, changed bool) {
28040 dd, esep := d.d, d.hh.hasElemSeparators()
28041
28042 containerLen := dd.ReadMapStart()
28043 if canChange && v == nil {
28044 xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
28045 v = make(map[int]int16, xlen)
28046 changed = true
28047 }
28048 if containerLen == 0 {
28049 dd.ReadMapEnd()
28050 return v, changed
28051 }
28052
28053 var mk int
28054 var mv int16
28055 hasLen := containerLen > 0
28056 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
28057 if esep {
28058 dd.ReadMapElemKey()
28059 }
28060 mk = int(dd.DecodeInt(intBitsize))
28061 if esep {
28062 dd.ReadMapElemValue()
28063 }
28064 if dd.TryDecodeAsNil() {
28065 if d.h.DeleteOnNilMapValue {
28066 delete(v, mk)
28067 } else {
28068 v[mk] = 0
28069 }
28070 continue
28071 }
28072 mv = int16(dd.DecodeInt(16))
28073 if v != nil {
28074 v[mk] = mv
28075 }
28076 }
28077 dd.ReadMapEnd()
28078 return v, changed
28079 }
28080
28081 func (d *Decoder) fastpathDecMapIntInt32R(f *codecFnInfo, rv reflect.Value) {
28082 if rv.Kind() == reflect.Ptr {
28083 vp := rv2i(rv).(*map[int]int32)
28084 if v, changed := fastpathTV.DecMapIntInt32V(*vp, true, d); changed {
28085 *vp = v
28086 }
28087 return
28088 }
28089 fastpathTV.DecMapIntInt32V(rv2i(rv).(map[int]int32), false, d)
28090 }
28091 func (f fastpathT) DecMapIntInt32X(vp *map[int]int32, d *Decoder) {
28092 if v, changed := f.DecMapIntInt32V(*vp, true, d); changed {
28093 *vp = v
28094 }
28095 }
28096 func (_ fastpathT) DecMapIntInt32V(v map[int]int32, canChange bool,
28097 d *Decoder) (_ map[int]int32, changed bool) {
28098 dd, esep := d.d, d.hh.hasElemSeparators()
28099
28100 containerLen := dd.ReadMapStart()
28101 if canChange && v == nil {
28102 xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
28103 v = make(map[int]int32, xlen)
28104 changed = true
28105 }
28106 if containerLen == 0 {
28107 dd.ReadMapEnd()
28108 return v, changed
28109 }
28110
28111 var mk int
28112 var mv int32
28113 hasLen := containerLen > 0
28114 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
28115 if esep {
28116 dd.ReadMapElemKey()
28117 }
28118 mk = int(dd.DecodeInt(intBitsize))
28119 if esep {
28120 dd.ReadMapElemValue()
28121 }
28122 if dd.TryDecodeAsNil() {
28123 if d.h.DeleteOnNilMapValue {
28124 delete(v, mk)
28125 } else {
28126 v[mk] = 0
28127 }
28128 continue
28129 }
28130 mv = int32(dd.DecodeInt(32))
28131 if v != nil {
28132 v[mk] = mv
28133 }
28134 }
28135 dd.ReadMapEnd()
28136 return v, changed
28137 }
28138
28139 func (d *Decoder) fastpathDecMapIntInt64R(f *codecFnInfo, rv reflect.Value) {
28140 if rv.Kind() == reflect.Ptr {
28141 vp := rv2i(rv).(*map[int]int64)
28142 if v, changed := fastpathTV.DecMapIntInt64V(*vp, true, d); changed {
28143 *vp = v
28144 }
28145 return
28146 }
28147 fastpathTV.DecMapIntInt64V(rv2i(rv).(map[int]int64), false, d)
28148 }
28149 func (f fastpathT) DecMapIntInt64X(vp *map[int]int64, d *Decoder) {
28150 if v, changed := f.DecMapIntInt64V(*vp, true, d); changed {
28151 *vp = v
28152 }
28153 }
28154 func (_ fastpathT) DecMapIntInt64V(v map[int]int64, canChange bool,
28155 d *Decoder) (_ map[int]int64, changed bool) {
28156 dd, esep := d.d, d.hh.hasElemSeparators()
28157
28158 containerLen := dd.ReadMapStart()
28159 if canChange && v == nil {
28160 xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
28161 v = make(map[int]int64, xlen)
28162 changed = true
28163 }
28164 if containerLen == 0 {
28165 dd.ReadMapEnd()
28166 return v, changed
28167 }
28168
28169 var mk int
28170 var mv int64
28171 hasLen := containerLen > 0
28172 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
28173 if esep {
28174 dd.ReadMapElemKey()
28175 }
28176 mk = int(dd.DecodeInt(intBitsize))
28177 if esep {
28178 dd.ReadMapElemValue()
28179 }
28180 if dd.TryDecodeAsNil() {
28181 if d.h.DeleteOnNilMapValue {
28182 delete(v, mk)
28183 } else {
28184 v[mk] = 0
28185 }
28186 continue
28187 }
28188 mv = dd.DecodeInt(64)
28189 if v != nil {
28190 v[mk] = mv
28191 }
28192 }
28193 dd.ReadMapEnd()
28194 return v, changed
28195 }
28196
28197 func (d *Decoder) fastpathDecMapIntFloat32R(f *codecFnInfo, rv reflect.Value) {
28198 if rv.Kind() == reflect.Ptr {
28199 vp := rv2i(rv).(*map[int]float32)
28200 if v, changed := fastpathTV.DecMapIntFloat32V(*vp, true, d); changed {
28201 *vp = v
28202 }
28203 return
28204 }
28205 fastpathTV.DecMapIntFloat32V(rv2i(rv).(map[int]float32), false, d)
28206 }
28207 func (f fastpathT) DecMapIntFloat32X(vp *map[int]float32, d *Decoder) {
28208 if v, changed := f.DecMapIntFloat32V(*vp, true, d); changed {
28209 *vp = v
28210 }
28211 }
28212 func (_ fastpathT) DecMapIntFloat32V(v map[int]float32, canChange bool,
28213 d *Decoder) (_ map[int]float32, changed bool) {
28214 dd, esep := d.d, d.hh.hasElemSeparators()
28215
28216 containerLen := dd.ReadMapStart()
28217 if canChange && v == nil {
28218 xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
28219 v = make(map[int]float32, xlen)
28220 changed = true
28221 }
28222 if containerLen == 0 {
28223 dd.ReadMapEnd()
28224 return v, changed
28225 }
28226
28227 var mk int
28228 var mv float32
28229 hasLen := containerLen > 0
28230 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
28231 if esep {
28232 dd.ReadMapElemKey()
28233 }
28234 mk = int(dd.DecodeInt(intBitsize))
28235 if esep {
28236 dd.ReadMapElemValue()
28237 }
28238 if dd.TryDecodeAsNil() {
28239 if d.h.DeleteOnNilMapValue {
28240 delete(v, mk)
28241 } else {
28242 v[mk] = 0
28243 }
28244 continue
28245 }
28246 mv = float32(dd.DecodeFloat(true))
28247 if v != nil {
28248 v[mk] = mv
28249 }
28250 }
28251 dd.ReadMapEnd()
28252 return v, changed
28253 }
28254
28255 func (d *Decoder) fastpathDecMapIntFloat64R(f *codecFnInfo, rv reflect.Value) {
28256 if rv.Kind() == reflect.Ptr {
28257 vp := rv2i(rv).(*map[int]float64)
28258 if v, changed := fastpathTV.DecMapIntFloat64V(*vp, true, d); changed {
28259 *vp = v
28260 }
28261 return
28262 }
28263 fastpathTV.DecMapIntFloat64V(rv2i(rv).(map[int]float64), false, d)
28264 }
28265 func (f fastpathT) DecMapIntFloat64X(vp *map[int]float64, d *Decoder) {
28266 if v, changed := f.DecMapIntFloat64V(*vp, true, d); changed {
28267 *vp = v
28268 }
28269 }
28270 func (_ fastpathT) DecMapIntFloat64V(v map[int]float64, canChange bool,
28271 d *Decoder) (_ map[int]float64, changed bool) {
28272 dd, esep := d.d, d.hh.hasElemSeparators()
28273
28274 containerLen := dd.ReadMapStart()
28275 if canChange && v == nil {
28276 xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
28277 v = make(map[int]float64, xlen)
28278 changed = true
28279 }
28280 if containerLen == 0 {
28281 dd.ReadMapEnd()
28282 return v, changed
28283 }
28284
28285 var mk int
28286 var mv float64
28287 hasLen := containerLen > 0
28288 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
28289 if esep {
28290 dd.ReadMapElemKey()
28291 }
28292 mk = int(dd.DecodeInt(intBitsize))
28293 if esep {
28294 dd.ReadMapElemValue()
28295 }
28296 if dd.TryDecodeAsNil() {
28297 if d.h.DeleteOnNilMapValue {
28298 delete(v, mk)
28299 } else {
28300 v[mk] = 0
28301 }
28302 continue
28303 }
28304 mv = dd.DecodeFloat(false)
28305 if v != nil {
28306 v[mk] = mv
28307 }
28308 }
28309 dd.ReadMapEnd()
28310 return v, changed
28311 }
28312
28313 func (d *Decoder) fastpathDecMapIntBoolR(f *codecFnInfo, rv reflect.Value) {
28314 if rv.Kind() == reflect.Ptr {
28315 vp := rv2i(rv).(*map[int]bool)
28316 if v, changed := fastpathTV.DecMapIntBoolV(*vp, true, d); changed {
28317 *vp = v
28318 }
28319 return
28320 }
28321 fastpathTV.DecMapIntBoolV(rv2i(rv).(map[int]bool), false, d)
28322 }
28323 func (f fastpathT) DecMapIntBoolX(vp *map[int]bool, d *Decoder) {
28324 if v, changed := f.DecMapIntBoolV(*vp, true, d); changed {
28325 *vp = v
28326 }
28327 }
28328 func (_ fastpathT) DecMapIntBoolV(v map[int]bool, canChange bool,
28329 d *Decoder) (_ map[int]bool, changed bool) {
28330 dd, esep := d.d, d.hh.hasElemSeparators()
28331
28332 containerLen := dd.ReadMapStart()
28333 if canChange && v == nil {
28334 xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
28335 v = make(map[int]bool, xlen)
28336 changed = true
28337 }
28338 if containerLen == 0 {
28339 dd.ReadMapEnd()
28340 return v, changed
28341 }
28342
28343 var mk int
28344 var mv bool
28345 hasLen := containerLen > 0
28346 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
28347 if esep {
28348 dd.ReadMapElemKey()
28349 }
28350 mk = int(dd.DecodeInt(intBitsize))
28351 if esep {
28352 dd.ReadMapElemValue()
28353 }
28354 if dd.TryDecodeAsNil() {
28355 if d.h.DeleteOnNilMapValue {
28356 delete(v, mk)
28357 } else {
28358 v[mk] = false
28359 }
28360 continue
28361 }
28362 mv = dd.DecodeBool()
28363 if v != nil {
28364 v[mk] = mv
28365 }
28366 }
28367 dd.ReadMapEnd()
28368 return v, changed
28369 }
28370
28371 func (d *Decoder) fastpathDecMapInt8IntfR(f *codecFnInfo, rv reflect.Value) {
28372 if rv.Kind() == reflect.Ptr {
28373 vp := rv2i(rv).(*map[int8]interface{})
28374 if v, changed := fastpathTV.DecMapInt8IntfV(*vp, true, d); changed {
28375 *vp = v
28376 }
28377 return
28378 }
28379 fastpathTV.DecMapInt8IntfV(rv2i(rv).(map[int8]interface{}), false, d)
28380 }
28381 func (f fastpathT) DecMapInt8IntfX(vp *map[int8]interface{}, d *Decoder) {
28382 if v, changed := f.DecMapInt8IntfV(*vp, true, d); changed {
28383 *vp = v
28384 }
28385 }
28386 func (_ fastpathT) DecMapInt8IntfV(v map[int8]interface{}, canChange bool,
28387 d *Decoder) (_ map[int8]interface{}, changed bool) {
28388 dd, esep := d.d, d.hh.hasElemSeparators()
28389
28390 containerLen := dd.ReadMapStart()
28391 if canChange && v == nil {
28392 xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
28393 v = make(map[int8]interface{}, xlen)
28394 changed = true
28395 }
28396 if containerLen == 0 {
28397 dd.ReadMapEnd()
28398 return v, changed
28399 }
28400 mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
28401 var mk int8
28402 var mv interface{}
28403 hasLen := containerLen > 0
28404 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
28405 if esep {
28406 dd.ReadMapElemKey()
28407 }
28408 mk = int8(dd.DecodeInt(8))
28409 if esep {
28410 dd.ReadMapElemValue()
28411 }
28412 if dd.TryDecodeAsNil() {
28413 if d.h.DeleteOnNilMapValue {
28414 delete(v, mk)
28415 } else {
28416 v[mk] = nil
28417 }
28418 continue
28419 }
28420 if mapGet {
28421 mv = v[mk]
28422 } else {
28423 mv = nil
28424 }
28425 d.decode(&mv)
28426 if v != nil {
28427 v[mk] = mv
28428 }
28429 }
28430 dd.ReadMapEnd()
28431 return v, changed
28432 }
28433
28434 func (d *Decoder) fastpathDecMapInt8StringR(f *codecFnInfo, rv reflect.Value) {
28435 if rv.Kind() == reflect.Ptr {
28436 vp := rv2i(rv).(*map[int8]string)
28437 if v, changed := fastpathTV.DecMapInt8StringV(*vp, true, d); changed {
28438 *vp = v
28439 }
28440 return
28441 }
28442 fastpathTV.DecMapInt8StringV(rv2i(rv).(map[int8]string), false, d)
28443 }
28444 func (f fastpathT) DecMapInt8StringX(vp *map[int8]string, d *Decoder) {
28445 if v, changed := f.DecMapInt8StringV(*vp, true, d); changed {
28446 *vp = v
28447 }
28448 }
28449 func (_ fastpathT) DecMapInt8StringV(v map[int8]string, canChange bool,
28450 d *Decoder) (_ map[int8]string, changed bool) {
28451 dd, esep := d.d, d.hh.hasElemSeparators()
28452
28453 containerLen := dd.ReadMapStart()
28454 if canChange && v == nil {
28455 xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
28456 v = make(map[int8]string, xlen)
28457 changed = true
28458 }
28459 if containerLen == 0 {
28460 dd.ReadMapEnd()
28461 return v, changed
28462 }
28463
28464 var mk int8
28465 var mv string
28466 hasLen := containerLen > 0
28467 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
28468 if esep {
28469 dd.ReadMapElemKey()
28470 }
28471 mk = int8(dd.DecodeInt(8))
28472 if esep {
28473 dd.ReadMapElemValue()
28474 }
28475 if dd.TryDecodeAsNil() {
28476 if d.h.DeleteOnNilMapValue {
28477 delete(v, mk)
28478 } else {
28479 v[mk] = ""
28480 }
28481 continue
28482 }
28483 mv = dd.DecodeString()
28484 if v != nil {
28485 v[mk] = mv
28486 }
28487 }
28488 dd.ReadMapEnd()
28489 return v, changed
28490 }
28491
28492 func (d *Decoder) fastpathDecMapInt8UintR(f *codecFnInfo, rv reflect.Value) {
28493 if rv.Kind() == reflect.Ptr {
28494 vp := rv2i(rv).(*map[int8]uint)
28495 if v, changed := fastpathTV.DecMapInt8UintV(*vp, true, d); changed {
28496 *vp = v
28497 }
28498 return
28499 }
28500 fastpathTV.DecMapInt8UintV(rv2i(rv).(map[int8]uint), false, d)
28501 }
28502 func (f fastpathT) DecMapInt8UintX(vp *map[int8]uint, d *Decoder) {
28503 if v, changed := f.DecMapInt8UintV(*vp, true, d); changed {
28504 *vp = v
28505 }
28506 }
28507 func (_ fastpathT) DecMapInt8UintV(v map[int8]uint, canChange bool,
28508 d *Decoder) (_ map[int8]uint, changed bool) {
28509 dd, esep := d.d, d.hh.hasElemSeparators()
28510
28511 containerLen := dd.ReadMapStart()
28512 if canChange && v == nil {
28513 xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
28514 v = make(map[int8]uint, xlen)
28515 changed = true
28516 }
28517 if containerLen == 0 {
28518 dd.ReadMapEnd()
28519 return v, changed
28520 }
28521
28522 var mk int8
28523 var mv uint
28524 hasLen := containerLen > 0
28525 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
28526 if esep {
28527 dd.ReadMapElemKey()
28528 }
28529 mk = int8(dd.DecodeInt(8))
28530 if esep {
28531 dd.ReadMapElemValue()
28532 }
28533 if dd.TryDecodeAsNil() {
28534 if d.h.DeleteOnNilMapValue {
28535 delete(v, mk)
28536 } else {
28537 v[mk] = 0
28538 }
28539 continue
28540 }
28541 mv = uint(dd.DecodeUint(uintBitsize))
28542 if v != nil {
28543 v[mk] = mv
28544 }
28545 }
28546 dd.ReadMapEnd()
28547 return v, changed
28548 }
28549
28550 func (d *Decoder) fastpathDecMapInt8Uint8R(f *codecFnInfo, rv reflect.Value) {
28551 if rv.Kind() == reflect.Ptr {
28552 vp := rv2i(rv).(*map[int8]uint8)
28553 if v, changed := fastpathTV.DecMapInt8Uint8V(*vp, true, d); changed {
28554 *vp = v
28555 }
28556 return
28557 }
28558 fastpathTV.DecMapInt8Uint8V(rv2i(rv).(map[int8]uint8), false, d)
28559 }
28560 func (f fastpathT) DecMapInt8Uint8X(vp *map[int8]uint8, d *Decoder) {
28561 if v, changed := f.DecMapInt8Uint8V(*vp, true, d); changed {
28562 *vp = v
28563 }
28564 }
28565 func (_ fastpathT) DecMapInt8Uint8V(v map[int8]uint8, canChange bool,
28566 d *Decoder) (_ map[int8]uint8, changed bool) {
28567 dd, esep := d.d, d.hh.hasElemSeparators()
28568
28569 containerLen := dd.ReadMapStart()
28570 if canChange && v == nil {
28571 xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
28572 v = make(map[int8]uint8, xlen)
28573 changed = true
28574 }
28575 if containerLen == 0 {
28576 dd.ReadMapEnd()
28577 return v, changed
28578 }
28579
28580 var mk int8
28581 var mv uint8
28582 hasLen := containerLen > 0
28583 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
28584 if esep {
28585 dd.ReadMapElemKey()
28586 }
28587 mk = int8(dd.DecodeInt(8))
28588 if esep {
28589 dd.ReadMapElemValue()
28590 }
28591 if dd.TryDecodeAsNil() {
28592 if d.h.DeleteOnNilMapValue {
28593 delete(v, mk)
28594 } else {
28595 v[mk] = 0
28596 }
28597 continue
28598 }
28599 mv = uint8(dd.DecodeUint(8))
28600 if v != nil {
28601 v[mk] = mv
28602 }
28603 }
28604 dd.ReadMapEnd()
28605 return v, changed
28606 }
28607
28608 func (d *Decoder) fastpathDecMapInt8Uint16R(f *codecFnInfo, rv reflect.Value) {
28609 if rv.Kind() == reflect.Ptr {
28610 vp := rv2i(rv).(*map[int8]uint16)
28611 if v, changed := fastpathTV.DecMapInt8Uint16V(*vp, true, d); changed {
28612 *vp = v
28613 }
28614 return
28615 }
28616 fastpathTV.DecMapInt8Uint16V(rv2i(rv).(map[int8]uint16), false, d)
28617 }
28618 func (f fastpathT) DecMapInt8Uint16X(vp *map[int8]uint16, d *Decoder) {
28619 if v, changed := f.DecMapInt8Uint16V(*vp, true, d); changed {
28620 *vp = v
28621 }
28622 }
28623 func (_ fastpathT) DecMapInt8Uint16V(v map[int8]uint16, canChange bool,
28624 d *Decoder) (_ map[int8]uint16, changed bool) {
28625 dd, esep := d.d, d.hh.hasElemSeparators()
28626
28627 containerLen := dd.ReadMapStart()
28628 if canChange && v == nil {
28629 xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
28630 v = make(map[int8]uint16, xlen)
28631 changed = true
28632 }
28633 if containerLen == 0 {
28634 dd.ReadMapEnd()
28635 return v, changed
28636 }
28637
28638 var mk int8
28639 var mv uint16
28640 hasLen := containerLen > 0
28641 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
28642 if esep {
28643 dd.ReadMapElemKey()
28644 }
28645 mk = int8(dd.DecodeInt(8))
28646 if esep {
28647 dd.ReadMapElemValue()
28648 }
28649 if dd.TryDecodeAsNil() {
28650 if d.h.DeleteOnNilMapValue {
28651 delete(v, mk)
28652 } else {
28653 v[mk] = 0
28654 }
28655 continue
28656 }
28657 mv = uint16(dd.DecodeUint(16))
28658 if v != nil {
28659 v[mk] = mv
28660 }
28661 }
28662 dd.ReadMapEnd()
28663 return v, changed
28664 }
28665
28666 func (d *Decoder) fastpathDecMapInt8Uint32R(f *codecFnInfo, rv reflect.Value) {
28667 if rv.Kind() == reflect.Ptr {
28668 vp := rv2i(rv).(*map[int8]uint32)
28669 if v, changed := fastpathTV.DecMapInt8Uint32V(*vp, true, d); changed {
28670 *vp = v
28671 }
28672 return
28673 }
28674 fastpathTV.DecMapInt8Uint32V(rv2i(rv).(map[int8]uint32), false, d)
28675 }
28676 func (f fastpathT) DecMapInt8Uint32X(vp *map[int8]uint32, d *Decoder) {
28677 if v, changed := f.DecMapInt8Uint32V(*vp, true, d); changed {
28678 *vp = v
28679 }
28680 }
28681 func (_ fastpathT) DecMapInt8Uint32V(v map[int8]uint32, canChange bool,
28682 d *Decoder) (_ map[int8]uint32, changed bool) {
28683 dd, esep := d.d, d.hh.hasElemSeparators()
28684
28685 containerLen := dd.ReadMapStart()
28686 if canChange && v == nil {
28687 xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
28688 v = make(map[int8]uint32, xlen)
28689 changed = true
28690 }
28691 if containerLen == 0 {
28692 dd.ReadMapEnd()
28693 return v, changed
28694 }
28695
28696 var mk int8
28697 var mv uint32
28698 hasLen := containerLen > 0
28699 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
28700 if esep {
28701 dd.ReadMapElemKey()
28702 }
28703 mk = int8(dd.DecodeInt(8))
28704 if esep {
28705 dd.ReadMapElemValue()
28706 }
28707 if dd.TryDecodeAsNil() {
28708 if d.h.DeleteOnNilMapValue {
28709 delete(v, mk)
28710 } else {
28711 v[mk] = 0
28712 }
28713 continue
28714 }
28715 mv = uint32(dd.DecodeUint(32))
28716 if v != nil {
28717 v[mk] = mv
28718 }
28719 }
28720 dd.ReadMapEnd()
28721 return v, changed
28722 }
28723
28724 func (d *Decoder) fastpathDecMapInt8Uint64R(f *codecFnInfo, rv reflect.Value) {
28725 if rv.Kind() == reflect.Ptr {
28726 vp := rv2i(rv).(*map[int8]uint64)
28727 if v, changed := fastpathTV.DecMapInt8Uint64V(*vp, true, d); changed {
28728 *vp = v
28729 }
28730 return
28731 }
28732 fastpathTV.DecMapInt8Uint64V(rv2i(rv).(map[int8]uint64), false, d)
28733 }
28734 func (f fastpathT) DecMapInt8Uint64X(vp *map[int8]uint64, d *Decoder) {
28735 if v, changed := f.DecMapInt8Uint64V(*vp, true, d); changed {
28736 *vp = v
28737 }
28738 }
28739 func (_ fastpathT) DecMapInt8Uint64V(v map[int8]uint64, canChange bool,
28740 d *Decoder) (_ map[int8]uint64, changed bool) {
28741 dd, esep := d.d, d.hh.hasElemSeparators()
28742
28743 containerLen := dd.ReadMapStart()
28744 if canChange && v == nil {
28745 xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
28746 v = make(map[int8]uint64, xlen)
28747 changed = true
28748 }
28749 if containerLen == 0 {
28750 dd.ReadMapEnd()
28751 return v, changed
28752 }
28753
28754 var mk int8
28755 var mv uint64
28756 hasLen := containerLen > 0
28757 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
28758 if esep {
28759 dd.ReadMapElemKey()
28760 }
28761 mk = int8(dd.DecodeInt(8))
28762 if esep {
28763 dd.ReadMapElemValue()
28764 }
28765 if dd.TryDecodeAsNil() {
28766 if d.h.DeleteOnNilMapValue {
28767 delete(v, mk)
28768 } else {
28769 v[mk] = 0
28770 }
28771 continue
28772 }
28773 mv = dd.DecodeUint(64)
28774 if v != nil {
28775 v[mk] = mv
28776 }
28777 }
28778 dd.ReadMapEnd()
28779 return v, changed
28780 }
28781
28782 func (d *Decoder) fastpathDecMapInt8UintptrR(f *codecFnInfo, rv reflect.Value) {
28783 if rv.Kind() == reflect.Ptr {
28784 vp := rv2i(rv).(*map[int8]uintptr)
28785 if v, changed := fastpathTV.DecMapInt8UintptrV(*vp, true, d); changed {
28786 *vp = v
28787 }
28788 return
28789 }
28790 fastpathTV.DecMapInt8UintptrV(rv2i(rv).(map[int8]uintptr), false, d)
28791 }
28792 func (f fastpathT) DecMapInt8UintptrX(vp *map[int8]uintptr, d *Decoder) {
28793 if v, changed := f.DecMapInt8UintptrV(*vp, true, d); changed {
28794 *vp = v
28795 }
28796 }
28797 func (_ fastpathT) DecMapInt8UintptrV(v map[int8]uintptr, canChange bool,
28798 d *Decoder) (_ map[int8]uintptr, changed bool) {
28799 dd, esep := d.d, d.hh.hasElemSeparators()
28800
28801 containerLen := dd.ReadMapStart()
28802 if canChange && v == nil {
28803 xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
28804 v = make(map[int8]uintptr, xlen)
28805 changed = true
28806 }
28807 if containerLen == 0 {
28808 dd.ReadMapEnd()
28809 return v, changed
28810 }
28811
28812 var mk int8
28813 var mv uintptr
28814 hasLen := containerLen > 0
28815 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
28816 if esep {
28817 dd.ReadMapElemKey()
28818 }
28819 mk = int8(dd.DecodeInt(8))
28820 if esep {
28821 dd.ReadMapElemValue()
28822 }
28823 if dd.TryDecodeAsNil() {
28824 if d.h.DeleteOnNilMapValue {
28825 delete(v, mk)
28826 } else {
28827 v[mk] = 0
28828 }
28829 continue
28830 }
28831 mv = uintptr(dd.DecodeUint(uintBitsize))
28832 if v != nil {
28833 v[mk] = mv
28834 }
28835 }
28836 dd.ReadMapEnd()
28837 return v, changed
28838 }
28839
28840 func (d *Decoder) fastpathDecMapInt8IntR(f *codecFnInfo, rv reflect.Value) {
28841 if rv.Kind() == reflect.Ptr {
28842 vp := rv2i(rv).(*map[int8]int)
28843 if v, changed := fastpathTV.DecMapInt8IntV(*vp, true, d); changed {
28844 *vp = v
28845 }
28846 return
28847 }
28848 fastpathTV.DecMapInt8IntV(rv2i(rv).(map[int8]int), false, d)
28849 }
28850 func (f fastpathT) DecMapInt8IntX(vp *map[int8]int, d *Decoder) {
28851 if v, changed := f.DecMapInt8IntV(*vp, true, d); changed {
28852 *vp = v
28853 }
28854 }
28855 func (_ fastpathT) DecMapInt8IntV(v map[int8]int, canChange bool,
28856 d *Decoder) (_ map[int8]int, changed bool) {
28857 dd, esep := d.d, d.hh.hasElemSeparators()
28858
28859 containerLen := dd.ReadMapStart()
28860 if canChange && v == nil {
28861 xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
28862 v = make(map[int8]int, xlen)
28863 changed = true
28864 }
28865 if containerLen == 0 {
28866 dd.ReadMapEnd()
28867 return v, changed
28868 }
28869
28870 var mk int8
28871 var mv int
28872 hasLen := containerLen > 0
28873 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
28874 if esep {
28875 dd.ReadMapElemKey()
28876 }
28877 mk = int8(dd.DecodeInt(8))
28878 if esep {
28879 dd.ReadMapElemValue()
28880 }
28881 if dd.TryDecodeAsNil() {
28882 if d.h.DeleteOnNilMapValue {
28883 delete(v, mk)
28884 } else {
28885 v[mk] = 0
28886 }
28887 continue
28888 }
28889 mv = int(dd.DecodeInt(intBitsize))
28890 if v != nil {
28891 v[mk] = mv
28892 }
28893 }
28894 dd.ReadMapEnd()
28895 return v, changed
28896 }
28897
28898 func (d *Decoder) fastpathDecMapInt8Int8R(f *codecFnInfo, rv reflect.Value) {
28899 if rv.Kind() == reflect.Ptr {
28900 vp := rv2i(rv).(*map[int8]int8)
28901 if v, changed := fastpathTV.DecMapInt8Int8V(*vp, true, d); changed {
28902 *vp = v
28903 }
28904 return
28905 }
28906 fastpathTV.DecMapInt8Int8V(rv2i(rv).(map[int8]int8), false, d)
28907 }
28908 func (f fastpathT) DecMapInt8Int8X(vp *map[int8]int8, d *Decoder) {
28909 if v, changed := f.DecMapInt8Int8V(*vp, true, d); changed {
28910 *vp = v
28911 }
28912 }
28913 func (_ fastpathT) DecMapInt8Int8V(v map[int8]int8, canChange bool,
28914 d *Decoder) (_ map[int8]int8, changed bool) {
28915 dd, esep := d.d, d.hh.hasElemSeparators()
28916
28917 containerLen := dd.ReadMapStart()
28918 if canChange && v == nil {
28919 xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
28920 v = make(map[int8]int8, xlen)
28921 changed = true
28922 }
28923 if containerLen == 0 {
28924 dd.ReadMapEnd()
28925 return v, changed
28926 }
28927
28928 var mk int8
28929 var mv int8
28930 hasLen := containerLen > 0
28931 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
28932 if esep {
28933 dd.ReadMapElemKey()
28934 }
28935 mk = int8(dd.DecodeInt(8))
28936 if esep {
28937 dd.ReadMapElemValue()
28938 }
28939 if dd.TryDecodeAsNil() {
28940 if d.h.DeleteOnNilMapValue {
28941 delete(v, mk)
28942 } else {
28943 v[mk] = 0
28944 }
28945 continue
28946 }
28947 mv = int8(dd.DecodeInt(8))
28948 if v != nil {
28949 v[mk] = mv
28950 }
28951 }
28952 dd.ReadMapEnd()
28953 return v, changed
28954 }
28955
28956 func (d *Decoder) fastpathDecMapInt8Int16R(f *codecFnInfo, rv reflect.Value) {
28957 if rv.Kind() == reflect.Ptr {
28958 vp := rv2i(rv).(*map[int8]int16)
28959 if v, changed := fastpathTV.DecMapInt8Int16V(*vp, true, d); changed {
28960 *vp = v
28961 }
28962 return
28963 }
28964 fastpathTV.DecMapInt8Int16V(rv2i(rv).(map[int8]int16), false, d)
28965 }
28966 func (f fastpathT) DecMapInt8Int16X(vp *map[int8]int16, d *Decoder) {
28967 if v, changed := f.DecMapInt8Int16V(*vp, true, d); changed {
28968 *vp = v
28969 }
28970 }
28971 func (_ fastpathT) DecMapInt8Int16V(v map[int8]int16, canChange bool,
28972 d *Decoder) (_ map[int8]int16, changed bool) {
28973 dd, esep := d.d, d.hh.hasElemSeparators()
28974
28975 containerLen := dd.ReadMapStart()
28976 if canChange && v == nil {
28977 xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
28978 v = make(map[int8]int16, xlen)
28979 changed = true
28980 }
28981 if containerLen == 0 {
28982 dd.ReadMapEnd()
28983 return v, changed
28984 }
28985
28986 var mk int8
28987 var mv int16
28988 hasLen := containerLen > 0
28989 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
28990 if esep {
28991 dd.ReadMapElemKey()
28992 }
28993 mk = int8(dd.DecodeInt(8))
28994 if esep {
28995 dd.ReadMapElemValue()
28996 }
28997 if dd.TryDecodeAsNil() {
28998 if d.h.DeleteOnNilMapValue {
28999 delete(v, mk)
29000 } else {
29001 v[mk] = 0
29002 }
29003 continue
29004 }
29005 mv = int16(dd.DecodeInt(16))
29006 if v != nil {
29007 v[mk] = mv
29008 }
29009 }
29010 dd.ReadMapEnd()
29011 return v, changed
29012 }
29013
29014 func (d *Decoder) fastpathDecMapInt8Int32R(f *codecFnInfo, rv reflect.Value) {
29015 if rv.Kind() == reflect.Ptr {
29016 vp := rv2i(rv).(*map[int8]int32)
29017 if v, changed := fastpathTV.DecMapInt8Int32V(*vp, true, d); changed {
29018 *vp = v
29019 }
29020 return
29021 }
29022 fastpathTV.DecMapInt8Int32V(rv2i(rv).(map[int8]int32), false, d)
29023 }
29024 func (f fastpathT) DecMapInt8Int32X(vp *map[int8]int32, d *Decoder) {
29025 if v, changed := f.DecMapInt8Int32V(*vp, true, d); changed {
29026 *vp = v
29027 }
29028 }
29029 func (_ fastpathT) DecMapInt8Int32V(v map[int8]int32, canChange bool,
29030 d *Decoder) (_ map[int8]int32, changed bool) {
29031 dd, esep := d.d, d.hh.hasElemSeparators()
29032
29033 containerLen := dd.ReadMapStart()
29034 if canChange && v == nil {
29035 xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
29036 v = make(map[int8]int32, xlen)
29037 changed = true
29038 }
29039 if containerLen == 0 {
29040 dd.ReadMapEnd()
29041 return v, changed
29042 }
29043
29044 var mk int8
29045 var mv int32
29046 hasLen := containerLen > 0
29047 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
29048 if esep {
29049 dd.ReadMapElemKey()
29050 }
29051 mk = int8(dd.DecodeInt(8))
29052 if esep {
29053 dd.ReadMapElemValue()
29054 }
29055 if dd.TryDecodeAsNil() {
29056 if d.h.DeleteOnNilMapValue {
29057 delete(v, mk)
29058 } else {
29059 v[mk] = 0
29060 }
29061 continue
29062 }
29063 mv = int32(dd.DecodeInt(32))
29064 if v != nil {
29065 v[mk] = mv
29066 }
29067 }
29068 dd.ReadMapEnd()
29069 return v, changed
29070 }
29071
29072 func (d *Decoder) fastpathDecMapInt8Int64R(f *codecFnInfo, rv reflect.Value) {
29073 if rv.Kind() == reflect.Ptr {
29074 vp := rv2i(rv).(*map[int8]int64)
29075 if v, changed := fastpathTV.DecMapInt8Int64V(*vp, true, d); changed {
29076 *vp = v
29077 }
29078 return
29079 }
29080 fastpathTV.DecMapInt8Int64V(rv2i(rv).(map[int8]int64), false, d)
29081 }
29082 func (f fastpathT) DecMapInt8Int64X(vp *map[int8]int64, d *Decoder) {
29083 if v, changed := f.DecMapInt8Int64V(*vp, true, d); changed {
29084 *vp = v
29085 }
29086 }
29087 func (_ fastpathT) DecMapInt8Int64V(v map[int8]int64, canChange bool,
29088 d *Decoder) (_ map[int8]int64, changed bool) {
29089 dd, esep := d.d, d.hh.hasElemSeparators()
29090
29091 containerLen := dd.ReadMapStart()
29092 if canChange && v == nil {
29093 xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
29094 v = make(map[int8]int64, xlen)
29095 changed = true
29096 }
29097 if containerLen == 0 {
29098 dd.ReadMapEnd()
29099 return v, changed
29100 }
29101
29102 var mk int8
29103 var mv int64
29104 hasLen := containerLen > 0
29105 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
29106 if esep {
29107 dd.ReadMapElemKey()
29108 }
29109 mk = int8(dd.DecodeInt(8))
29110 if esep {
29111 dd.ReadMapElemValue()
29112 }
29113 if dd.TryDecodeAsNil() {
29114 if d.h.DeleteOnNilMapValue {
29115 delete(v, mk)
29116 } else {
29117 v[mk] = 0
29118 }
29119 continue
29120 }
29121 mv = dd.DecodeInt(64)
29122 if v != nil {
29123 v[mk] = mv
29124 }
29125 }
29126 dd.ReadMapEnd()
29127 return v, changed
29128 }
29129
29130 func (d *Decoder) fastpathDecMapInt8Float32R(f *codecFnInfo, rv reflect.Value) {
29131 if rv.Kind() == reflect.Ptr {
29132 vp := rv2i(rv).(*map[int8]float32)
29133 if v, changed := fastpathTV.DecMapInt8Float32V(*vp, true, d); changed {
29134 *vp = v
29135 }
29136 return
29137 }
29138 fastpathTV.DecMapInt8Float32V(rv2i(rv).(map[int8]float32), false, d)
29139 }
29140 func (f fastpathT) DecMapInt8Float32X(vp *map[int8]float32, d *Decoder) {
29141 if v, changed := f.DecMapInt8Float32V(*vp, true, d); changed {
29142 *vp = v
29143 }
29144 }
29145 func (_ fastpathT) DecMapInt8Float32V(v map[int8]float32, canChange bool,
29146 d *Decoder) (_ map[int8]float32, changed bool) {
29147 dd, esep := d.d, d.hh.hasElemSeparators()
29148
29149 containerLen := dd.ReadMapStart()
29150 if canChange && v == nil {
29151 xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
29152 v = make(map[int8]float32, xlen)
29153 changed = true
29154 }
29155 if containerLen == 0 {
29156 dd.ReadMapEnd()
29157 return v, changed
29158 }
29159
29160 var mk int8
29161 var mv float32
29162 hasLen := containerLen > 0
29163 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
29164 if esep {
29165 dd.ReadMapElemKey()
29166 }
29167 mk = int8(dd.DecodeInt(8))
29168 if esep {
29169 dd.ReadMapElemValue()
29170 }
29171 if dd.TryDecodeAsNil() {
29172 if d.h.DeleteOnNilMapValue {
29173 delete(v, mk)
29174 } else {
29175 v[mk] = 0
29176 }
29177 continue
29178 }
29179 mv = float32(dd.DecodeFloat(true))
29180 if v != nil {
29181 v[mk] = mv
29182 }
29183 }
29184 dd.ReadMapEnd()
29185 return v, changed
29186 }
29187
29188 func (d *Decoder) fastpathDecMapInt8Float64R(f *codecFnInfo, rv reflect.Value) {
29189 if rv.Kind() == reflect.Ptr {
29190 vp := rv2i(rv).(*map[int8]float64)
29191 if v, changed := fastpathTV.DecMapInt8Float64V(*vp, true, d); changed {
29192 *vp = v
29193 }
29194 return
29195 }
29196 fastpathTV.DecMapInt8Float64V(rv2i(rv).(map[int8]float64), false, d)
29197 }
29198 func (f fastpathT) DecMapInt8Float64X(vp *map[int8]float64, d *Decoder) {
29199 if v, changed := f.DecMapInt8Float64V(*vp, true, d); changed {
29200 *vp = v
29201 }
29202 }
29203 func (_ fastpathT) DecMapInt8Float64V(v map[int8]float64, canChange bool,
29204 d *Decoder) (_ map[int8]float64, changed bool) {
29205 dd, esep := d.d, d.hh.hasElemSeparators()
29206
29207 containerLen := dd.ReadMapStart()
29208 if canChange && v == nil {
29209 xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
29210 v = make(map[int8]float64, xlen)
29211 changed = true
29212 }
29213 if containerLen == 0 {
29214 dd.ReadMapEnd()
29215 return v, changed
29216 }
29217
29218 var mk int8
29219 var mv float64
29220 hasLen := containerLen > 0
29221 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
29222 if esep {
29223 dd.ReadMapElemKey()
29224 }
29225 mk = int8(dd.DecodeInt(8))
29226 if esep {
29227 dd.ReadMapElemValue()
29228 }
29229 if dd.TryDecodeAsNil() {
29230 if d.h.DeleteOnNilMapValue {
29231 delete(v, mk)
29232 } else {
29233 v[mk] = 0
29234 }
29235 continue
29236 }
29237 mv = dd.DecodeFloat(false)
29238 if v != nil {
29239 v[mk] = mv
29240 }
29241 }
29242 dd.ReadMapEnd()
29243 return v, changed
29244 }
29245
29246 func (d *Decoder) fastpathDecMapInt8BoolR(f *codecFnInfo, rv reflect.Value) {
29247 if rv.Kind() == reflect.Ptr {
29248 vp := rv2i(rv).(*map[int8]bool)
29249 if v, changed := fastpathTV.DecMapInt8BoolV(*vp, true, d); changed {
29250 *vp = v
29251 }
29252 return
29253 }
29254 fastpathTV.DecMapInt8BoolV(rv2i(rv).(map[int8]bool), false, d)
29255 }
29256 func (f fastpathT) DecMapInt8BoolX(vp *map[int8]bool, d *Decoder) {
29257 if v, changed := f.DecMapInt8BoolV(*vp, true, d); changed {
29258 *vp = v
29259 }
29260 }
29261 func (_ fastpathT) DecMapInt8BoolV(v map[int8]bool, canChange bool,
29262 d *Decoder) (_ map[int8]bool, changed bool) {
29263 dd, esep := d.d, d.hh.hasElemSeparators()
29264
29265 containerLen := dd.ReadMapStart()
29266 if canChange && v == nil {
29267 xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
29268 v = make(map[int8]bool, xlen)
29269 changed = true
29270 }
29271 if containerLen == 0 {
29272 dd.ReadMapEnd()
29273 return v, changed
29274 }
29275
29276 var mk int8
29277 var mv bool
29278 hasLen := containerLen > 0
29279 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
29280 if esep {
29281 dd.ReadMapElemKey()
29282 }
29283 mk = int8(dd.DecodeInt(8))
29284 if esep {
29285 dd.ReadMapElemValue()
29286 }
29287 if dd.TryDecodeAsNil() {
29288 if d.h.DeleteOnNilMapValue {
29289 delete(v, mk)
29290 } else {
29291 v[mk] = false
29292 }
29293 continue
29294 }
29295 mv = dd.DecodeBool()
29296 if v != nil {
29297 v[mk] = mv
29298 }
29299 }
29300 dd.ReadMapEnd()
29301 return v, changed
29302 }
29303
29304 func (d *Decoder) fastpathDecMapInt16IntfR(f *codecFnInfo, rv reflect.Value) {
29305 if rv.Kind() == reflect.Ptr {
29306 vp := rv2i(rv).(*map[int16]interface{})
29307 if v, changed := fastpathTV.DecMapInt16IntfV(*vp, true, d); changed {
29308 *vp = v
29309 }
29310 return
29311 }
29312 fastpathTV.DecMapInt16IntfV(rv2i(rv).(map[int16]interface{}), false, d)
29313 }
29314 func (f fastpathT) DecMapInt16IntfX(vp *map[int16]interface{}, d *Decoder) {
29315 if v, changed := f.DecMapInt16IntfV(*vp, true, d); changed {
29316 *vp = v
29317 }
29318 }
29319 func (_ fastpathT) DecMapInt16IntfV(v map[int16]interface{}, canChange bool,
29320 d *Decoder) (_ map[int16]interface{}, changed bool) {
29321 dd, esep := d.d, d.hh.hasElemSeparators()
29322
29323 containerLen := dd.ReadMapStart()
29324 if canChange && v == nil {
29325 xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
29326 v = make(map[int16]interface{}, xlen)
29327 changed = true
29328 }
29329 if containerLen == 0 {
29330 dd.ReadMapEnd()
29331 return v, changed
29332 }
29333 mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
29334 var mk int16
29335 var mv interface{}
29336 hasLen := containerLen > 0
29337 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
29338 if esep {
29339 dd.ReadMapElemKey()
29340 }
29341 mk = int16(dd.DecodeInt(16))
29342 if esep {
29343 dd.ReadMapElemValue()
29344 }
29345 if dd.TryDecodeAsNil() {
29346 if d.h.DeleteOnNilMapValue {
29347 delete(v, mk)
29348 } else {
29349 v[mk] = nil
29350 }
29351 continue
29352 }
29353 if mapGet {
29354 mv = v[mk]
29355 } else {
29356 mv = nil
29357 }
29358 d.decode(&mv)
29359 if v != nil {
29360 v[mk] = mv
29361 }
29362 }
29363 dd.ReadMapEnd()
29364 return v, changed
29365 }
29366
29367 func (d *Decoder) fastpathDecMapInt16StringR(f *codecFnInfo, rv reflect.Value) {
29368 if rv.Kind() == reflect.Ptr {
29369 vp := rv2i(rv).(*map[int16]string)
29370 if v, changed := fastpathTV.DecMapInt16StringV(*vp, true, d); changed {
29371 *vp = v
29372 }
29373 return
29374 }
29375 fastpathTV.DecMapInt16StringV(rv2i(rv).(map[int16]string), false, d)
29376 }
29377 func (f fastpathT) DecMapInt16StringX(vp *map[int16]string, d *Decoder) {
29378 if v, changed := f.DecMapInt16StringV(*vp, true, d); changed {
29379 *vp = v
29380 }
29381 }
29382 func (_ fastpathT) DecMapInt16StringV(v map[int16]string, canChange bool,
29383 d *Decoder) (_ map[int16]string, changed bool) {
29384 dd, esep := d.d, d.hh.hasElemSeparators()
29385
29386 containerLen := dd.ReadMapStart()
29387 if canChange && v == nil {
29388 xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
29389 v = make(map[int16]string, xlen)
29390 changed = true
29391 }
29392 if containerLen == 0 {
29393 dd.ReadMapEnd()
29394 return v, changed
29395 }
29396
29397 var mk int16
29398 var mv string
29399 hasLen := containerLen > 0
29400 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
29401 if esep {
29402 dd.ReadMapElemKey()
29403 }
29404 mk = int16(dd.DecodeInt(16))
29405 if esep {
29406 dd.ReadMapElemValue()
29407 }
29408 if dd.TryDecodeAsNil() {
29409 if d.h.DeleteOnNilMapValue {
29410 delete(v, mk)
29411 } else {
29412 v[mk] = ""
29413 }
29414 continue
29415 }
29416 mv = dd.DecodeString()
29417 if v != nil {
29418 v[mk] = mv
29419 }
29420 }
29421 dd.ReadMapEnd()
29422 return v, changed
29423 }
29424
29425 func (d *Decoder) fastpathDecMapInt16UintR(f *codecFnInfo, rv reflect.Value) {
29426 if rv.Kind() == reflect.Ptr {
29427 vp := rv2i(rv).(*map[int16]uint)
29428 if v, changed := fastpathTV.DecMapInt16UintV(*vp, true, d); changed {
29429 *vp = v
29430 }
29431 return
29432 }
29433 fastpathTV.DecMapInt16UintV(rv2i(rv).(map[int16]uint), false, d)
29434 }
29435 func (f fastpathT) DecMapInt16UintX(vp *map[int16]uint, d *Decoder) {
29436 if v, changed := f.DecMapInt16UintV(*vp, true, d); changed {
29437 *vp = v
29438 }
29439 }
29440 func (_ fastpathT) DecMapInt16UintV(v map[int16]uint, canChange bool,
29441 d *Decoder) (_ map[int16]uint, changed bool) {
29442 dd, esep := d.d, d.hh.hasElemSeparators()
29443
29444 containerLen := dd.ReadMapStart()
29445 if canChange && v == nil {
29446 xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
29447 v = make(map[int16]uint, xlen)
29448 changed = true
29449 }
29450 if containerLen == 0 {
29451 dd.ReadMapEnd()
29452 return v, changed
29453 }
29454
29455 var mk int16
29456 var mv uint
29457 hasLen := containerLen > 0
29458 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
29459 if esep {
29460 dd.ReadMapElemKey()
29461 }
29462 mk = int16(dd.DecodeInt(16))
29463 if esep {
29464 dd.ReadMapElemValue()
29465 }
29466 if dd.TryDecodeAsNil() {
29467 if d.h.DeleteOnNilMapValue {
29468 delete(v, mk)
29469 } else {
29470 v[mk] = 0
29471 }
29472 continue
29473 }
29474 mv = uint(dd.DecodeUint(uintBitsize))
29475 if v != nil {
29476 v[mk] = mv
29477 }
29478 }
29479 dd.ReadMapEnd()
29480 return v, changed
29481 }
29482
29483 func (d *Decoder) fastpathDecMapInt16Uint8R(f *codecFnInfo, rv reflect.Value) {
29484 if rv.Kind() == reflect.Ptr {
29485 vp := rv2i(rv).(*map[int16]uint8)
29486 if v, changed := fastpathTV.DecMapInt16Uint8V(*vp, true, d); changed {
29487 *vp = v
29488 }
29489 return
29490 }
29491 fastpathTV.DecMapInt16Uint8V(rv2i(rv).(map[int16]uint8), false, d)
29492 }
29493 func (f fastpathT) DecMapInt16Uint8X(vp *map[int16]uint8, d *Decoder) {
29494 if v, changed := f.DecMapInt16Uint8V(*vp, true, d); changed {
29495 *vp = v
29496 }
29497 }
29498 func (_ fastpathT) DecMapInt16Uint8V(v map[int16]uint8, canChange bool,
29499 d *Decoder) (_ map[int16]uint8, changed bool) {
29500 dd, esep := d.d, d.hh.hasElemSeparators()
29501
29502 containerLen := dd.ReadMapStart()
29503 if canChange && v == nil {
29504 xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
29505 v = make(map[int16]uint8, xlen)
29506 changed = true
29507 }
29508 if containerLen == 0 {
29509 dd.ReadMapEnd()
29510 return v, changed
29511 }
29512
29513 var mk int16
29514 var mv uint8
29515 hasLen := containerLen > 0
29516 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
29517 if esep {
29518 dd.ReadMapElemKey()
29519 }
29520 mk = int16(dd.DecodeInt(16))
29521 if esep {
29522 dd.ReadMapElemValue()
29523 }
29524 if dd.TryDecodeAsNil() {
29525 if d.h.DeleteOnNilMapValue {
29526 delete(v, mk)
29527 } else {
29528 v[mk] = 0
29529 }
29530 continue
29531 }
29532 mv = uint8(dd.DecodeUint(8))
29533 if v != nil {
29534 v[mk] = mv
29535 }
29536 }
29537 dd.ReadMapEnd()
29538 return v, changed
29539 }
29540
29541 func (d *Decoder) fastpathDecMapInt16Uint16R(f *codecFnInfo, rv reflect.Value) {
29542 if rv.Kind() == reflect.Ptr {
29543 vp := rv2i(rv).(*map[int16]uint16)
29544 if v, changed := fastpathTV.DecMapInt16Uint16V(*vp, true, d); changed {
29545 *vp = v
29546 }
29547 return
29548 }
29549 fastpathTV.DecMapInt16Uint16V(rv2i(rv).(map[int16]uint16), false, d)
29550 }
29551 func (f fastpathT) DecMapInt16Uint16X(vp *map[int16]uint16, d *Decoder) {
29552 if v, changed := f.DecMapInt16Uint16V(*vp, true, d); changed {
29553 *vp = v
29554 }
29555 }
29556 func (_ fastpathT) DecMapInt16Uint16V(v map[int16]uint16, canChange bool,
29557 d *Decoder) (_ map[int16]uint16, changed bool) {
29558 dd, esep := d.d, d.hh.hasElemSeparators()
29559
29560 containerLen := dd.ReadMapStart()
29561 if canChange && v == nil {
29562 xlen := decInferLen(containerLen, d.h.MaxInitLen, 4)
29563 v = make(map[int16]uint16, xlen)
29564 changed = true
29565 }
29566 if containerLen == 0 {
29567 dd.ReadMapEnd()
29568 return v, changed
29569 }
29570
29571 var mk int16
29572 var mv uint16
29573 hasLen := containerLen > 0
29574 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
29575 if esep {
29576 dd.ReadMapElemKey()
29577 }
29578 mk = int16(dd.DecodeInt(16))
29579 if esep {
29580 dd.ReadMapElemValue()
29581 }
29582 if dd.TryDecodeAsNil() {
29583 if d.h.DeleteOnNilMapValue {
29584 delete(v, mk)
29585 } else {
29586 v[mk] = 0
29587 }
29588 continue
29589 }
29590 mv = uint16(dd.DecodeUint(16))
29591 if v != nil {
29592 v[mk] = mv
29593 }
29594 }
29595 dd.ReadMapEnd()
29596 return v, changed
29597 }
29598
29599 func (d *Decoder) fastpathDecMapInt16Uint32R(f *codecFnInfo, rv reflect.Value) {
29600 if rv.Kind() == reflect.Ptr {
29601 vp := rv2i(rv).(*map[int16]uint32)
29602 if v, changed := fastpathTV.DecMapInt16Uint32V(*vp, true, d); changed {
29603 *vp = v
29604 }
29605 return
29606 }
29607 fastpathTV.DecMapInt16Uint32V(rv2i(rv).(map[int16]uint32), false, d)
29608 }
29609 func (f fastpathT) DecMapInt16Uint32X(vp *map[int16]uint32, d *Decoder) {
29610 if v, changed := f.DecMapInt16Uint32V(*vp, true, d); changed {
29611 *vp = v
29612 }
29613 }
29614 func (_ fastpathT) DecMapInt16Uint32V(v map[int16]uint32, canChange bool,
29615 d *Decoder) (_ map[int16]uint32, changed bool) {
29616 dd, esep := d.d, d.hh.hasElemSeparators()
29617
29618 containerLen := dd.ReadMapStart()
29619 if canChange && v == nil {
29620 xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
29621 v = make(map[int16]uint32, xlen)
29622 changed = true
29623 }
29624 if containerLen == 0 {
29625 dd.ReadMapEnd()
29626 return v, changed
29627 }
29628
29629 var mk int16
29630 var mv uint32
29631 hasLen := containerLen > 0
29632 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
29633 if esep {
29634 dd.ReadMapElemKey()
29635 }
29636 mk = int16(dd.DecodeInt(16))
29637 if esep {
29638 dd.ReadMapElemValue()
29639 }
29640 if dd.TryDecodeAsNil() {
29641 if d.h.DeleteOnNilMapValue {
29642 delete(v, mk)
29643 } else {
29644 v[mk] = 0
29645 }
29646 continue
29647 }
29648 mv = uint32(dd.DecodeUint(32))
29649 if v != nil {
29650 v[mk] = mv
29651 }
29652 }
29653 dd.ReadMapEnd()
29654 return v, changed
29655 }
29656
29657 func (d *Decoder) fastpathDecMapInt16Uint64R(f *codecFnInfo, rv reflect.Value) {
29658 if rv.Kind() == reflect.Ptr {
29659 vp := rv2i(rv).(*map[int16]uint64)
29660 if v, changed := fastpathTV.DecMapInt16Uint64V(*vp, true, d); changed {
29661 *vp = v
29662 }
29663 return
29664 }
29665 fastpathTV.DecMapInt16Uint64V(rv2i(rv).(map[int16]uint64), false, d)
29666 }
29667 func (f fastpathT) DecMapInt16Uint64X(vp *map[int16]uint64, d *Decoder) {
29668 if v, changed := f.DecMapInt16Uint64V(*vp, true, d); changed {
29669 *vp = v
29670 }
29671 }
29672 func (_ fastpathT) DecMapInt16Uint64V(v map[int16]uint64, canChange bool,
29673 d *Decoder) (_ map[int16]uint64, changed bool) {
29674 dd, esep := d.d, d.hh.hasElemSeparators()
29675
29676 containerLen := dd.ReadMapStart()
29677 if canChange && v == nil {
29678 xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
29679 v = make(map[int16]uint64, xlen)
29680 changed = true
29681 }
29682 if containerLen == 0 {
29683 dd.ReadMapEnd()
29684 return v, changed
29685 }
29686
29687 var mk int16
29688 var mv uint64
29689 hasLen := containerLen > 0
29690 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
29691 if esep {
29692 dd.ReadMapElemKey()
29693 }
29694 mk = int16(dd.DecodeInt(16))
29695 if esep {
29696 dd.ReadMapElemValue()
29697 }
29698 if dd.TryDecodeAsNil() {
29699 if d.h.DeleteOnNilMapValue {
29700 delete(v, mk)
29701 } else {
29702 v[mk] = 0
29703 }
29704 continue
29705 }
29706 mv = dd.DecodeUint(64)
29707 if v != nil {
29708 v[mk] = mv
29709 }
29710 }
29711 dd.ReadMapEnd()
29712 return v, changed
29713 }
29714
29715 func (d *Decoder) fastpathDecMapInt16UintptrR(f *codecFnInfo, rv reflect.Value) {
29716 if rv.Kind() == reflect.Ptr {
29717 vp := rv2i(rv).(*map[int16]uintptr)
29718 if v, changed := fastpathTV.DecMapInt16UintptrV(*vp, true, d); changed {
29719 *vp = v
29720 }
29721 return
29722 }
29723 fastpathTV.DecMapInt16UintptrV(rv2i(rv).(map[int16]uintptr), false, d)
29724 }
29725 func (f fastpathT) DecMapInt16UintptrX(vp *map[int16]uintptr, d *Decoder) {
29726 if v, changed := f.DecMapInt16UintptrV(*vp, true, d); changed {
29727 *vp = v
29728 }
29729 }
29730 func (_ fastpathT) DecMapInt16UintptrV(v map[int16]uintptr, canChange bool,
29731 d *Decoder) (_ map[int16]uintptr, changed bool) {
29732 dd, esep := d.d, d.hh.hasElemSeparators()
29733
29734 containerLen := dd.ReadMapStart()
29735 if canChange && v == nil {
29736 xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
29737 v = make(map[int16]uintptr, xlen)
29738 changed = true
29739 }
29740 if containerLen == 0 {
29741 dd.ReadMapEnd()
29742 return v, changed
29743 }
29744
29745 var mk int16
29746 var mv uintptr
29747 hasLen := containerLen > 0
29748 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
29749 if esep {
29750 dd.ReadMapElemKey()
29751 }
29752 mk = int16(dd.DecodeInt(16))
29753 if esep {
29754 dd.ReadMapElemValue()
29755 }
29756 if dd.TryDecodeAsNil() {
29757 if d.h.DeleteOnNilMapValue {
29758 delete(v, mk)
29759 } else {
29760 v[mk] = 0
29761 }
29762 continue
29763 }
29764 mv = uintptr(dd.DecodeUint(uintBitsize))
29765 if v != nil {
29766 v[mk] = mv
29767 }
29768 }
29769 dd.ReadMapEnd()
29770 return v, changed
29771 }
29772
29773 func (d *Decoder) fastpathDecMapInt16IntR(f *codecFnInfo, rv reflect.Value) {
29774 if rv.Kind() == reflect.Ptr {
29775 vp := rv2i(rv).(*map[int16]int)
29776 if v, changed := fastpathTV.DecMapInt16IntV(*vp, true, d); changed {
29777 *vp = v
29778 }
29779 return
29780 }
29781 fastpathTV.DecMapInt16IntV(rv2i(rv).(map[int16]int), false, d)
29782 }
29783 func (f fastpathT) DecMapInt16IntX(vp *map[int16]int, d *Decoder) {
29784 if v, changed := f.DecMapInt16IntV(*vp, true, d); changed {
29785 *vp = v
29786 }
29787 }
29788 func (_ fastpathT) DecMapInt16IntV(v map[int16]int, canChange bool,
29789 d *Decoder) (_ map[int16]int, changed bool) {
29790 dd, esep := d.d, d.hh.hasElemSeparators()
29791
29792 containerLen := dd.ReadMapStart()
29793 if canChange && v == nil {
29794 xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
29795 v = make(map[int16]int, xlen)
29796 changed = true
29797 }
29798 if containerLen == 0 {
29799 dd.ReadMapEnd()
29800 return v, changed
29801 }
29802
29803 var mk int16
29804 var mv int
29805 hasLen := containerLen > 0
29806 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
29807 if esep {
29808 dd.ReadMapElemKey()
29809 }
29810 mk = int16(dd.DecodeInt(16))
29811 if esep {
29812 dd.ReadMapElemValue()
29813 }
29814 if dd.TryDecodeAsNil() {
29815 if d.h.DeleteOnNilMapValue {
29816 delete(v, mk)
29817 } else {
29818 v[mk] = 0
29819 }
29820 continue
29821 }
29822 mv = int(dd.DecodeInt(intBitsize))
29823 if v != nil {
29824 v[mk] = mv
29825 }
29826 }
29827 dd.ReadMapEnd()
29828 return v, changed
29829 }
29830
29831 func (d *Decoder) fastpathDecMapInt16Int8R(f *codecFnInfo, rv reflect.Value) {
29832 if rv.Kind() == reflect.Ptr {
29833 vp := rv2i(rv).(*map[int16]int8)
29834 if v, changed := fastpathTV.DecMapInt16Int8V(*vp, true, d); changed {
29835 *vp = v
29836 }
29837 return
29838 }
29839 fastpathTV.DecMapInt16Int8V(rv2i(rv).(map[int16]int8), false, d)
29840 }
29841 func (f fastpathT) DecMapInt16Int8X(vp *map[int16]int8, d *Decoder) {
29842 if v, changed := f.DecMapInt16Int8V(*vp, true, d); changed {
29843 *vp = v
29844 }
29845 }
29846 func (_ fastpathT) DecMapInt16Int8V(v map[int16]int8, canChange bool,
29847 d *Decoder) (_ map[int16]int8, changed bool) {
29848 dd, esep := d.d, d.hh.hasElemSeparators()
29849
29850 containerLen := dd.ReadMapStart()
29851 if canChange && v == nil {
29852 xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
29853 v = make(map[int16]int8, xlen)
29854 changed = true
29855 }
29856 if containerLen == 0 {
29857 dd.ReadMapEnd()
29858 return v, changed
29859 }
29860
29861 var mk int16
29862 var mv int8
29863 hasLen := containerLen > 0
29864 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
29865 if esep {
29866 dd.ReadMapElemKey()
29867 }
29868 mk = int16(dd.DecodeInt(16))
29869 if esep {
29870 dd.ReadMapElemValue()
29871 }
29872 if dd.TryDecodeAsNil() {
29873 if d.h.DeleteOnNilMapValue {
29874 delete(v, mk)
29875 } else {
29876 v[mk] = 0
29877 }
29878 continue
29879 }
29880 mv = int8(dd.DecodeInt(8))
29881 if v != nil {
29882 v[mk] = mv
29883 }
29884 }
29885 dd.ReadMapEnd()
29886 return v, changed
29887 }
29888
29889 func (d *Decoder) fastpathDecMapInt16Int16R(f *codecFnInfo, rv reflect.Value) {
29890 if rv.Kind() == reflect.Ptr {
29891 vp := rv2i(rv).(*map[int16]int16)
29892 if v, changed := fastpathTV.DecMapInt16Int16V(*vp, true, d); changed {
29893 *vp = v
29894 }
29895 return
29896 }
29897 fastpathTV.DecMapInt16Int16V(rv2i(rv).(map[int16]int16), false, d)
29898 }
29899 func (f fastpathT) DecMapInt16Int16X(vp *map[int16]int16, d *Decoder) {
29900 if v, changed := f.DecMapInt16Int16V(*vp, true, d); changed {
29901 *vp = v
29902 }
29903 }
29904 func (_ fastpathT) DecMapInt16Int16V(v map[int16]int16, canChange bool,
29905 d *Decoder) (_ map[int16]int16, changed bool) {
29906 dd, esep := d.d, d.hh.hasElemSeparators()
29907
29908 containerLen := dd.ReadMapStart()
29909 if canChange && v == nil {
29910 xlen := decInferLen(containerLen, d.h.MaxInitLen, 4)
29911 v = make(map[int16]int16, xlen)
29912 changed = true
29913 }
29914 if containerLen == 0 {
29915 dd.ReadMapEnd()
29916 return v, changed
29917 }
29918
29919 var mk int16
29920 var mv int16
29921 hasLen := containerLen > 0
29922 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
29923 if esep {
29924 dd.ReadMapElemKey()
29925 }
29926 mk = int16(dd.DecodeInt(16))
29927 if esep {
29928 dd.ReadMapElemValue()
29929 }
29930 if dd.TryDecodeAsNil() {
29931 if d.h.DeleteOnNilMapValue {
29932 delete(v, mk)
29933 } else {
29934 v[mk] = 0
29935 }
29936 continue
29937 }
29938 mv = int16(dd.DecodeInt(16))
29939 if v != nil {
29940 v[mk] = mv
29941 }
29942 }
29943 dd.ReadMapEnd()
29944 return v, changed
29945 }
29946
29947 func (d *Decoder) fastpathDecMapInt16Int32R(f *codecFnInfo, rv reflect.Value) {
29948 if rv.Kind() == reflect.Ptr {
29949 vp := rv2i(rv).(*map[int16]int32)
29950 if v, changed := fastpathTV.DecMapInt16Int32V(*vp, true, d); changed {
29951 *vp = v
29952 }
29953 return
29954 }
29955 fastpathTV.DecMapInt16Int32V(rv2i(rv).(map[int16]int32), false, d)
29956 }
29957 func (f fastpathT) DecMapInt16Int32X(vp *map[int16]int32, d *Decoder) {
29958 if v, changed := f.DecMapInt16Int32V(*vp, true, d); changed {
29959 *vp = v
29960 }
29961 }
29962 func (_ fastpathT) DecMapInt16Int32V(v map[int16]int32, canChange bool,
29963 d *Decoder) (_ map[int16]int32, changed bool) {
29964 dd, esep := d.d, d.hh.hasElemSeparators()
29965
29966 containerLen := dd.ReadMapStart()
29967 if canChange && v == nil {
29968 xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
29969 v = make(map[int16]int32, xlen)
29970 changed = true
29971 }
29972 if containerLen == 0 {
29973 dd.ReadMapEnd()
29974 return v, changed
29975 }
29976
29977 var mk int16
29978 var mv int32
29979 hasLen := containerLen > 0
29980 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
29981 if esep {
29982 dd.ReadMapElemKey()
29983 }
29984 mk = int16(dd.DecodeInt(16))
29985 if esep {
29986 dd.ReadMapElemValue()
29987 }
29988 if dd.TryDecodeAsNil() {
29989 if d.h.DeleteOnNilMapValue {
29990 delete(v, mk)
29991 } else {
29992 v[mk] = 0
29993 }
29994 continue
29995 }
29996 mv = int32(dd.DecodeInt(32))
29997 if v != nil {
29998 v[mk] = mv
29999 }
30000 }
30001 dd.ReadMapEnd()
30002 return v, changed
30003 }
30004
30005 func (d *Decoder) fastpathDecMapInt16Int64R(f *codecFnInfo, rv reflect.Value) {
30006 if rv.Kind() == reflect.Ptr {
30007 vp := rv2i(rv).(*map[int16]int64)
30008 if v, changed := fastpathTV.DecMapInt16Int64V(*vp, true, d); changed {
30009 *vp = v
30010 }
30011 return
30012 }
30013 fastpathTV.DecMapInt16Int64V(rv2i(rv).(map[int16]int64), false, d)
30014 }
30015 func (f fastpathT) DecMapInt16Int64X(vp *map[int16]int64, d *Decoder) {
30016 if v, changed := f.DecMapInt16Int64V(*vp, true, d); changed {
30017 *vp = v
30018 }
30019 }
30020 func (_ fastpathT) DecMapInt16Int64V(v map[int16]int64, canChange bool,
30021 d *Decoder) (_ map[int16]int64, changed bool) {
30022 dd, esep := d.d, d.hh.hasElemSeparators()
30023
30024 containerLen := dd.ReadMapStart()
30025 if canChange && v == nil {
30026 xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
30027 v = make(map[int16]int64, xlen)
30028 changed = true
30029 }
30030 if containerLen == 0 {
30031 dd.ReadMapEnd()
30032 return v, changed
30033 }
30034
30035 var mk int16
30036 var mv int64
30037 hasLen := containerLen > 0
30038 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
30039 if esep {
30040 dd.ReadMapElemKey()
30041 }
30042 mk = int16(dd.DecodeInt(16))
30043 if esep {
30044 dd.ReadMapElemValue()
30045 }
30046 if dd.TryDecodeAsNil() {
30047 if d.h.DeleteOnNilMapValue {
30048 delete(v, mk)
30049 } else {
30050 v[mk] = 0
30051 }
30052 continue
30053 }
30054 mv = dd.DecodeInt(64)
30055 if v != nil {
30056 v[mk] = mv
30057 }
30058 }
30059 dd.ReadMapEnd()
30060 return v, changed
30061 }
30062
30063 func (d *Decoder) fastpathDecMapInt16Float32R(f *codecFnInfo, rv reflect.Value) {
30064 if rv.Kind() == reflect.Ptr {
30065 vp := rv2i(rv).(*map[int16]float32)
30066 if v, changed := fastpathTV.DecMapInt16Float32V(*vp, true, d); changed {
30067 *vp = v
30068 }
30069 return
30070 }
30071 fastpathTV.DecMapInt16Float32V(rv2i(rv).(map[int16]float32), false, d)
30072 }
30073 func (f fastpathT) DecMapInt16Float32X(vp *map[int16]float32, d *Decoder) {
30074 if v, changed := f.DecMapInt16Float32V(*vp, true, d); changed {
30075 *vp = v
30076 }
30077 }
30078 func (_ fastpathT) DecMapInt16Float32V(v map[int16]float32, canChange bool,
30079 d *Decoder) (_ map[int16]float32, changed bool) {
30080 dd, esep := d.d, d.hh.hasElemSeparators()
30081
30082 containerLen := dd.ReadMapStart()
30083 if canChange && v == nil {
30084 xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
30085 v = make(map[int16]float32, xlen)
30086 changed = true
30087 }
30088 if containerLen == 0 {
30089 dd.ReadMapEnd()
30090 return v, changed
30091 }
30092
30093 var mk int16
30094 var mv float32
30095 hasLen := containerLen > 0
30096 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
30097 if esep {
30098 dd.ReadMapElemKey()
30099 }
30100 mk = int16(dd.DecodeInt(16))
30101 if esep {
30102 dd.ReadMapElemValue()
30103 }
30104 if dd.TryDecodeAsNil() {
30105 if d.h.DeleteOnNilMapValue {
30106 delete(v, mk)
30107 } else {
30108 v[mk] = 0
30109 }
30110 continue
30111 }
30112 mv = float32(dd.DecodeFloat(true))
30113 if v != nil {
30114 v[mk] = mv
30115 }
30116 }
30117 dd.ReadMapEnd()
30118 return v, changed
30119 }
30120
30121 func (d *Decoder) fastpathDecMapInt16Float64R(f *codecFnInfo, rv reflect.Value) {
30122 if rv.Kind() == reflect.Ptr {
30123 vp := rv2i(rv).(*map[int16]float64)
30124 if v, changed := fastpathTV.DecMapInt16Float64V(*vp, true, d); changed {
30125 *vp = v
30126 }
30127 return
30128 }
30129 fastpathTV.DecMapInt16Float64V(rv2i(rv).(map[int16]float64), false, d)
30130 }
30131 func (f fastpathT) DecMapInt16Float64X(vp *map[int16]float64, d *Decoder) {
30132 if v, changed := f.DecMapInt16Float64V(*vp, true, d); changed {
30133 *vp = v
30134 }
30135 }
30136 func (_ fastpathT) DecMapInt16Float64V(v map[int16]float64, canChange bool,
30137 d *Decoder) (_ map[int16]float64, changed bool) {
30138 dd, esep := d.d, d.hh.hasElemSeparators()
30139
30140 containerLen := dd.ReadMapStart()
30141 if canChange && v == nil {
30142 xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
30143 v = make(map[int16]float64, xlen)
30144 changed = true
30145 }
30146 if containerLen == 0 {
30147 dd.ReadMapEnd()
30148 return v, changed
30149 }
30150
30151 var mk int16
30152 var mv float64
30153 hasLen := containerLen > 0
30154 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
30155 if esep {
30156 dd.ReadMapElemKey()
30157 }
30158 mk = int16(dd.DecodeInt(16))
30159 if esep {
30160 dd.ReadMapElemValue()
30161 }
30162 if dd.TryDecodeAsNil() {
30163 if d.h.DeleteOnNilMapValue {
30164 delete(v, mk)
30165 } else {
30166 v[mk] = 0
30167 }
30168 continue
30169 }
30170 mv = dd.DecodeFloat(false)
30171 if v != nil {
30172 v[mk] = mv
30173 }
30174 }
30175 dd.ReadMapEnd()
30176 return v, changed
30177 }
30178
30179 func (d *Decoder) fastpathDecMapInt16BoolR(f *codecFnInfo, rv reflect.Value) {
30180 if rv.Kind() == reflect.Ptr {
30181 vp := rv2i(rv).(*map[int16]bool)
30182 if v, changed := fastpathTV.DecMapInt16BoolV(*vp, true, d); changed {
30183 *vp = v
30184 }
30185 return
30186 }
30187 fastpathTV.DecMapInt16BoolV(rv2i(rv).(map[int16]bool), false, d)
30188 }
30189 func (f fastpathT) DecMapInt16BoolX(vp *map[int16]bool, d *Decoder) {
30190 if v, changed := f.DecMapInt16BoolV(*vp, true, d); changed {
30191 *vp = v
30192 }
30193 }
30194 func (_ fastpathT) DecMapInt16BoolV(v map[int16]bool, canChange bool,
30195 d *Decoder) (_ map[int16]bool, changed bool) {
30196 dd, esep := d.d, d.hh.hasElemSeparators()
30197
30198 containerLen := dd.ReadMapStart()
30199 if canChange && v == nil {
30200 xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
30201 v = make(map[int16]bool, xlen)
30202 changed = true
30203 }
30204 if containerLen == 0 {
30205 dd.ReadMapEnd()
30206 return v, changed
30207 }
30208
30209 var mk int16
30210 var mv bool
30211 hasLen := containerLen > 0
30212 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
30213 if esep {
30214 dd.ReadMapElemKey()
30215 }
30216 mk = int16(dd.DecodeInt(16))
30217 if esep {
30218 dd.ReadMapElemValue()
30219 }
30220 if dd.TryDecodeAsNil() {
30221 if d.h.DeleteOnNilMapValue {
30222 delete(v, mk)
30223 } else {
30224 v[mk] = false
30225 }
30226 continue
30227 }
30228 mv = dd.DecodeBool()
30229 if v != nil {
30230 v[mk] = mv
30231 }
30232 }
30233 dd.ReadMapEnd()
30234 return v, changed
30235 }
30236
30237 func (d *Decoder) fastpathDecMapInt32IntfR(f *codecFnInfo, rv reflect.Value) {
30238 if rv.Kind() == reflect.Ptr {
30239 vp := rv2i(rv).(*map[int32]interface{})
30240 if v, changed := fastpathTV.DecMapInt32IntfV(*vp, true, d); changed {
30241 *vp = v
30242 }
30243 return
30244 }
30245 fastpathTV.DecMapInt32IntfV(rv2i(rv).(map[int32]interface{}), false, d)
30246 }
30247 func (f fastpathT) DecMapInt32IntfX(vp *map[int32]interface{}, d *Decoder) {
30248 if v, changed := f.DecMapInt32IntfV(*vp, true, d); changed {
30249 *vp = v
30250 }
30251 }
30252 func (_ fastpathT) DecMapInt32IntfV(v map[int32]interface{}, canChange bool,
30253 d *Decoder) (_ map[int32]interface{}, changed bool) {
30254 dd, esep := d.d, d.hh.hasElemSeparators()
30255
30256 containerLen := dd.ReadMapStart()
30257 if canChange && v == nil {
30258 xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
30259 v = make(map[int32]interface{}, xlen)
30260 changed = true
30261 }
30262 if containerLen == 0 {
30263 dd.ReadMapEnd()
30264 return v, changed
30265 }
30266 mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
30267 var mk int32
30268 var mv interface{}
30269 hasLen := containerLen > 0
30270 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
30271 if esep {
30272 dd.ReadMapElemKey()
30273 }
30274 mk = int32(dd.DecodeInt(32))
30275 if esep {
30276 dd.ReadMapElemValue()
30277 }
30278 if dd.TryDecodeAsNil() {
30279 if d.h.DeleteOnNilMapValue {
30280 delete(v, mk)
30281 } else {
30282 v[mk] = nil
30283 }
30284 continue
30285 }
30286 if mapGet {
30287 mv = v[mk]
30288 } else {
30289 mv = nil
30290 }
30291 d.decode(&mv)
30292 if v != nil {
30293 v[mk] = mv
30294 }
30295 }
30296 dd.ReadMapEnd()
30297 return v, changed
30298 }
30299
30300 func (d *Decoder) fastpathDecMapInt32StringR(f *codecFnInfo, rv reflect.Value) {
30301 if rv.Kind() == reflect.Ptr {
30302 vp := rv2i(rv).(*map[int32]string)
30303 if v, changed := fastpathTV.DecMapInt32StringV(*vp, true, d); changed {
30304 *vp = v
30305 }
30306 return
30307 }
30308 fastpathTV.DecMapInt32StringV(rv2i(rv).(map[int32]string), false, d)
30309 }
30310 func (f fastpathT) DecMapInt32StringX(vp *map[int32]string, d *Decoder) {
30311 if v, changed := f.DecMapInt32StringV(*vp, true, d); changed {
30312 *vp = v
30313 }
30314 }
30315 func (_ fastpathT) DecMapInt32StringV(v map[int32]string, canChange bool,
30316 d *Decoder) (_ map[int32]string, changed bool) {
30317 dd, esep := d.d, d.hh.hasElemSeparators()
30318
30319 containerLen := dd.ReadMapStart()
30320 if canChange && v == nil {
30321 xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
30322 v = make(map[int32]string, xlen)
30323 changed = true
30324 }
30325 if containerLen == 0 {
30326 dd.ReadMapEnd()
30327 return v, changed
30328 }
30329
30330 var mk int32
30331 var mv string
30332 hasLen := containerLen > 0
30333 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
30334 if esep {
30335 dd.ReadMapElemKey()
30336 }
30337 mk = int32(dd.DecodeInt(32))
30338 if esep {
30339 dd.ReadMapElemValue()
30340 }
30341 if dd.TryDecodeAsNil() {
30342 if d.h.DeleteOnNilMapValue {
30343 delete(v, mk)
30344 } else {
30345 v[mk] = ""
30346 }
30347 continue
30348 }
30349 mv = dd.DecodeString()
30350 if v != nil {
30351 v[mk] = mv
30352 }
30353 }
30354 dd.ReadMapEnd()
30355 return v, changed
30356 }
30357
30358 func (d *Decoder) fastpathDecMapInt32UintR(f *codecFnInfo, rv reflect.Value) {
30359 if rv.Kind() == reflect.Ptr {
30360 vp := rv2i(rv).(*map[int32]uint)
30361 if v, changed := fastpathTV.DecMapInt32UintV(*vp, true, d); changed {
30362 *vp = v
30363 }
30364 return
30365 }
30366 fastpathTV.DecMapInt32UintV(rv2i(rv).(map[int32]uint), false, d)
30367 }
30368 func (f fastpathT) DecMapInt32UintX(vp *map[int32]uint, d *Decoder) {
30369 if v, changed := f.DecMapInt32UintV(*vp, true, d); changed {
30370 *vp = v
30371 }
30372 }
30373 func (_ fastpathT) DecMapInt32UintV(v map[int32]uint, canChange bool,
30374 d *Decoder) (_ map[int32]uint, changed bool) {
30375 dd, esep := d.d, d.hh.hasElemSeparators()
30376
30377 containerLen := dd.ReadMapStart()
30378 if canChange && v == nil {
30379 xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
30380 v = make(map[int32]uint, xlen)
30381 changed = true
30382 }
30383 if containerLen == 0 {
30384 dd.ReadMapEnd()
30385 return v, changed
30386 }
30387
30388 var mk int32
30389 var mv uint
30390 hasLen := containerLen > 0
30391 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
30392 if esep {
30393 dd.ReadMapElemKey()
30394 }
30395 mk = int32(dd.DecodeInt(32))
30396 if esep {
30397 dd.ReadMapElemValue()
30398 }
30399 if dd.TryDecodeAsNil() {
30400 if d.h.DeleteOnNilMapValue {
30401 delete(v, mk)
30402 } else {
30403 v[mk] = 0
30404 }
30405 continue
30406 }
30407 mv = uint(dd.DecodeUint(uintBitsize))
30408 if v != nil {
30409 v[mk] = mv
30410 }
30411 }
30412 dd.ReadMapEnd()
30413 return v, changed
30414 }
30415
30416 func (d *Decoder) fastpathDecMapInt32Uint8R(f *codecFnInfo, rv reflect.Value) {
30417 if rv.Kind() == reflect.Ptr {
30418 vp := rv2i(rv).(*map[int32]uint8)
30419 if v, changed := fastpathTV.DecMapInt32Uint8V(*vp, true, d); changed {
30420 *vp = v
30421 }
30422 return
30423 }
30424 fastpathTV.DecMapInt32Uint8V(rv2i(rv).(map[int32]uint8), false, d)
30425 }
30426 func (f fastpathT) DecMapInt32Uint8X(vp *map[int32]uint8, d *Decoder) {
30427 if v, changed := f.DecMapInt32Uint8V(*vp, true, d); changed {
30428 *vp = v
30429 }
30430 }
30431 func (_ fastpathT) DecMapInt32Uint8V(v map[int32]uint8, canChange bool,
30432 d *Decoder) (_ map[int32]uint8, changed bool) {
30433 dd, esep := d.d, d.hh.hasElemSeparators()
30434
30435 containerLen := dd.ReadMapStart()
30436 if canChange && v == nil {
30437 xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
30438 v = make(map[int32]uint8, xlen)
30439 changed = true
30440 }
30441 if containerLen == 0 {
30442 dd.ReadMapEnd()
30443 return v, changed
30444 }
30445
30446 var mk int32
30447 var mv uint8
30448 hasLen := containerLen > 0
30449 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
30450 if esep {
30451 dd.ReadMapElemKey()
30452 }
30453 mk = int32(dd.DecodeInt(32))
30454 if esep {
30455 dd.ReadMapElemValue()
30456 }
30457 if dd.TryDecodeAsNil() {
30458 if d.h.DeleteOnNilMapValue {
30459 delete(v, mk)
30460 } else {
30461 v[mk] = 0
30462 }
30463 continue
30464 }
30465 mv = uint8(dd.DecodeUint(8))
30466 if v != nil {
30467 v[mk] = mv
30468 }
30469 }
30470 dd.ReadMapEnd()
30471 return v, changed
30472 }
30473
30474 func (d *Decoder) fastpathDecMapInt32Uint16R(f *codecFnInfo, rv reflect.Value) {
30475 if rv.Kind() == reflect.Ptr {
30476 vp := rv2i(rv).(*map[int32]uint16)
30477 if v, changed := fastpathTV.DecMapInt32Uint16V(*vp, true, d); changed {
30478 *vp = v
30479 }
30480 return
30481 }
30482 fastpathTV.DecMapInt32Uint16V(rv2i(rv).(map[int32]uint16), false, d)
30483 }
30484 func (f fastpathT) DecMapInt32Uint16X(vp *map[int32]uint16, d *Decoder) {
30485 if v, changed := f.DecMapInt32Uint16V(*vp, true, d); changed {
30486 *vp = v
30487 }
30488 }
30489 func (_ fastpathT) DecMapInt32Uint16V(v map[int32]uint16, canChange bool,
30490 d *Decoder) (_ map[int32]uint16, changed bool) {
30491 dd, esep := d.d, d.hh.hasElemSeparators()
30492
30493 containerLen := dd.ReadMapStart()
30494 if canChange && v == nil {
30495 xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
30496 v = make(map[int32]uint16, xlen)
30497 changed = true
30498 }
30499 if containerLen == 0 {
30500 dd.ReadMapEnd()
30501 return v, changed
30502 }
30503
30504 var mk int32
30505 var mv uint16
30506 hasLen := containerLen > 0
30507 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
30508 if esep {
30509 dd.ReadMapElemKey()
30510 }
30511 mk = int32(dd.DecodeInt(32))
30512 if esep {
30513 dd.ReadMapElemValue()
30514 }
30515 if dd.TryDecodeAsNil() {
30516 if d.h.DeleteOnNilMapValue {
30517 delete(v, mk)
30518 } else {
30519 v[mk] = 0
30520 }
30521 continue
30522 }
30523 mv = uint16(dd.DecodeUint(16))
30524 if v != nil {
30525 v[mk] = mv
30526 }
30527 }
30528 dd.ReadMapEnd()
30529 return v, changed
30530 }
30531
30532 func (d *Decoder) fastpathDecMapInt32Uint32R(f *codecFnInfo, rv reflect.Value) {
30533 if rv.Kind() == reflect.Ptr {
30534 vp := rv2i(rv).(*map[int32]uint32)
30535 if v, changed := fastpathTV.DecMapInt32Uint32V(*vp, true, d); changed {
30536 *vp = v
30537 }
30538 return
30539 }
30540 fastpathTV.DecMapInt32Uint32V(rv2i(rv).(map[int32]uint32), false, d)
30541 }
30542 func (f fastpathT) DecMapInt32Uint32X(vp *map[int32]uint32, d *Decoder) {
30543 if v, changed := f.DecMapInt32Uint32V(*vp, true, d); changed {
30544 *vp = v
30545 }
30546 }
30547 func (_ fastpathT) DecMapInt32Uint32V(v map[int32]uint32, canChange bool,
30548 d *Decoder) (_ map[int32]uint32, changed bool) {
30549 dd, esep := d.d, d.hh.hasElemSeparators()
30550
30551 containerLen := dd.ReadMapStart()
30552 if canChange && v == nil {
30553 xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
30554 v = make(map[int32]uint32, xlen)
30555 changed = true
30556 }
30557 if containerLen == 0 {
30558 dd.ReadMapEnd()
30559 return v, changed
30560 }
30561
30562 var mk int32
30563 var mv uint32
30564 hasLen := containerLen > 0
30565 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
30566 if esep {
30567 dd.ReadMapElemKey()
30568 }
30569 mk = int32(dd.DecodeInt(32))
30570 if esep {
30571 dd.ReadMapElemValue()
30572 }
30573 if dd.TryDecodeAsNil() {
30574 if d.h.DeleteOnNilMapValue {
30575 delete(v, mk)
30576 } else {
30577 v[mk] = 0
30578 }
30579 continue
30580 }
30581 mv = uint32(dd.DecodeUint(32))
30582 if v != nil {
30583 v[mk] = mv
30584 }
30585 }
30586 dd.ReadMapEnd()
30587 return v, changed
30588 }
30589
30590 func (d *Decoder) fastpathDecMapInt32Uint64R(f *codecFnInfo, rv reflect.Value) {
30591 if rv.Kind() == reflect.Ptr {
30592 vp := rv2i(rv).(*map[int32]uint64)
30593 if v, changed := fastpathTV.DecMapInt32Uint64V(*vp, true, d); changed {
30594 *vp = v
30595 }
30596 return
30597 }
30598 fastpathTV.DecMapInt32Uint64V(rv2i(rv).(map[int32]uint64), false, d)
30599 }
30600 func (f fastpathT) DecMapInt32Uint64X(vp *map[int32]uint64, d *Decoder) {
30601 if v, changed := f.DecMapInt32Uint64V(*vp, true, d); changed {
30602 *vp = v
30603 }
30604 }
30605 func (_ fastpathT) DecMapInt32Uint64V(v map[int32]uint64, canChange bool,
30606 d *Decoder) (_ map[int32]uint64, changed bool) {
30607 dd, esep := d.d, d.hh.hasElemSeparators()
30608
30609 containerLen := dd.ReadMapStart()
30610 if canChange && v == nil {
30611 xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
30612 v = make(map[int32]uint64, xlen)
30613 changed = true
30614 }
30615 if containerLen == 0 {
30616 dd.ReadMapEnd()
30617 return v, changed
30618 }
30619
30620 var mk int32
30621 var mv uint64
30622 hasLen := containerLen > 0
30623 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
30624 if esep {
30625 dd.ReadMapElemKey()
30626 }
30627 mk = int32(dd.DecodeInt(32))
30628 if esep {
30629 dd.ReadMapElemValue()
30630 }
30631 if dd.TryDecodeAsNil() {
30632 if d.h.DeleteOnNilMapValue {
30633 delete(v, mk)
30634 } else {
30635 v[mk] = 0
30636 }
30637 continue
30638 }
30639 mv = dd.DecodeUint(64)
30640 if v != nil {
30641 v[mk] = mv
30642 }
30643 }
30644 dd.ReadMapEnd()
30645 return v, changed
30646 }
30647
30648 func (d *Decoder) fastpathDecMapInt32UintptrR(f *codecFnInfo, rv reflect.Value) {
30649 if rv.Kind() == reflect.Ptr {
30650 vp := rv2i(rv).(*map[int32]uintptr)
30651 if v, changed := fastpathTV.DecMapInt32UintptrV(*vp, true, d); changed {
30652 *vp = v
30653 }
30654 return
30655 }
30656 fastpathTV.DecMapInt32UintptrV(rv2i(rv).(map[int32]uintptr), false, d)
30657 }
30658 func (f fastpathT) DecMapInt32UintptrX(vp *map[int32]uintptr, d *Decoder) {
30659 if v, changed := f.DecMapInt32UintptrV(*vp, true, d); changed {
30660 *vp = v
30661 }
30662 }
30663 func (_ fastpathT) DecMapInt32UintptrV(v map[int32]uintptr, canChange bool,
30664 d *Decoder) (_ map[int32]uintptr, changed bool) {
30665 dd, esep := d.d, d.hh.hasElemSeparators()
30666
30667 containerLen := dd.ReadMapStart()
30668 if canChange && v == nil {
30669 xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
30670 v = make(map[int32]uintptr, xlen)
30671 changed = true
30672 }
30673 if containerLen == 0 {
30674 dd.ReadMapEnd()
30675 return v, changed
30676 }
30677
30678 var mk int32
30679 var mv uintptr
30680 hasLen := containerLen > 0
30681 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
30682 if esep {
30683 dd.ReadMapElemKey()
30684 }
30685 mk = int32(dd.DecodeInt(32))
30686 if esep {
30687 dd.ReadMapElemValue()
30688 }
30689 if dd.TryDecodeAsNil() {
30690 if d.h.DeleteOnNilMapValue {
30691 delete(v, mk)
30692 } else {
30693 v[mk] = 0
30694 }
30695 continue
30696 }
30697 mv = uintptr(dd.DecodeUint(uintBitsize))
30698 if v != nil {
30699 v[mk] = mv
30700 }
30701 }
30702 dd.ReadMapEnd()
30703 return v, changed
30704 }
30705
30706 func (d *Decoder) fastpathDecMapInt32IntR(f *codecFnInfo, rv reflect.Value) {
30707 if rv.Kind() == reflect.Ptr {
30708 vp := rv2i(rv).(*map[int32]int)
30709 if v, changed := fastpathTV.DecMapInt32IntV(*vp, true, d); changed {
30710 *vp = v
30711 }
30712 return
30713 }
30714 fastpathTV.DecMapInt32IntV(rv2i(rv).(map[int32]int), false, d)
30715 }
30716 func (f fastpathT) DecMapInt32IntX(vp *map[int32]int, d *Decoder) {
30717 if v, changed := f.DecMapInt32IntV(*vp, true, d); changed {
30718 *vp = v
30719 }
30720 }
30721 func (_ fastpathT) DecMapInt32IntV(v map[int32]int, canChange bool,
30722 d *Decoder) (_ map[int32]int, changed bool) {
30723 dd, esep := d.d, d.hh.hasElemSeparators()
30724
30725 containerLen := dd.ReadMapStart()
30726 if canChange && v == nil {
30727 xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
30728 v = make(map[int32]int, xlen)
30729 changed = true
30730 }
30731 if containerLen == 0 {
30732 dd.ReadMapEnd()
30733 return v, changed
30734 }
30735
30736 var mk int32
30737 var mv int
30738 hasLen := containerLen > 0
30739 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
30740 if esep {
30741 dd.ReadMapElemKey()
30742 }
30743 mk = int32(dd.DecodeInt(32))
30744 if esep {
30745 dd.ReadMapElemValue()
30746 }
30747 if dd.TryDecodeAsNil() {
30748 if d.h.DeleteOnNilMapValue {
30749 delete(v, mk)
30750 } else {
30751 v[mk] = 0
30752 }
30753 continue
30754 }
30755 mv = int(dd.DecodeInt(intBitsize))
30756 if v != nil {
30757 v[mk] = mv
30758 }
30759 }
30760 dd.ReadMapEnd()
30761 return v, changed
30762 }
30763
30764 func (d *Decoder) fastpathDecMapInt32Int8R(f *codecFnInfo, rv reflect.Value) {
30765 if rv.Kind() == reflect.Ptr {
30766 vp := rv2i(rv).(*map[int32]int8)
30767 if v, changed := fastpathTV.DecMapInt32Int8V(*vp, true, d); changed {
30768 *vp = v
30769 }
30770 return
30771 }
30772 fastpathTV.DecMapInt32Int8V(rv2i(rv).(map[int32]int8), false, d)
30773 }
30774 func (f fastpathT) DecMapInt32Int8X(vp *map[int32]int8, d *Decoder) {
30775 if v, changed := f.DecMapInt32Int8V(*vp, true, d); changed {
30776 *vp = v
30777 }
30778 }
30779 func (_ fastpathT) DecMapInt32Int8V(v map[int32]int8, canChange bool,
30780 d *Decoder) (_ map[int32]int8, changed bool) {
30781 dd, esep := d.d, d.hh.hasElemSeparators()
30782
30783 containerLen := dd.ReadMapStart()
30784 if canChange && v == nil {
30785 xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
30786 v = make(map[int32]int8, xlen)
30787 changed = true
30788 }
30789 if containerLen == 0 {
30790 dd.ReadMapEnd()
30791 return v, changed
30792 }
30793
30794 var mk int32
30795 var mv int8
30796 hasLen := containerLen > 0
30797 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
30798 if esep {
30799 dd.ReadMapElemKey()
30800 }
30801 mk = int32(dd.DecodeInt(32))
30802 if esep {
30803 dd.ReadMapElemValue()
30804 }
30805 if dd.TryDecodeAsNil() {
30806 if d.h.DeleteOnNilMapValue {
30807 delete(v, mk)
30808 } else {
30809 v[mk] = 0
30810 }
30811 continue
30812 }
30813 mv = int8(dd.DecodeInt(8))
30814 if v != nil {
30815 v[mk] = mv
30816 }
30817 }
30818 dd.ReadMapEnd()
30819 return v, changed
30820 }
30821
30822 func (d *Decoder) fastpathDecMapInt32Int16R(f *codecFnInfo, rv reflect.Value) {
30823 if rv.Kind() == reflect.Ptr {
30824 vp := rv2i(rv).(*map[int32]int16)
30825 if v, changed := fastpathTV.DecMapInt32Int16V(*vp, true, d); changed {
30826 *vp = v
30827 }
30828 return
30829 }
30830 fastpathTV.DecMapInt32Int16V(rv2i(rv).(map[int32]int16), false, d)
30831 }
30832 func (f fastpathT) DecMapInt32Int16X(vp *map[int32]int16, d *Decoder) {
30833 if v, changed := f.DecMapInt32Int16V(*vp, true, d); changed {
30834 *vp = v
30835 }
30836 }
30837 func (_ fastpathT) DecMapInt32Int16V(v map[int32]int16, canChange bool,
30838 d *Decoder) (_ map[int32]int16, changed bool) {
30839 dd, esep := d.d, d.hh.hasElemSeparators()
30840
30841 containerLen := dd.ReadMapStart()
30842 if canChange && v == nil {
30843 xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
30844 v = make(map[int32]int16, xlen)
30845 changed = true
30846 }
30847 if containerLen == 0 {
30848 dd.ReadMapEnd()
30849 return v, changed
30850 }
30851
30852 var mk int32
30853 var mv int16
30854 hasLen := containerLen > 0
30855 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
30856 if esep {
30857 dd.ReadMapElemKey()
30858 }
30859 mk = int32(dd.DecodeInt(32))
30860 if esep {
30861 dd.ReadMapElemValue()
30862 }
30863 if dd.TryDecodeAsNil() {
30864 if d.h.DeleteOnNilMapValue {
30865 delete(v, mk)
30866 } else {
30867 v[mk] = 0
30868 }
30869 continue
30870 }
30871 mv = int16(dd.DecodeInt(16))
30872 if v != nil {
30873 v[mk] = mv
30874 }
30875 }
30876 dd.ReadMapEnd()
30877 return v, changed
30878 }
30879
30880 func (d *Decoder) fastpathDecMapInt32Int32R(f *codecFnInfo, rv reflect.Value) {
30881 if rv.Kind() == reflect.Ptr {
30882 vp := rv2i(rv).(*map[int32]int32)
30883 if v, changed := fastpathTV.DecMapInt32Int32V(*vp, true, d); changed {
30884 *vp = v
30885 }
30886 return
30887 }
30888 fastpathTV.DecMapInt32Int32V(rv2i(rv).(map[int32]int32), false, d)
30889 }
30890 func (f fastpathT) DecMapInt32Int32X(vp *map[int32]int32, d *Decoder) {
30891 if v, changed := f.DecMapInt32Int32V(*vp, true, d); changed {
30892 *vp = v
30893 }
30894 }
30895 func (_ fastpathT) DecMapInt32Int32V(v map[int32]int32, canChange bool,
30896 d *Decoder) (_ map[int32]int32, changed bool) {
30897 dd, esep := d.d, d.hh.hasElemSeparators()
30898
30899 containerLen := dd.ReadMapStart()
30900 if canChange && v == nil {
30901 xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
30902 v = make(map[int32]int32, xlen)
30903 changed = true
30904 }
30905 if containerLen == 0 {
30906 dd.ReadMapEnd()
30907 return v, changed
30908 }
30909
30910 var mk int32
30911 var mv int32
30912 hasLen := containerLen > 0
30913 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
30914 if esep {
30915 dd.ReadMapElemKey()
30916 }
30917 mk = int32(dd.DecodeInt(32))
30918 if esep {
30919 dd.ReadMapElemValue()
30920 }
30921 if dd.TryDecodeAsNil() {
30922 if d.h.DeleteOnNilMapValue {
30923 delete(v, mk)
30924 } else {
30925 v[mk] = 0
30926 }
30927 continue
30928 }
30929 mv = int32(dd.DecodeInt(32))
30930 if v != nil {
30931 v[mk] = mv
30932 }
30933 }
30934 dd.ReadMapEnd()
30935 return v, changed
30936 }
30937
30938 func (d *Decoder) fastpathDecMapInt32Int64R(f *codecFnInfo, rv reflect.Value) {
30939 if rv.Kind() == reflect.Ptr {
30940 vp := rv2i(rv).(*map[int32]int64)
30941 if v, changed := fastpathTV.DecMapInt32Int64V(*vp, true, d); changed {
30942 *vp = v
30943 }
30944 return
30945 }
30946 fastpathTV.DecMapInt32Int64V(rv2i(rv).(map[int32]int64), false, d)
30947 }
30948 func (f fastpathT) DecMapInt32Int64X(vp *map[int32]int64, d *Decoder) {
30949 if v, changed := f.DecMapInt32Int64V(*vp, true, d); changed {
30950 *vp = v
30951 }
30952 }
30953 func (_ fastpathT) DecMapInt32Int64V(v map[int32]int64, canChange bool,
30954 d *Decoder) (_ map[int32]int64, changed bool) {
30955 dd, esep := d.d, d.hh.hasElemSeparators()
30956
30957 containerLen := dd.ReadMapStart()
30958 if canChange && v == nil {
30959 xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
30960 v = make(map[int32]int64, xlen)
30961 changed = true
30962 }
30963 if containerLen == 0 {
30964 dd.ReadMapEnd()
30965 return v, changed
30966 }
30967
30968 var mk int32
30969 var mv int64
30970 hasLen := containerLen > 0
30971 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
30972 if esep {
30973 dd.ReadMapElemKey()
30974 }
30975 mk = int32(dd.DecodeInt(32))
30976 if esep {
30977 dd.ReadMapElemValue()
30978 }
30979 if dd.TryDecodeAsNil() {
30980 if d.h.DeleteOnNilMapValue {
30981 delete(v, mk)
30982 } else {
30983 v[mk] = 0
30984 }
30985 continue
30986 }
30987 mv = dd.DecodeInt(64)
30988 if v != nil {
30989 v[mk] = mv
30990 }
30991 }
30992 dd.ReadMapEnd()
30993 return v, changed
30994 }
30995
30996 func (d *Decoder) fastpathDecMapInt32Float32R(f *codecFnInfo, rv reflect.Value) {
30997 if rv.Kind() == reflect.Ptr {
30998 vp := rv2i(rv).(*map[int32]float32)
30999 if v, changed := fastpathTV.DecMapInt32Float32V(*vp, true, d); changed {
31000 *vp = v
31001 }
31002 return
31003 }
31004 fastpathTV.DecMapInt32Float32V(rv2i(rv).(map[int32]float32), false, d)
31005 }
31006 func (f fastpathT) DecMapInt32Float32X(vp *map[int32]float32, d *Decoder) {
31007 if v, changed := f.DecMapInt32Float32V(*vp, true, d); changed {
31008 *vp = v
31009 }
31010 }
31011 func (_ fastpathT) DecMapInt32Float32V(v map[int32]float32, canChange bool,
31012 d *Decoder) (_ map[int32]float32, changed bool) {
31013 dd, esep := d.d, d.hh.hasElemSeparators()
31014
31015 containerLen := dd.ReadMapStart()
31016 if canChange && v == nil {
31017 xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
31018 v = make(map[int32]float32, xlen)
31019 changed = true
31020 }
31021 if containerLen == 0 {
31022 dd.ReadMapEnd()
31023 return v, changed
31024 }
31025
31026 var mk int32
31027 var mv float32
31028 hasLen := containerLen > 0
31029 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
31030 if esep {
31031 dd.ReadMapElemKey()
31032 }
31033 mk = int32(dd.DecodeInt(32))
31034 if esep {
31035 dd.ReadMapElemValue()
31036 }
31037 if dd.TryDecodeAsNil() {
31038 if d.h.DeleteOnNilMapValue {
31039 delete(v, mk)
31040 } else {
31041 v[mk] = 0
31042 }
31043 continue
31044 }
31045 mv = float32(dd.DecodeFloat(true))
31046 if v != nil {
31047 v[mk] = mv
31048 }
31049 }
31050 dd.ReadMapEnd()
31051 return v, changed
31052 }
31053
31054 func (d *Decoder) fastpathDecMapInt32Float64R(f *codecFnInfo, rv reflect.Value) {
31055 if rv.Kind() == reflect.Ptr {
31056 vp := rv2i(rv).(*map[int32]float64)
31057 if v, changed := fastpathTV.DecMapInt32Float64V(*vp, true, d); changed {
31058 *vp = v
31059 }
31060 return
31061 }
31062 fastpathTV.DecMapInt32Float64V(rv2i(rv).(map[int32]float64), false, d)
31063 }
31064 func (f fastpathT) DecMapInt32Float64X(vp *map[int32]float64, d *Decoder) {
31065 if v, changed := f.DecMapInt32Float64V(*vp, true, d); changed {
31066 *vp = v
31067 }
31068 }
31069 func (_ fastpathT) DecMapInt32Float64V(v map[int32]float64, canChange bool,
31070 d *Decoder) (_ map[int32]float64, changed bool) {
31071 dd, esep := d.d, d.hh.hasElemSeparators()
31072
31073 containerLen := dd.ReadMapStart()
31074 if canChange && v == nil {
31075 xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
31076 v = make(map[int32]float64, xlen)
31077 changed = true
31078 }
31079 if containerLen == 0 {
31080 dd.ReadMapEnd()
31081 return v, changed
31082 }
31083
31084 var mk int32
31085 var mv float64
31086 hasLen := containerLen > 0
31087 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
31088 if esep {
31089 dd.ReadMapElemKey()
31090 }
31091 mk = int32(dd.DecodeInt(32))
31092 if esep {
31093 dd.ReadMapElemValue()
31094 }
31095 if dd.TryDecodeAsNil() {
31096 if d.h.DeleteOnNilMapValue {
31097 delete(v, mk)
31098 } else {
31099 v[mk] = 0
31100 }
31101 continue
31102 }
31103 mv = dd.DecodeFloat(false)
31104 if v != nil {
31105 v[mk] = mv
31106 }
31107 }
31108 dd.ReadMapEnd()
31109 return v, changed
31110 }
31111
31112 func (d *Decoder) fastpathDecMapInt32BoolR(f *codecFnInfo, rv reflect.Value) {
31113 if rv.Kind() == reflect.Ptr {
31114 vp := rv2i(rv).(*map[int32]bool)
31115 if v, changed := fastpathTV.DecMapInt32BoolV(*vp, true, d); changed {
31116 *vp = v
31117 }
31118 return
31119 }
31120 fastpathTV.DecMapInt32BoolV(rv2i(rv).(map[int32]bool), false, d)
31121 }
31122 func (f fastpathT) DecMapInt32BoolX(vp *map[int32]bool, d *Decoder) {
31123 if v, changed := f.DecMapInt32BoolV(*vp, true, d); changed {
31124 *vp = v
31125 }
31126 }
31127 func (_ fastpathT) DecMapInt32BoolV(v map[int32]bool, canChange bool,
31128 d *Decoder) (_ map[int32]bool, changed bool) {
31129 dd, esep := d.d, d.hh.hasElemSeparators()
31130
31131 containerLen := dd.ReadMapStart()
31132 if canChange && v == nil {
31133 xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
31134 v = make(map[int32]bool, xlen)
31135 changed = true
31136 }
31137 if containerLen == 0 {
31138 dd.ReadMapEnd()
31139 return v, changed
31140 }
31141
31142 var mk int32
31143 var mv bool
31144 hasLen := containerLen > 0
31145 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
31146 if esep {
31147 dd.ReadMapElemKey()
31148 }
31149 mk = int32(dd.DecodeInt(32))
31150 if esep {
31151 dd.ReadMapElemValue()
31152 }
31153 if dd.TryDecodeAsNil() {
31154 if d.h.DeleteOnNilMapValue {
31155 delete(v, mk)
31156 } else {
31157 v[mk] = false
31158 }
31159 continue
31160 }
31161 mv = dd.DecodeBool()
31162 if v != nil {
31163 v[mk] = mv
31164 }
31165 }
31166 dd.ReadMapEnd()
31167 return v, changed
31168 }
31169
31170 func (d *Decoder) fastpathDecMapInt64IntfR(f *codecFnInfo, rv reflect.Value) {
31171 if rv.Kind() == reflect.Ptr {
31172 vp := rv2i(rv).(*map[int64]interface{})
31173 if v, changed := fastpathTV.DecMapInt64IntfV(*vp, true, d); changed {
31174 *vp = v
31175 }
31176 return
31177 }
31178 fastpathTV.DecMapInt64IntfV(rv2i(rv).(map[int64]interface{}), false, d)
31179 }
31180 func (f fastpathT) DecMapInt64IntfX(vp *map[int64]interface{}, d *Decoder) {
31181 if v, changed := f.DecMapInt64IntfV(*vp, true, d); changed {
31182 *vp = v
31183 }
31184 }
31185 func (_ fastpathT) DecMapInt64IntfV(v map[int64]interface{}, canChange bool,
31186 d *Decoder) (_ map[int64]interface{}, changed bool) {
31187 dd, esep := d.d, d.hh.hasElemSeparators()
31188
31189 containerLen := dd.ReadMapStart()
31190 if canChange && v == nil {
31191 xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
31192 v = make(map[int64]interface{}, xlen)
31193 changed = true
31194 }
31195 if containerLen == 0 {
31196 dd.ReadMapEnd()
31197 return v, changed
31198 }
31199 mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
31200 var mk int64
31201 var mv interface{}
31202 hasLen := containerLen > 0
31203 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
31204 if esep {
31205 dd.ReadMapElemKey()
31206 }
31207 mk = dd.DecodeInt(64)
31208 if esep {
31209 dd.ReadMapElemValue()
31210 }
31211 if dd.TryDecodeAsNil() {
31212 if d.h.DeleteOnNilMapValue {
31213 delete(v, mk)
31214 } else {
31215 v[mk] = nil
31216 }
31217 continue
31218 }
31219 if mapGet {
31220 mv = v[mk]
31221 } else {
31222 mv = nil
31223 }
31224 d.decode(&mv)
31225 if v != nil {
31226 v[mk] = mv
31227 }
31228 }
31229 dd.ReadMapEnd()
31230 return v, changed
31231 }
31232
31233 func (d *Decoder) fastpathDecMapInt64StringR(f *codecFnInfo, rv reflect.Value) {
31234 if rv.Kind() == reflect.Ptr {
31235 vp := rv2i(rv).(*map[int64]string)
31236 if v, changed := fastpathTV.DecMapInt64StringV(*vp, true, d); changed {
31237 *vp = v
31238 }
31239 return
31240 }
31241 fastpathTV.DecMapInt64StringV(rv2i(rv).(map[int64]string), false, d)
31242 }
31243 func (f fastpathT) DecMapInt64StringX(vp *map[int64]string, d *Decoder) {
31244 if v, changed := f.DecMapInt64StringV(*vp, true, d); changed {
31245 *vp = v
31246 }
31247 }
31248 func (_ fastpathT) DecMapInt64StringV(v map[int64]string, canChange bool,
31249 d *Decoder) (_ map[int64]string, changed bool) {
31250 dd, esep := d.d, d.hh.hasElemSeparators()
31251
31252 containerLen := dd.ReadMapStart()
31253 if canChange && v == nil {
31254 xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
31255 v = make(map[int64]string, xlen)
31256 changed = true
31257 }
31258 if containerLen == 0 {
31259 dd.ReadMapEnd()
31260 return v, changed
31261 }
31262
31263 var mk int64
31264 var mv string
31265 hasLen := containerLen > 0
31266 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
31267 if esep {
31268 dd.ReadMapElemKey()
31269 }
31270 mk = dd.DecodeInt(64)
31271 if esep {
31272 dd.ReadMapElemValue()
31273 }
31274 if dd.TryDecodeAsNil() {
31275 if d.h.DeleteOnNilMapValue {
31276 delete(v, mk)
31277 } else {
31278 v[mk] = ""
31279 }
31280 continue
31281 }
31282 mv = dd.DecodeString()
31283 if v != nil {
31284 v[mk] = mv
31285 }
31286 }
31287 dd.ReadMapEnd()
31288 return v, changed
31289 }
31290
31291 func (d *Decoder) fastpathDecMapInt64UintR(f *codecFnInfo, rv reflect.Value) {
31292 if rv.Kind() == reflect.Ptr {
31293 vp := rv2i(rv).(*map[int64]uint)
31294 if v, changed := fastpathTV.DecMapInt64UintV(*vp, true, d); changed {
31295 *vp = v
31296 }
31297 return
31298 }
31299 fastpathTV.DecMapInt64UintV(rv2i(rv).(map[int64]uint), false, d)
31300 }
31301 func (f fastpathT) DecMapInt64UintX(vp *map[int64]uint, d *Decoder) {
31302 if v, changed := f.DecMapInt64UintV(*vp, true, d); changed {
31303 *vp = v
31304 }
31305 }
31306 func (_ fastpathT) DecMapInt64UintV(v map[int64]uint, canChange bool,
31307 d *Decoder) (_ map[int64]uint, changed bool) {
31308 dd, esep := d.d, d.hh.hasElemSeparators()
31309
31310 containerLen := dd.ReadMapStart()
31311 if canChange && v == nil {
31312 xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
31313 v = make(map[int64]uint, xlen)
31314 changed = true
31315 }
31316 if containerLen == 0 {
31317 dd.ReadMapEnd()
31318 return v, changed
31319 }
31320
31321 var mk int64
31322 var mv uint
31323 hasLen := containerLen > 0
31324 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
31325 if esep {
31326 dd.ReadMapElemKey()
31327 }
31328 mk = dd.DecodeInt(64)
31329 if esep {
31330 dd.ReadMapElemValue()
31331 }
31332 if dd.TryDecodeAsNil() {
31333 if d.h.DeleteOnNilMapValue {
31334 delete(v, mk)
31335 } else {
31336 v[mk] = 0
31337 }
31338 continue
31339 }
31340 mv = uint(dd.DecodeUint(uintBitsize))
31341 if v != nil {
31342 v[mk] = mv
31343 }
31344 }
31345 dd.ReadMapEnd()
31346 return v, changed
31347 }
31348
31349 func (d *Decoder) fastpathDecMapInt64Uint8R(f *codecFnInfo, rv reflect.Value) {
31350 if rv.Kind() == reflect.Ptr {
31351 vp := rv2i(rv).(*map[int64]uint8)
31352 if v, changed := fastpathTV.DecMapInt64Uint8V(*vp, true, d); changed {
31353 *vp = v
31354 }
31355 return
31356 }
31357 fastpathTV.DecMapInt64Uint8V(rv2i(rv).(map[int64]uint8), false, d)
31358 }
31359 func (f fastpathT) DecMapInt64Uint8X(vp *map[int64]uint8, d *Decoder) {
31360 if v, changed := f.DecMapInt64Uint8V(*vp, true, d); changed {
31361 *vp = v
31362 }
31363 }
31364 func (_ fastpathT) DecMapInt64Uint8V(v map[int64]uint8, canChange bool,
31365 d *Decoder) (_ map[int64]uint8, changed bool) {
31366 dd, esep := d.d, d.hh.hasElemSeparators()
31367
31368 containerLen := dd.ReadMapStart()
31369 if canChange && v == nil {
31370 xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
31371 v = make(map[int64]uint8, xlen)
31372 changed = true
31373 }
31374 if containerLen == 0 {
31375 dd.ReadMapEnd()
31376 return v, changed
31377 }
31378
31379 var mk int64
31380 var mv uint8
31381 hasLen := containerLen > 0
31382 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
31383 if esep {
31384 dd.ReadMapElemKey()
31385 }
31386 mk = dd.DecodeInt(64)
31387 if esep {
31388 dd.ReadMapElemValue()
31389 }
31390 if dd.TryDecodeAsNil() {
31391 if d.h.DeleteOnNilMapValue {
31392 delete(v, mk)
31393 } else {
31394 v[mk] = 0
31395 }
31396 continue
31397 }
31398 mv = uint8(dd.DecodeUint(8))
31399 if v != nil {
31400 v[mk] = mv
31401 }
31402 }
31403 dd.ReadMapEnd()
31404 return v, changed
31405 }
31406
31407 func (d *Decoder) fastpathDecMapInt64Uint16R(f *codecFnInfo, rv reflect.Value) {
31408 if rv.Kind() == reflect.Ptr {
31409 vp := rv2i(rv).(*map[int64]uint16)
31410 if v, changed := fastpathTV.DecMapInt64Uint16V(*vp, true, d); changed {
31411 *vp = v
31412 }
31413 return
31414 }
31415 fastpathTV.DecMapInt64Uint16V(rv2i(rv).(map[int64]uint16), false, d)
31416 }
31417 func (f fastpathT) DecMapInt64Uint16X(vp *map[int64]uint16, d *Decoder) {
31418 if v, changed := f.DecMapInt64Uint16V(*vp, true, d); changed {
31419 *vp = v
31420 }
31421 }
31422 func (_ fastpathT) DecMapInt64Uint16V(v map[int64]uint16, canChange bool,
31423 d *Decoder) (_ map[int64]uint16, changed bool) {
31424 dd, esep := d.d, d.hh.hasElemSeparators()
31425
31426 containerLen := dd.ReadMapStart()
31427 if canChange && v == nil {
31428 xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
31429 v = make(map[int64]uint16, xlen)
31430 changed = true
31431 }
31432 if containerLen == 0 {
31433 dd.ReadMapEnd()
31434 return v, changed
31435 }
31436
31437 var mk int64
31438 var mv uint16
31439 hasLen := containerLen > 0
31440 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
31441 if esep {
31442 dd.ReadMapElemKey()
31443 }
31444 mk = dd.DecodeInt(64)
31445 if esep {
31446 dd.ReadMapElemValue()
31447 }
31448 if dd.TryDecodeAsNil() {
31449 if d.h.DeleteOnNilMapValue {
31450 delete(v, mk)
31451 } else {
31452 v[mk] = 0
31453 }
31454 continue
31455 }
31456 mv = uint16(dd.DecodeUint(16))
31457 if v != nil {
31458 v[mk] = mv
31459 }
31460 }
31461 dd.ReadMapEnd()
31462 return v, changed
31463 }
31464
31465 func (d *Decoder) fastpathDecMapInt64Uint32R(f *codecFnInfo, rv reflect.Value) {
31466 if rv.Kind() == reflect.Ptr {
31467 vp := rv2i(rv).(*map[int64]uint32)
31468 if v, changed := fastpathTV.DecMapInt64Uint32V(*vp, true, d); changed {
31469 *vp = v
31470 }
31471 return
31472 }
31473 fastpathTV.DecMapInt64Uint32V(rv2i(rv).(map[int64]uint32), false, d)
31474 }
31475 func (f fastpathT) DecMapInt64Uint32X(vp *map[int64]uint32, d *Decoder) {
31476 if v, changed := f.DecMapInt64Uint32V(*vp, true, d); changed {
31477 *vp = v
31478 }
31479 }
31480 func (_ fastpathT) DecMapInt64Uint32V(v map[int64]uint32, canChange bool,
31481 d *Decoder) (_ map[int64]uint32, changed bool) {
31482 dd, esep := d.d, d.hh.hasElemSeparators()
31483
31484 containerLen := dd.ReadMapStart()
31485 if canChange && v == nil {
31486 xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
31487 v = make(map[int64]uint32, xlen)
31488 changed = true
31489 }
31490 if containerLen == 0 {
31491 dd.ReadMapEnd()
31492 return v, changed
31493 }
31494
31495 var mk int64
31496 var mv uint32
31497 hasLen := containerLen > 0
31498 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
31499 if esep {
31500 dd.ReadMapElemKey()
31501 }
31502 mk = dd.DecodeInt(64)
31503 if esep {
31504 dd.ReadMapElemValue()
31505 }
31506 if dd.TryDecodeAsNil() {
31507 if d.h.DeleteOnNilMapValue {
31508 delete(v, mk)
31509 } else {
31510 v[mk] = 0
31511 }
31512 continue
31513 }
31514 mv = uint32(dd.DecodeUint(32))
31515 if v != nil {
31516 v[mk] = mv
31517 }
31518 }
31519 dd.ReadMapEnd()
31520 return v, changed
31521 }
31522
31523 func (d *Decoder) fastpathDecMapInt64Uint64R(f *codecFnInfo, rv reflect.Value) {
31524 if rv.Kind() == reflect.Ptr {
31525 vp := rv2i(rv).(*map[int64]uint64)
31526 if v, changed := fastpathTV.DecMapInt64Uint64V(*vp, true, d); changed {
31527 *vp = v
31528 }
31529 return
31530 }
31531 fastpathTV.DecMapInt64Uint64V(rv2i(rv).(map[int64]uint64), false, d)
31532 }
31533 func (f fastpathT) DecMapInt64Uint64X(vp *map[int64]uint64, d *Decoder) {
31534 if v, changed := f.DecMapInt64Uint64V(*vp, true, d); changed {
31535 *vp = v
31536 }
31537 }
31538 func (_ fastpathT) DecMapInt64Uint64V(v map[int64]uint64, canChange bool,
31539 d *Decoder) (_ map[int64]uint64, changed bool) {
31540 dd, esep := d.d, d.hh.hasElemSeparators()
31541
31542 containerLen := dd.ReadMapStart()
31543 if canChange && v == nil {
31544 xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
31545 v = make(map[int64]uint64, xlen)
31546 changed = true
31547 }
31548 if containerLen == 0 {
31549 dd.ReadMapEnd()
31550 return v, changed
31551 }
31552
31553 var mk int64
31554 var mv uint64
31555 hasLen := containerLen > 0
31556 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
31557 if esep {
31558 dd.ReadMapElemKey()
31559 }
31560 mk = dd.DecodeInt(64)
31561 if esep {
31562 dd.ReadMapElemValue()
31563 }
31564 if dd.TryDecodeAsNil() {
31565 if d.h.DeleteOnNilMapValue {
31566 delete(v, mk)
31567 } else {
31568 v[mk] = 0
31569 }
31570 continue
31571 }
31572 mv = dd.DecodeUint(64)
31573 if v != nil {
31574 v[mk] = mv
31575 }
31576 }
31577 dd.ReadMapEnd()
31578 return v, changed
31579 }
31580
31581 func (d *Decoder) fastpathDecMapInt64UintptrR(f *codecFnInfo, rv reflect.Value) {
31582 if rv.Kind() == reflect.Ptr {
31583 vp := rv2i(rv).(*map[int64]uintptr)
31584 if v, changed := fastpathTV.DecMapInt64UintptrV(*vp, true, d); changed {
31585 *vp = v
31586 }
31587 return
31588 }
31589 fastpathTV.DecMapInt64UintptrV(rv2i(rv).(map[int64]uintptr), false, d)
31590 }
31591 func (f fastpathT) DecMapInt64UintptrX(vp *map[int64]uintptr, d *Decoder) {
31592 if v, changed := f.DecMapInt64UintptrV(*vp, true, d); changed {
31593 *vp = v
31594 }
31595 }
31596 func (_ fastpathT) DecMapInt64UintptrV(v map[int64]uintptr, canChange bool,
31597 d *Decoder) (_ map[int64]uintptr, changed bool) {
31598 dd, esep := d.d, d.hh.hasElemSeparators()
31599
31600 containerLen := dd.ReadMapStart()
31601 if canChange && v == nil {
31602 xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
31603 v = make(map[int64]uintptr, xlen)
31604 changed = true
31605 }
31606 if containerLen == 0 {
31607 dd.ReadMapEnd()
31608 return v, changed
31609 }
31610
31611 var mk int64
31612 var mv uintptr
31613 hasLen := containerLen > 0
31614 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
31615 if esep {
31616 dd.ReadMapElemKey()
31617 }
31618 mk = dd.DecodeInt(64)
31619 if esep {
31620 dd.ReadMapElemValue()
31621 }
31622 if dd.TryDecodeAsNil() {
31623 if d.h.DeleteOnNilMapValue {
31624 delete(v, mk)
31625 } else {
31626 v[mk] = 0
31627 }
31628 continue
31629 }
31630 mv = uintptr(dd.DecodeUint(uintBitsize))
31631 if v != nil {
31632 v[mk] = mv
31633 }
31634 }
31635 dd.ReadMapEnd()
31636 return v, changed
31637 }
31638
31639 func (d *Decoder) fastpathDecMapInt64IntR(f *codecFnInfo, rv reflect.Value) {
31640 if rv.Kind() == reflect.Ptr {
31641 vp := rv2i(rv).(*map[int64]int)
31642 if v, changed := fastpathTV.DecMapInt64IntV(*vp, true, d); changed {
31643 *vp = v
31644 }
31645 return
31646 }
31647 fastpathTV.DecMapInt64IntV(rv2i(rv).(map[int64]int), false, d)
31648 }
31649 func (f fastpathT) DecMapInt64IntX(vp *map[int64]int, d *Decoder) {
31650 if v, changed := f.DecMapInt64IntV(*vp, true, d); changed {
31651 *vp = v
31652 }
31653 }
31654 func (_ fastpathT) DecMapInt64IntV(v map[int64]int, canChange bool,
31655 d *Decoder) (_ map[int64]int, changed bool) {
31656 dd, esep := d.d, d.hh.hasElemSeparators()
31657
31658 containerLen := dd.ReadMapStart()
31659 if canChange && v == nil {
31660 xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
31661 v = make(map[int64]int, xlen)
31662 changed = true
31663 }
31664 if containerLen == 0 {
31665 dd.ReadMapEnd()
31666 return v, changed
31667 }
31668
31669 var mk int64
31670 var mv int
31671 hasLen := containerLen > 0
31672 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
31673 if esep {
31674 dd.ReadMapElemKey()
31675 }
31676 mk = dd.DecodeInt(64)
31677 if esep {
31678 dd.ReadMapElemValue()
31679 }
31680 if dd.TryDecodeAsNil() {
31681 if d.h.DeleteOnNilMapValue {
31682 delete(v, mk)
31683 } else {
31684 v[mk] = 0
31685 }
31686 continue
31687 }
31688 mv = int(dd.DecodeInt(intBitsize))
31689 if v != nil {
31690 v[mk] = mv
31691 }
31692 }
31693 dd.ReadMapEnd()
31694 return v, changed
31695 }
31696
31697 func (d *Decoder) fastpathDecMapInt64Int8R(f *codecFnInfo, rv reflect.Value) {
31698 if rv.Kind() == reflect.Ptr {
31699 vp := rv2i(rv).(*map[int64]int8)
31700 if v, changed := fastpathTV.DecMapInt64Int8V(*vp, true, d); changed {
31701 *vp = v
31702 }
31703 return
31704 }
31705 fastpathTV.DecMapInt64Int8V(rv2i(rv).(map[int64]int8), false, d)
31706 }
31707 func (f fastpathT) DecMapInt64Int8X(vp *map[int64]int8, d *Decoder) {
31708 if v, changed := f.DecMapInt64Int8V(*vp, true, d); changed {
31709 *vp = v
31710 }
31711 }
31712 func (_ fastpathT) DecMapInt64Int8V(v map[int64]int8, canChange bool,
31713 d *Decoder) (_ map[int64]int8, changed bool) {
31714 dd, esep := d.d, d.hh.hasElemSeparators()
31715
31716 containerLen := dd.ReadMapStart()
31717 if canChange && v == nil {
31718 xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
31719 v = make(map[int64]int8, xlen)
31720 changed = true
31721 }
31722 if containerLen == 0 {
31723 dd.ReadMapEnd()
31724 return v, changed
31725 }
31726
31727 var mk int64
31728 var mv int8
31729 hasLen := containerLen > 0
31730 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
31731 if esep {
31732 dd.ReadMapElemKey()
31733 }
31734 mk = dd.DecodeInt(64)
31735 if esep {
31736 dd.ReadMapElemValue()
31737 }
31738 if dd.TryDecodeAsNil() {
31739 if d.h.DeleteOnNilMapValue {
31740 delete(v, mk)
31741 } else {
31742 v[mk] = 0
31743 }
31744 continue
31745 }
31746 mv = int8(dd.DecodeInt(8))
31747 if v != nil {
31748 v[mk] = mv
31749 }
31750 }
31751 dd.ReadMapEnd()
31752 return v, changed
31753 }
31754
31755 func (d *Decoder) fastpathDecMapInt64Int16R(f *codecFnInfo, rv reflect.Value) {
31756 if rv.Kind() == reflect.Ptr {
31757 vp := rv2i(rv).(*map[int64]int16)
31758 if v, changed := fastpathTV.DecMapInt64Int16V(*vp, true, d); changed {
31759 *vp = v
31760 }
31761 return
31762 }
31763 fastpathTV.DecMapInt64Int16V(rv2i(rv).(map[int64]int16), false, d)
31764 }
31765 func (f fastpathT) DecMapInt64Int16X(vp *map[int64]int16, d *Decoder) {
31766 if v, changed := f.DecMapInt64Int16V(*vp, true, d); changed {
31767 *vp = v
31768 }
31769 }
31770 func (_ fastpathT) DecMapInt64Int16V(v map[int64]int16, canChange bool,
31771 d *Decoder) (_ map[int64]int16, changed bool) {
31772 dd, esep := d.d, d.hh.hasElemSeparators()
31773
31774 containerLen := dd.ReadMapStart()
31775 if canChange && v == nil {
31776 xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
31777 v = make(map[int64]int16, xlen)
31778 changed = true
31779 }
31780 if containerLen == 0 {
31781 dd.ReadMapEnd()
31782 return v, changed
31783 }
31784
31785 var mk int64
31786 var mv int16
31787 hasLen := containerLen > 0
31788 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
31789 if esep {
31790 dd.ReadMapElemKey()
31791 }
31792 mk = dd.DecodeInt(64)
31793 if esep {
31794 dd.ReadMapElemValue()
31795 }
31796 if dd.TryDecodeAsNil() {
31797 if d.h.DeleteOnNilMapValue {
31798 delete(v, mk)
31799 } else {
31800 v[mk] = 0
31801 }
31802 continue
31803 }
31804 mv = int16(dd.DecodeInt(16))
31805 if v != nil {
31806 v[mk] = mv
31807 }
31808 }
31809 dd.ReadMapEnd()
31810 return v, changed
31811 }
31812
31813 func (d *Decoder) fastpathDecMapInt64Int32R(f *codecFnInfo, rv reflect.Value) {
31814 if rv.Kind() == reflect.Ptr {
31815 vp := rv2i(rv).(*map[int64]int32)
31816 if v, changed := fastpathTV.DecMapInt64Int32V(*vp, true, d); changed {
31817 *vp = v
31818 }
31819 return
31820 }
31821 fastpathTV.DecMapInt64Int32V(rv2i(rv).(map[int64]int32), false, d)
31822 }
31823 func (f fastpathT) DecMapInt64Int32X(vp *map[int64]int32, d *Decoder) {
31824 if v, changed := f.DecMapInt64Int32V(*vp, true, d); changed {
31825 *vp = v
31826 }
31827 }
31828 func (_ fastpathT) DecMapInt64Int32V(v map[int64]int32, canChange bool,
31829 d *Decoder) (_ map[int64]int32, changed bool) {
31830 dd, esep := d.d, d.hh.hasElemSeparators()
31831
31832 containerLen := dd.ReadMapStart()
31833 if canChange && v == nil {
31834 xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
31835 v = make(map[int64]int32, xlen)
31836 changed = true
31837 }
31838 if containerLen == 0 {
31839 dd.ReadMapEnd()
31840 return v, changed
31841 }
31842
31843 var mk int64
31844 var mv int32
31845 hasLen := containerLen > 0
31846 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
31847 if esep {
31848 dd.ReadMapElemKey()
31849 }
31850 mk = dd.DecodeInt(64)
31851 if esep {
31852 dd.ReadMapElemValue()
31853 }
31854 if dd.TryDecodeAsNil() {
31855 if d.h.DeleteOnNilMapValue {
31856 delete(v, mk)
31857 } else {
31858 v[mk] = 0
31859 }
31860 continue
31861 }
31862 mv = int32(dd.DecodeInt(32))
31863 if v != nil {
31864 v[mk] = mv
31865 }
31866 }
31867 dd.ReadMapEnd()
31868 return v, changed
31869 }
31870
31871 func (d *Decoder) fastpathDecMapInt64Int64R(f *codecFnInfo, rv reflect.Value) {
31872 if rv.Kind() == reflect.Ptr {
31873 vp := rv2i(rv).(*map[int64]int64)
31874 if v, changed := fastpathTV.DecMapInt64Int64V(*vp, true, d); changed {
31875 *vp = v
31876 }
31877 return
31878 }
31879 fastpathTV.DecMapInt64Int64V(rv2i(rv).(map[int64]int64), false, d)
31880 }
31881 func (f fastpathT) DecMapInt64Int64X(vp *map[int64]int64, d *Decoder) {
31882 if v, changed := f.DecMapInt64Int64V(*vp, true, d); changed {
31883 *vp = v
31884 }
31885 }
31886 func (_ fastpathT) DecMapInt64Int64V(v map[int64]int64, canChange bool,
31887 d *Decoder) (_ map[int64]int64, changed bool) {
31888 dd, esep := d.d, d.hh.hasElemSeparators()
31889
31890 containerLen := dd.ReadMapStart()
31891 if canChange && v == nil {
31892 xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
31893 v = make(map[int64]int64, xlen)
31894 changed = true
31895 }
31896 if containerLen == 0 {
31897 dd.ReadMapEnd()
31898 return v, changed
31899 }
31900
31901 var mk int64
31902 var mv int64
31903 hasLen := containerLen > 0
31904 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
31905 if esep {
31906 dd.ReadMapElemKey()
31907 }
31908 mk = dd.DecodeInt(64)
31909 if esep {
31910 dd.ReadMapElemValue()
31911 }
31912 if dd.TryDecodeAsNil() {
31913 if d.h.DeleteOnNilMapValue {
31914 delete(v, mk)
31915 } else {
31916 v[mk] = 0
31917 }
31918 continue
31919 }
31920 mv = dd.DecodeInt(64)
31921 if v != nil {
31922 v[mk] = mv
31923 }
31924 }
31925 dd.ReadMapEnd()
31926 return v, changed
31927 }
31928
31929 func (d *Decoder) fastpathDecMapInt64Float32R(f *codecFnInfo, rv reflect.Value) {
31930 if rv.Kind() == reflect.Ptr {
31931 vp := rv2i(rv).(*map[int64]float32)
31932 if v, changed := fastpathTV.DecMapInt64Float32V(*vp, true, d); changed {
31933 *vp = v
31934 }
31935 return
31936 }
31937 fastpathTV.DecMapInt64Float32V(rv2i(rv).(map[int64]float32), false, d)
31938 }
31939 func (f fastpathT) DecMapInt64Float32X(vp *map[int64]float32, d *Decoder) {
31940 if v, changed := f.DecMapInt64Float32V(*vp, true, d); changed {
31941 *vp = v
31942 }
31943 }
31944 func (_ fastpathT) DecMapInt64Float32V(v map[int64]float32, canChange bool,
31945 d *Decoder) (_ map[int64]float32, changed bool) {
31946 dd, esep := d.d, d.hh.hasElemSeparators()
31947
31948 containerLen := dd.ReadMapStart()
31949 if canChange && v == nil {
31950 xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
31951 v = make(map[int64]float32, xlen)
31952 changed = true
31953 }
31954 if containerLen == 0 {
31955 dd.ReadMapEnd()
31956 return v, changed
31957 }
31958
31959 var mk int64
31960 var mv float32
31961 hasLen := containerLen > 0
31962 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
31963 if esep {
31964 dd.ReadMapElemKey()
31965 }
31966 mk = dd.DecodeInt(64)
31967 if esep {
31968 dd.ReadMapElemValue()
31969 }
31970 if dd.TryDecodeAsNil() {
31971 if d.h.DeleteOnNilMapValue {
31972 delete(v, mk)
31973 } else {
31974 v[mk] = 0
31975 }
31976 continue
31977 }
31978 mv = float32(dd.DecodeFloat(true))
31979 if v != nil {
31980 v[mk] = mv
31981 }
31982 }
31983 dd.ReadMapEnd()
31984 return v, changed
31985 }
31986
31987 func (d *Decoder) fastpathDecMapInt64Float64R(f *codecFnInfo, rv reflect.Value) {
31988 if rv.Kind() == reflect.Ptr {
31989 vp := rv2i(rv).(*map[int64]float64)
31990 if v, changed := fastpathTV.DecMapInt64Float64V(*vp, true, d); changed {
31991 *vp = v
31992 }
31993 return
31994 }
31995 fastpathTV.DecMapInt64Float64V(rv2i(rv).(map[int64]float64), false, d)
31996 }
31997 func (f fastpathT) DecMapInt64Float64X(vp *map[int64]float64, d *Decoder) {
31998 if v, changed := f.DecMapInt64Float64V(*vp, true, d); changed {
31999 *vp = v
32000 }
32001 }
32002 func (_ fastpathT) DecMapInt64Float64V(v map[int64]float64, canChange bool,
32003 d *Decoder) (_ map[int64]float64, changed bool) {
32004 dd, esep := d.d, d.hh.hasElemSeparators()
32005
32006 containerLen := dd.ReadMapStart()
32007 if canChange && v == nil {
32008 xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
32009 v = make(map[int64]float64, xlen)
32010 changed = true
32011 }
32012 if containerLen == 0 {
32013 dd.ReadMapEnd()
32014 return v, changed
32015 }
32016
32017 var mk int64
32018 var mv float64
32019 hasLen := containerLen > 0
32020 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
32021 if esep {
32022 dd.ReadMapElemKey()
32023 }
32024 mk = dd.DecodeInt(64)
32025 if esep {
32026 dd.ReadMapElemValue()
32027 }
32028 if dd.TryDecodeAsNil() {
32029 if d.h.DeleteOnNilMapValue {
32030 delete(v, mk)
32031 } else {
32032 v[mk] = 0
32033 }
32034 continue
32035 }
32036 mv = dd.DecodeFloat(false)
32037 if v != nil {
32038 v[mk] = mv
32039 }
32040 }
32041 dd.ReadMapEnd()
32042 return v, changed
32043 }
32044
32045 func (d *Decoder) fastpathDecMapInt64BoolR(f *codecFnInfo, rv reflect.Value) {
32046 if rv.Kind() == reflect.Ptr {
32047 vp := rv2i(rv).(*map[int64]bool)
32048 if v, changed := fastpathTV.DecMapInt64BoolV(*vp, true, d); changed {
32049 *vp = v
32050 }
32051 return
32052 }
32053 fastpathTV.DecMapInt64BoolV(rv2i(rv).(map[int64]bool), false, d)
32054 }
32055 func (f fastpathT) DecMapInt64BoolX(vp *map[int64]bool, d *Decoder) {
32056 if v, changed := f.DecMapInt64BoolV(*vp, true, d); changed {
32057 *vp = v
32058 }
32059 }
32060 func (_ fastpathT) DecMapInt64BoolV(v map[int64]bool, canChange bool,
32061 d *Decoder) (_ map[int64]bool, changed bool) {
32062 dd, esep := d.d, d.hh.hasElemSeparators()
32063
32064 containerLen := dd.ReadMapStart()
32065 if canChange && v == nil {
32066 xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
32067 v = make(map[int64]bool, xlen)
32068 changed = true
32069 }
32070 if containerLen == 0 {
32071 dd.ReadMapEnd()
32072 return v, changed
32073 }
32074
32075 var mk int64
32076 var mv bool
32077 hasLen := containerLen > 0
32078 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
32079 if esep {
32080 dd.ReadMapElemKey()
32081 }
32082 mk = dd.DecodeInt(64)
32083 if esep {
32084 dd.ReadMapElemValue()
32085 }
32086 if dd.TryDecodeAsNil() {
32087 if d.h.DeleteOnNilMapValue {
32088 delete(v, mk)
32089 } else {
32090 v[mk] = false
32091 }
32092 continue
32093 }
32094 mv = dd.DecodeBool()
32095 if v != nil {
32096 v[mk] = mv
32097 }
32098 }
32099 dd.ReadMapEnd()
32100 return v, changed
32101 }
32102
32103 func (d *Decoder) fastpathDecMapBoolIntfR(f *codecFnInfo, rv reflect.Value) {
32104 if rv.Kind() == reflect.Ptr {
32105 vp := rv2i(rv).(*map[bool]interface{})
32106 if v, changed := fastpathTV.DecMapBoolIntfV(*vp, true, d); changed {
32107 *vp = v
32108 }
32109 return
32110 }
32111 fastpathTV.DecMapBoolIntfV(rv2i(rv).(map[bool]interface{}), false, d)
32112 }
32113 func (f fastpathT) DecMapBoolIntfX(vp *map[bool]interface{}, d *Decoder) {
32114 if v, changed := f.DecMapBoolIntfV(*vp, true, d); changed {
32115 *vp = v
32116 }
32117 }
32118 func (_ fastpathT) DecMapBoolIntfV(v map[bool]interface{}, canChange bool,
32119 d *Decoder) (_ map[bool]interface{}, changed bool) {
32120 dd, esep := d.d, d.hh.hasElemSeparators()
32121
32122 containerLen := dd.ReadMapStart()
32123 if canChange && v == nil {
32124 xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
32125 v = make(map[bool]interface{}, xlen)
32126 changed = true
32127 }
32128 if containerLen == 0 {
32129 dd.ReadMapEnd()
32130 return v, changed
32131 }
32132 mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
32133 var mk bool
32134 var mv interface{}
32135 hasLen := containerLen > 0
32136 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
32137 if esep {
32138 dd.ReadMapElemKey()
32139 }
32140 mk = dd.DecodeBool()
32141 if esep {
32142 dd.ReadMapElemValue()
32143 }
32144 if dd.TryDecodeAsNil() {
32145 if d.h.DeleteOnNilMapValue {
32146 delete(v, mk)
32147 } else {
32148 v[mk] = nil
32149 }
32150 continue
32151 }
32152 if mapGet {
32153 mv = v[mk]
32154 } else {
32155 mv = nil
32156 }
32157 d.decode(&mv)
32158 if v != nil {
32159 v[mk] = mv
32160 }
32161 }
32162 dd.ReadMapEnd()
32163 return v, changed
32164 }
32165
32166 func (d *Decoder) fastpathDecMapBoolStringR(f *codecFnInfo, rv reflect.Value) {
32167 if rv.Kind() == reflect.Ptr {
32168 vp := rv2i(rv).(*map[bool]string)
32169 if v, changed := fastpathTV.DecMapBoolStringV(*vp, true, d); changed {
32170 *vp = v
32171 }
32172 return
32173 }
32174 fastpathTV.DecMapBoolStringV(rv2i(rv).(map[bool]string), false, d)
32175 }
32176 func (f fastpathT) DecMapBoolStringX(vp *map[bool]string, d *Decoder) {
32177 if v, changed := f.DecMapBoolStringV(*vp, true, d); changed {
32178 *vp = v
32179 }
32180 }
32181 func (_ fastpathT) DecMapBoolStringV(v map[bool]string, canChange bool,
32182 d *Decoder) (_ map[bool]string, changed bool) {
32183 dd, esep := d.d, d.hh.hasElemSeparators()
32184
32185 containerLen := dd.ReadMapStart()
32186 if canChange && v == nil {
32187 xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
32188 v = make(map[bool]string, xlen)
32189 changed = true
32190 }
32191 if containerLen == 0 {
32192 dd.ReadMapEnd()
32193 return v, changed
32194 }
32195
32196 var mk bool
32197 var mv string
32198 hasLen := containerLen > 0
32199 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
32200 if esep {
32201 dd.ReadMapElemKey()
32202 }
32203 mk = dd.DecodeBool()
32204 if esep {
32205 dd.ReadMapElemValue()
32206 }
32207 if dd.TryDecodeAsNil() {
32208 if d.h.DeleteOnNilMapValue {
32209 delete(v, mk)
32210 } else {
32211 v[mk] = ""
32212 }
32213 continue
32214 }
32215 mv = dd.DecodeString()
32216 if v != nil {
32217 v[mk] = mv
32218 }
32219 }
32220 dd.ReadMapEnd()
32221 return v, changed
32222 }
32223
32224 func (d *Decoder) fastpathDecMapBoolUintR(f *codecFnInfo, rv reflect.Value) {
32225 if rv.Kind() == reflect.Ptr {
32226 vp := rv2i(rv).(*map[bool]uint)
32227 if v, changed := fastpathTV.DecMapBoolUintV(*vp, true, d); changed {
32228 *vp = v
32229 }
32230 return
32231 }
32232 fastpathTV.DecMapBoolUintV(rv2i(rv).(map[bool]uint), false, d)
32233 }
32234 func (f fastpathT) DecMapBoolUintX(vp *map[bool]uint, d *Decoder) {
32235 if v, changed := f.DecMapBoolUintV(*vp, true, d); changed {
32236 *vp = v
32237 }
32238 }
32239 func (_ fastpathT) DecMapBoolUintV(v map[bool]uint, canChange bool,
32240 d *Decoder) (_ map[bool]uint, changed bool) {
32241 dd, esep := d.d, d.hh.hasElemSeparators()
32242
32243 containerLen := dd.ReadMapStart()
32244 if canChange && v == nil {
32245 xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
32246 v = make(map[bool]uint, xlen)
32247 changed = true
32248 }
32249 if containerLen == 0 {
32250 dd.ReadMapEnd()
32251 return v, changed
32252 }
32253
32254 var mk bool
32255 var mv uint
32256 hasLen := containerLen > 0
32257 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
32258 if esep {
32259 dd.ReadMapElemKey()
32260 }
32261 mk = dd.DecodeBool()
32262 if esep {
32263 dd.ReadMapElemValue()
32264 }
32265 if dd.TryDecodeAsNil() {
32266 if d.h.DeleteOnNilMapValue {
32267 delete(v, mk)
32268 } else {
32269 v[mk] = 0
32270 }
32271 continue
32272 }
32273 mv = uint(dd.DecodeUint(uintBitsize))
32274 if v != nil {
32275 v[mk] = mv
32276 }
32277 }
32278 dd.ReadMapEnd()
32279 return v, changed
32280 }
32281
32282 func (d *Decoder) fastpathDecMapBoolUint8R(f *codecFnInfo, rv reflect.Value) {
32283 if rv.Kind() == reflect.Ptr {
32284 vp := rv2i(rv).(*map[bool]uint8)
32285 if v, changed := fastpathTV.DecMapBoolUint8V(*vp, true, d); changed {
32286 *vp = v
32287 }
32288 return
32289 }
32290 fastpathTV.DecMapBoolUint8V(rv2i(rv).(map[bool]uint8), false, d)
32291 }
32292 func (f fastpathT) DecMapBoolUint8X(vp *map[bool]uint8, d *Decoder) {
32293 if v, changed := f.DecMapBoolUint8V(*vp, true, d); changed {
32294 *vp = v
32295 }
32296 }
32297 func (_ fastpathT) DecMapBoolUint8V(v map[bool]uint8, canChange bool,
32298 d *Decoder) (_ map[bool]uint8, changed bool) {
32299 dd, esep := d.d, d.hh.hasElemSeparators()
32300
32301 containerLen := dd.ReadMapStart()
32302 if canChange && v == nil {
32303 xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
32304 v = make(map[bool]uint8, xlen)
32305 changed = true
32306 }
32307 if containerLen == 0 {
32308 dd.ReadMapEnd()
32309 return v, changed
32310 }
32311
32312 var mk bool
32313 var mv uint8
32314 hasLen := containerLen > 0
32315 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
32316 if esep {
32317 dd.ReadMapElemKey()
32318 }
32319 mk = dd.DecodeBool()
32320 if esep {
32321 dd.ReadMapElemValue()
32322 }
32323 if dd.TryDecodeAsNil() {
32324 if d.h.DeleteOnNilMapValue {
32325 delete(v, mk)
32326 } else {
32327 v[mk] = 0
32328 }
32329 continue
32330 }
32331 mv = uint8(dd.DecodeUint(8))
32332 if v != nil {
32333 v[mk] = mv
32334 }
32335 }
32336 dd.ReadMapEnd()
32337 return v, changed
32338 }
32339
32340 func (d *Decoder) fastpathDecMapBoolUint16R(f *codecFnInfo, rv reflect.Value) {
32341 if rv.Kind() == reflect.Ptr {
32342 vp := rv2i(rv).(*map[bool]uint16)
32343 if v, changed := fastpathTV.DecMapBoolUint16V(*vp, true, d); changed {
32344 *vp = v
32345 }
32346 return
32347 }
32348 fastpathTV.DecMapBoolUint16V(rv2i(rv).(map[bool]uint16), false, d)
32349 }
32350 func (f fastpathT) DecMapBoolUint16X(vp *map[bool]uint16, d *Decoder) {
32351 if v, changed := f.DecMapBoolUint16V(*vp, true, d); changed {
32352 *vp = v
32353 }
32354 }
32355 func (_ fastpathT) DecMapBoolUint16V(v map[bool]uint16, canChange bool,
32356 d *Decoder) (_ map[bool]uint16, changed bool) {
32357 dd, esep := d.d, d.hh.hasElemSeparators()
32358
32359 containerLen := dd.ReadMapStart()
32360 if canChange && v == nil {
32361 xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
32362 v = make(map[bool]uint16, xlen)
32363 changed = true
32364 }
32365 if containerLen == 0 {
32366 dd.ReadMapEnd()
32367 return v, changed
32368 }
32369
32370 var mk bool
32371 var mv uint16
32372 hasLen := containerLen > 0
32373 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
32374 if esep {
32375 dd.ReadMapElemKey()
32376 }
32377 mk = dd.DecodeBool()
32378 if esep {
32379 dd.ReadMapElemValue()
32380 }
32381 if dd.TryDecodeAsNil() {
32382 if d.h.DeleteOnNilMapValue {
32383 delete(v, mk)
32384 } else {
32385 v[mk] = 0
32386 }
32387 continue
32388 }
32389 mv = uint16(dd.DecodeUint(16))
32390 if v != nil {
32391 v[mk] = mv
32392 }
32393 }
32394 dd.ReadMapEnd()
32395 return v, changed
32396 }
32397
32398 func (d *Decoder) fastpathDecMapBoolUint32R(f *codecFnInfo, rv reflect.Value) {
32399 if rv.Kind() == reflect.Ptr {
32400 vp := rv2i(rv).(*map[bool]uint32)
32401 if v, changed := fastpathTV.DecMapBoolUint32V(*vp, true, d); changed {
32402 *vp = v
32403 }
32404 return
32405 }
32406 fastpathTV.DecMapBoolUint32V(rv2i(rv).(map[bool]uint32), false, d)
32407 }
32408 func (f fastpathT) DecMapBoolUint32X(vp *map[bool]uint32, d *Decoder) {
32409 if v, changed := f.DecMapBoolUint32V(*vp, true, d); changed {
32410 *vp = v
32411 }
32412 }
32413 func (_ fastpathT) DecMapBoolUint32V(v map[bool]uint32, canChange bool,
32414 d *Decoder) (_ map[bool]uint32, changed bool) {
32415 dd, esep := d.d, d.hh.hasElemSeparators()
32416
32417 containerLen := dd.ReadMapStart()
32418 if canChange && v == nil {
32419 xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
32420 v = make(map[bool]uint32, xlen)
32421 changed = true
32422 }
32423 if containerLen == 0 {
32424 dd.ReadMapEnd()
32425 return v, changed
32426 }
32427
32428 var mk bool
32429 var mv uint32
32430 hasLen := containerLen > 0
32431 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
32432 if esep {
32433 dd.ReadMapElemKey()
32434 }
32435 mk = dd.DecodeBool()
32436 if esep {
32437 dd.ReadMapElemValue()
32438 }
32439 if dd.TryDecodeAsNil() {
32440 if d.h.DeleteOnNilMapValue {
32441 delete(v, mk)
32442 } else {
32443 v[mk] = 0
32444 }
32445 continue
32446 }
32447 mv = uint32(dd.DecodeUint(32))
32448 if v != nil {
32449 v[mk] = mv
32450 }
32451 }
32452 dd.ReadMapEnd()
32453 return v, changed
32454 }
32455
32456 func (d *Decoder) fastpathDecMapBoolUint64R(f *codecFnInfo, rv reflect.Value) {
32457 if rv.Kind() == reflect.Ptr {
32458 vp := rv2i(rv).(*map[bool]uint64)
32459 if v, changed := fastpathTV.DecMapBoolUint64V(*vp, true, d); changed {
32460 *vp = v
32461 }
32462 return
32463 }
32464 fastpathTV.DecMapBoolUint64V(rv2i(rv).(map[bool]uint64), false, d)
32465 }
32466 func (f fastpathT) DecMapBoolUint64X(vp *map[bool]uint64, d *Decoder) {
32467 if v, changed := f.DecMapBoolUint64V(*vp, true, d); changed {
32468 *vp = v
32469 }
32470 }
32471 func (_ fastpathT) DecMapBoolUint64V(v map[bool]uint64, canChange bool,
32472 d *Decoder) (_ map[bool]uint64, changed bool) {
32473 dd, esep := d.d, d.hh.hasElemSeparators()
32474
32475 containerLen := dd.ReadMapStart()
32476 if canChange && v == nil {
32477 xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
32478 v = make(map[bool]uint64, xlen)
32479 changed = true
32480 }
32481 if containerLen == 0 {
32482 dd.ReadMapEnd()
32483 return v, changed
32484 }
32485
32486 var mk bool
32487 var mv uint64
32488 hasLen := containerLen > 0
32489 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
32490 if esep {
32491 dd.ReadMapElemKey()
32492 }
32493 mk = dd.DecodeBool()
32494 if esep {
32495 dd.ReadMapElemValue()
32496 }
32497 if dd.TryDecodeAsNil() {
32498 if d.h.DeleteOnNilMapValue {
32499 delete(v, mk)
32500 } else {
32501 v[mk] = 0
32502 }
32503 continue
32504 }
32505 mv = dd.DecodeUint(64)
32506 if v != nil {
32507 v[mk] = mv
32508 }
32509 }
32510 dd.ReadMapEnd()
32511 return v, changed
32512 }
32513
32514 func (d *Decoder) fastpathDecMapBoolUintptrR(f *codecFnInfo, rv reflect.Value) {
32515 if rv.Kind() == reflect.Ptr {
32516 vp := rv2i(rv).(*map[bool]uintptr)
32517 if v, changed := fastpathTV.DecMapBoolUintptrV(*vp, true, d); changed {
32518 *vp = v
32519 }
32520 return
32521 }
32522 fastpathTV.DecMapBoolUintptrV(rv2i(rv).(map[bool]uintptr), false, d)
32523 }
32524 func (f fastpathT) DecMapBoolUintptrX(vp *map[bool]uintptr, d *Decoder) {
32525 if v, changed := f.DecMapBoolUintptrV(*vp, true, d); changed {
32526 *vp = v
32527 }
32528 }
32529 func (_ fastpathT) DecMapBoolUintptrV(v map[bool]uintptr, canChange bool,
32530 d *Decoder) (_ map[bool]uintptr, changed bool) {
32531 dd, esep := d.d, d.hh.hasElemSeparators()
32532
32533 containerLen := dd.ReadMapStart()
32534 if canChange && v == nil {
32535 xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
32536 v = make(map[bool]uintptr, xlen)
32537 changed = true
32538 }
32539 if containerLen == 0 {
32540 dd.ReadMapEnd()
32541 return v, changed
32542 }
32543
32544 var mk bool
32545 var mv uintptr
32546 hasLen := containerLen > 0
32547 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
32548 if esep {
32549 dd.ReadMapElemKey()
32550 }
32551 mk = dd.DecodeBool()
32552 if esep {
32553 dd.ReadMapElemValue()
32554 }
32555 if dd.TryDecodeAsNil() {
32556 if d.h.DeleteOnNilMapValue {
32557 delete(v, mk)
32558 } else {
32559 v[mk] = 0
32560 }
32561 continue
32562 }
32563 mv = uintptr(dd.DecodeUint(uintBitsize))
32564 if v != nil {
32565 v[mk] = mv
32566 }
32567 }
32568 dd.ReadMapEnd()
32569 return v, changed
32570 }
32571
32572 func (d *Decoder) fastpathDecMapBoolIntR(f *codecFnInfo, rv reflect.Value) {
32573 if rv.Kind() == reflect.Ptr {
32574 vp := rv2i(rv).(*map[bool]int)
32575 if v, changed := fastpathTV.DecMapBoolIntV(*vp, true, d); changed {
32576 *vp = v
32577 }
32578 return
32579 }
32580 fastpathTV.DecMapBoolIntV(rv2i(rv).(map[bool]int), false, d)
32581 }
32582 func (f fastpathT) DecMapBoolIntX(vp *map[bool]int, d *Decoder) {
32583 if v, changed := f.DecMapBoolIntV(*vp, true, d); changed {
32584 *vp = v
32585 }
32586 }
32587 func (_ fastpathT) DecMapBoolIntV(v map[bool]int, canChange bool,
32588 d *Decoder) (_ map[bool]int, changed bool) {
32589 dd, esep := d.d, d.hh.hasElemSeparators()
32590
32591 containerLen := dd.ReadMapStart()
32592 if canChange && v == nil {
32593 xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
32594 v = make(map[bool]int, xlen)
32595 changed = true
32596 }
32597 if containerLen == 0 {
32598 dd.ReadMapEnd()
32599 return v, changed
32600 }
32601
32602 var mk bool
32603 var mv int
32604 hasLen := containerLen > 0
32605 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
32606 if esep {
32607 dd.ReadMapElemKey()
32608 }
32609 mk = dd.DecodeBool()
32610 if esep {
32611 dd.ReadMapElemValue()
32612 }
32613 if dd.TryDecodeAsNil() {
32614 if d.h.DeleteOnNilMapValue {
32615 delete(v, mk)
32616 } else {
32617 v[mk] = 0
32618 }
32619 continue
32620 }
32621 mv = int(dd.DecodeInt(intBitsize))
32622 if v != nil {
32623 v[mk] = mv
32624 }
32625 }
32626 dd.ReadMapEnd()
32627 return v, changed
32628 }
32629
32630 func (d *Decoder) fastpathDecMapBoolInt8R(f *codecFnInfo, rv reflect.Value) {
32631 if rv.Kind() == reflect.Ptr {
32632 vp := rv2i(rv).(*map[bool]int8)
32633 if v, changed := fastpathTV.DecMapBoolInt8V(*vp, true, d); changed {
32634 *vp = v
32635 }
32636 return
32637 }
32638 fastpathTV.DecMapBoolInt8V(rv2i(rv).(map[bool]int8), false, d)
32639 }
32640 func (f fastpathT) DecMapBoolInt8X(vp *map[bool]int8, d *Decoder) {
32641 if v, changed := f.DecMapBoolInt8V(*vp, true, d); changed {
32642 *vp = v
32643 }
32644 }
32645 func (_ fastpathT) DecMapBoolInt8V(v map[bool]int8, canChange bool,
32646 d *Decoder) (_ map[bool]int8, changed bool) {
32647 dd, esep := d.d, d.hh.hasElemSeparators()
32648
32649 containerLen := dd.ReadMapStart()
32650 if canChange && v == nil {
32651 xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
32652 v = make(map[bool]int8, xlen)
32653 changed = true
32654 }
32655 if containerLen == 0 {
32656 dd.ReadMapEnd()
32657 return v, changed
32658 }
32659
32660 var mk bool
32661 var mv int8
32662 hasLen := containerLen > 0
32663 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
32664 if esep {
32665 dd.ReadMapElemKey()
32666 }
32667 mk = dd.DecodeBool()
32668 if esep {
32669 dd.ReadMapElemValue()
32670 }
32671 if dd.TryDecodeAsNil() {
32672 if d.h.DeleteOnNilMapValue {
32673 delete(v, mk)
32674 } else {
32675 v[mk] = 0
32676 }
32677 continue
32678 }
32679 mv = int8(dd.DecodeInt(8))
32680 if v != nil {
32681 v[mk] = mv
32682 }
32683 }
32684 dd.ReadMapEnd()
32685 return v, changed
32686 }
32687
32688 func (d *Decoder) fastpathDecMapBoolInt16R(f *codecFnInfo, rv reflect.Value) {
32689 if rv.Kind() == reflect.Ptr {
32690 vp := rv2i(rv).(*map[bool]int16)
32691 if v, changed := fastpathTV.DecMapBoolInt16V(*vp, true, d); changed {
32692 *vp = v
32693 }
32694 return
32695 }
32696 fastpathTV.DecMapBoolInt16V(rv2i(rv).(map[bool]int16), false, d)
32697 }
32698 func (f fastpathT) DecMapBoolInt16X(vp *map[bool]int16, d *Decoder) {
32699 if v, changed := f.DecMapBoolInt16V(*vp, true, d); changed {
32700 *vp = v
32701 }
32702 }
32703 func (_ fastpathT) DecMapBoolInt16V(v map[bool]int16, canChange bool,
32704 d *Decoder) (_ map[bool]int16, changed bool) {
32705 dd, esep := d.d, d.hh.hasElemSeparators()
32706
32707 containerLen := dd.ReadMapStart()
32708 if canChange && v == nil {
32709 xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
32710 v = make(map[bool]int16, xlen)
32711 changed = true
32712 }
32713 if containerLen == 0 {
32714 dd.ReadMapEnd()
32715 return v, changed
32716 }
32717
32718 var mk bool
32719 var mv int16
32720 hasLen := containerLen > 0
32721 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
32722 if esep {
32723 dd.ReadMapElemKey()
32724 }
32725 mk = dd.DecodeBool()
32726 if esep {
32727 dd.ReadMapElemValue()
32728 }
32729 if dd.TryDecodeAsNil() {
32730 if d.h.DeleteOnNilMapValue {
32731 delete(v, mk)
32732 } else {
32733 v[mk] = 0
32734 }
32735 continue
32736 }
32737 mv = int16(dd.DecodeInt(16))
32738 if v != nil {
32739 v[mk] = mv
32740 }
32741 }
32742 dd.ReadMapEnd()
32743 return v, changed
32744 }
32745
32746 func (d *Decoder) fastpathDecMapBoolInt32R(f *codecFnInfo, rv reflect.Value) {
32747 if rv.Kind() == reflect.Ptr {
32748 vp := rv2i(rv).(*map[bool]int32)
32749 if v, changed := fastpathTV.DecMapBoolInt32V(*vp, true, d); changed {
32750 *vp = v
32751 }
32752 return
32753 }
32754 fastpathTV.DecMapBoolInt32V(rv2i(rv).(map[bool]int32), false, d)
32755 }
32756 func (f fastpathT) DecMapBoolInt32X(vp *map[bool]int32, d *Decoder) {
32757 if v, changed := f.DecMapBoolInt32V(*vp, true, d); changed {
32758 *vp = v
32759 }
32760 }
32761 func (_ fastpathT) DecMapBoolInt32V(v map[bool]int32, canChange bool,
32762 d *Decoder) (_ map[bool]int32, changed bool) {
32763 dd, esep := d.d, d.hh.hasElemSeparators()
32764
32765 containerLen := dd.ReadMapStart()
32766 if canChange && v == nil {
32767 xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
32768 v = make(map[bool]int32, xlen)
32769 changed = true
32770 }
32771 if containerLen == 0 {
32772 dd.ReadMapEnd()
32773 return v, changed
32774 }
32775
32776 var mk bool
32777 var mv int32
32778 hasLen := containerLen > 0
32779 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
32780 if esep {
32781 dd.ReadMapElemKey()
32782 }
32783 mk = dd.DecodeBool()
32784 if esep {
32785 dd.ReadMapElemValue()
32786 }
32787 if dd.TryDecodeAsNil() {
32788 if d.h.DeleteOnNilMapValue {
32789 delete(v, mk)
32790 } else {
32791 v[mk] = 0
32792 }
32793 continue
32794 }
32795 mv = int32(dd.DecodeInt(32))
32796 if v != nil {
32797 v[mk] = mv
32798 }
32799 }
32800 dd.ReadMapEnd()
32801 return v, changed
32802 }
32803
32804 func (d *Decoder) fastpathDecMapBoolInt64R(f *codecFnInfo, rv reflect.Value) {
32805 if rv.Kind() == reflect.Ptr {
32806 vp := rv2i(rv).(*map[bool]int64)
32807 if v, changed := fastpathTV.DecMapBoolInt64V(*vp, true, d); changed {
32808 *vp = v
32809 }
32810 return
32811 }
32812 fastpathTV.DecMapBoolInt64V(rv2i(rv).(map[bool]int64), false, d)
32813 }
32814 func (f fastpathT) DecMapBoolInt64X(vp *map[bool]int64, d *Decoder) {
32815 if v, changed := f.DecMapBoolInt64V(*vp, true, d); changed {
32816 *vp = v
32817 }
32818 }
32819 func (_ fastpathT) DecMapBoolInt64V(v map[bool]int64, canChange bool,
32820 d *Decoder) (_ map[bool]int64, changed bool) {
32821 dd, esep := d.d, d.hh.hasElemSeparators()
32822
32823 containerLen := dd.ReadMapStart()
32824 if canChange && v == nil {
32825 xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
32826 v = make(map[bool]int64, xlen)
32827 changed = true
32828 }
32829 if containerLen == 0 {
32830 dd.ReadMapEnd()
32831 return v, changed
32832 }
32833
32834 var mk bool
32835 var mv int64
32836 hasLen := containerLen > 0
32837 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
32838 if esep {
32839 dd.ReadMapElemKey()
32840 }
32841 mk = dd.DecodeBool()
32842 if esep {
32843 dd.ReadMapElemValue()
32844 }
32845 if dd.TryDecodeAsNil() {
32846 if d.h.DeleteOnNilMapValue {
32847 delete(v, mk)
32848 } else {
32849 v[mk] = 0
32850 }
32851 continue
32852 }
32853 mv = dd.DecodeInt(64)
32854 if v != nil {
32855 v[mk] = mv
32856 }
32857 }
32858 dd.ReadMapEnd()
32859 return v, changed
32860 }
32861
32862 func (d *Decoder) fastpathDecMapBoolFloat32R(f *codecFnInfo, rv reflect.Value) {
32863 if rv.Kind() == reflect.Ptr {
32864 vp := rv2i(rv).(*map[bool]float32)
32865 if v, changed := fastpathTV.DecMapBoolFloat32V(*vp, true, d); changed {
32866 *vp = v
32867 }
32868 return
32869 }
32870 fastpathTV.DecMapBoolFloat32V(rv2i(rv).(map[bool]float32), false, d)
32871 }
32872 func (f fastpathT) DecMapBoolFloat32X(vp *map[bool]float32, d *Decoder) {
32873 if v, changed := f.DecMapBoolFloat32V(*vp, true, d); changed {
32874 *vp = v
32875 }
32876 }
32877 func (_ fastpathT) DecMapBoolFloat32V(v map[bool]float32, canChange bool,
32878 d *Decoder) (_ map[bool]float32, changed bool) {
32879 dd, esep := d.d, d.hh.hasElemSeparators()
32880
32881 containerLen := dd.ReadMapStart()
32882 if canChange && v == nil {
32883 xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
32884 v = make(map[bool]float32, xlen)
32885 changed = true
32886 }
32887 if containerLen == 0 {
32888 dd.ReadMapEnd()
32889 return v, changed
32890 }
32891
32892 var mk bool
32893 var mv float32
32894 hasLen := containerLen > 0
32895 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
32896 if esep {
32897 dd.ReadMapElemKey()
32898 }
32899 mk = dd.DecodeBool()
32900 if esep {
32901 dd.ReadMapElemValue()
32902 }
32903 if dd.TryDecodeAsNil() {
32904 if d.h.DeleteOnNilMapValue {
32905 delete(v, mk)
32906 } else {
32907 v[mk] = 0
32908 }
32909 continue
32910 }
32911 mv = float32(dd.DecodeFloat(true))
32912 if v != nil {
32913 v[mk] = mv
32914 }
32915 }
32916 dd.ReadMapEnd()
32917 return v, changed
32918 }
32919
32920 func (d *Decoder) fastpathDecMapBoolFloat64R(f *codecFnInfo, rv reflect.Value) {
32921 if rv.Kind() == reflect.Ptr {
32922 vp := rv2i(rv).(*map[bool]float64)
32923 if v, changed := fastpathTV.DecMapBoolFloat64V(*vp, true, d); changed {
32924 *vp = v
32925 }
32926 return
32927 }
32928 fastpathTV.DecMapBoolFloat64V(rv2i(rv).(map[bool]float64), false, d)
32929 }
32930 func (f fastpathT) DecMapBoolFloat64X(vp *map[bool]float64, d *Decoder) {
32931 if v, changed := f.DecMapBoolFloat64V(*vp, true, d); changed {
32932 *vp = v
32933 }
32934 }
32935 func (_ fastpathT) DecMapBoolFloat64V(v map[bool]float64, canChange bool,
32936 d *Decoder) (_ map[bool]float64, changed bool) {
32937 dd, esep := d.d, d.hh.hasElemSeparators()
32938
32939 containerLen := dd.ReadMapStart()
32940 if canChange && v == nil {
32941 xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
32942 v = make(map[bool]float64, xlen)
32943 changed = true
32944 }
32945 if containerLen == 0 {
32946 dd.ReadMapEnd()
32947 return v, changed
32948 }
32949
32950 var mk bool
32951 var mv float64
32952 hasLen := containerLen > 0
32953 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
32954 if esep {
32955 dd.ReadMapElemKey()
32956 }
32957 mk = dd.DecodeBool()
32958 if esep {
32959 dd.ReadMapElemValue()
32960 }
32961 if dd.TryDecodeAsNil() {
32962 if d.h.DeleteOnNilMapValue {
32963 delete(v, mk)
32964 } else {
32965 v[mk] = 0
32966 }
32967 continue
32968 }
32969 mv = dd.DecodeFloat(false)
32970 if v != nil {
32971 v[mk] = mv
32972 }
32973 }
32974 dd.ReadMapEnd()
32975 return v, changed
32976 }
32977
32978 func (d *Decoder) fastpathDecMapBoolBoolR(f *codecFnInfo, rv reflect.Value) {
32979 if rv.Kind() == reflect.Ptr {
32980 vp := rv2i(rv).(*map[bool]bool)
32981 if v, changed := fastpathTV.DecMapBoolBoolV(*vp, true, d); changed {
32982 *vp = v
32983 }
32984 return
32985 }
32986 fastpathTV.DecMapBoolBoolV(rv2i(rv).(map[bool]bool), false, d)
32987 }
32988 func (f fastpathT) DecMapBoolBoolX(vp *map[bool]bool, d *Decoder) {
32989 if v, changed := f.DecMapBoolBoolV(*vp, true, d); changed {
32990 *vp = v
32991 }
32992 }
32993 func (_ fastpathT) DecMapBoolBoolV(v map[bool]bool, canChange bool,
32994 d *Decoder) (_ map[bool]bool, changed bool) {
32995 dd, esep := d.d, d.hh.hasElemSeparators()
32996
32997 containerLen := dd.ReadMapStart()
32998 if canChange && v == nil {
32999 xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
33000 v = make(map[bool]bool, xlen)
33001 changed = true
33002 }
33003 if containerLen == 0 {
33004 dd.ReadMapEnd()
33005 return v, changed
33006 }
33007
33008 var mk bool
33009 var mv bool
33010 hasLen := containerLen > 0
33011 for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
33012 if esep {
33013 dd.ReadMapElemKey()
33014 }
33015 mk = dd.DecodeBool()
33016 if esep {
33017 dd.ReadMapElemValue()
33018 }
33019 if dd.TryDecodeAsNil() {
33020 if d.h.DeleteOnNilMapValue {
33021 delete(v, mk)
33022 } else {
33023 v[mk] = false
33024 }
33025 continue
33026 }
33027 mv = dd.DecodeBool()
33028 if v != nil {
33029 v[mk] = mv
33030 }
33031 }
33032 dd.ReadMapEnd()
33033 return v, changed
33034 }