1 /*
2 * Copyright 2015 gRPC authors.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17 /*
18 * WARNING: Auto-generated code.
19 *
20 * To make changes to this file, change
21 * tools/codegen/core/gen_static_metadata.py, and then re-run it.
22 *
23 * See metadata.h for an explanation of the interface here, and metadata.cc for
24 * an explanation of what's going on.
25 */
26
27 #include <grpc/support/port_platform.h>
28
29 #include "src/core/lib/transport/static_metadata.h"
30
31 #include "src/core/lib/slice/slice_internal.h"
32
33 static constexpr uint8_t g_bytes[] = {
34 58, 112, 97, 116, 104, 58, 109, 101, 116, 104, 111, 100, 58, 115, 116,
35 97, 116, 117, 115, 58, 97, 117, 116, 104, 111, 114, 105, 116, 121, 58,
36 115, 99, 104, 101, 109, 101, 116, 101, 103, 114, 112, 99, 45, 109, 101,
37 115, 115, 97, 103, 101, 103, 114, 112, 99, 45, 115, 116, 97, 116, 117,
38 115, 103, 114, 112, 99, 45, 112, 97, 121, 108, 111, 97, 100, 45, 98,
39 105, 110, 103, 114, 112, 99, 45, 101, 110, 99, 111, 100, 105, 110, 103,
40 103, 114, 112, 99, 45, 97, 99, 99, 101, 112, 116, 45, 101, 110, 99,
41 111, 100, 105, 110, 103, 103, 114, 112, 99, 45, 115, 101, 114, 118, 101,
42 114, 45, 115, 116, 97, 116, 115, 45, 98, 105, 110, 103, 114, 112, 99,
43 45, 116, 97, 103, 115, 45, 98, 105, 110, 103, 114, 112, 99, 45, 116,
44 114, 97, 99, 101, 45, 98, 105, 110, 99, 111, 110, 116, 101, 110, 116,
45 45, 116, 121, 112, 101, 99, 111, 110, 116, 101, 110, 116, 45, 101, 110,
46 99, 111, 100, 105, 110, 103, 97, 99, 99, 101, 112, 116, 45, 101, 110,
47 99, 111, 100, 105, 110, 103, 103, 114, 112, 99, 45, 105, 110, 116, 101,
48 114, 110, 97, 108, 45, 101, 110, 99, 111, 100, 105, 110, 103, 45, 114,
49 101, 113, 117, 101, 115, 116, 103, 114, 112, 99, 45, 105, 110, 116, 101,
50 114, 110, 97, 108, 45, 115, 116, 114, 101, 97, 109, 45, 101, 110, 99,
51 111, 100, 105, 110, 103, 45, 114, 101, 113, 117, 101, 115, 116, 117, 115,
52 101, 114, 45, 97, 103, 101, 110, 116, 104, 111, 115, 116, 103, 114, 112,
53 99, 45, 112, 114, 101, 118, 105, 111, 117, 115, 45, 114, 112, 99, 45,
54 97, 116, 116, 101, 109, 112, 116, 115, 103, 114, 112, 99, 45, 114, 101,
55 116, 114, 121, 45, 112, 117, 115, 104, 98, 97, 99, 107, 45, 109, 115,
56 120, 45, 101, 110, 100, 112, 111, 105, 110, 116, 45, 108, 111, 97, 100,
57 45, 109, 101, 116, 114, 105, 99, 115, 45, 98, 105, 110, 103, 114, 112,
58 99, 45, 116, 105, 109, 101, 111, 117, 116, 49, 50, 51, 52, 103, 114,
59 112, 99, 46, 119, 97, 105, 116, 95, 102, 111, 114, 95, 114, 101, 97,
60 100, 121, 103, 114, 112, 99, 46, 116, 105, 109, 101, 111, 117, 116, 103,
61 114, 112, 99, 46, 109, 97, 120, 95, 114, 101, 113, 117, 101, 115, 116,
62 95, 109, 101, 115, 115, 97, 103, 101, 95, 98, 121, 116, 101, 115, 103,
63 114, 112, 99, 46, 109, 97, 120, 95, 114, 101, 115, 112, 111, 110, 115,
64 101, 95, 109, 101, 115, 115, 97, 103, 101, 95, 98, 121, 116, 101, 115,
65 47, 103, 114, 112, 99, 46, 108, 98, 46, 118, 49, 46, 76, 111, 97,
66 100, 66, 97, 108, 97, 110, 99, 101, 114, 47, 66, 97, 108, 97, 110,
67 99, 101, 76, 111, 97, 100, 47, 101, 110, 118, 111, 121, 46, 115, 101,
68 114, 118, 105, 99, 101, 46, 108, 111, 97, 100, 95, 115, 116, 97, 116,
69 115, 46, 118, 50, 46, 76, 111, 97, 100, 82, 101, 112, 111, 114, 116,
70 105, 110, 103, 83, 101, 114, 118, 105, 99, 101, 47, 83, 116, 114, 101,
71 97, 109, 76, 111, 97, 100, 83, 116, 97, 116, 115, 47, 101, 110, 118,
72 111, 121, 46, 115, 101, 114, 118, 105, 99, 101, 46, 108, 111, 97, 100,
73 95, 115, 116, 97, 116, 115, 46, 118, 51, 46, 76, 111, 97, 100, 82,
74 101, 112, 111, 114, 116, 105, 110, 103, 83, 101, 114, 118, 105, 99, 101,
75 47, 83, 116, 114, 101, 97, 109, 76, 111, 97, 100, 83, 116, 97, 116,
76 115, 47, 103, 114, 112, 99, 46, 104, 101, 97, 108, 116, 104, 46, 118,
77 49, 46, 72, 101, 97, 108, 116, 104, 47, 87, 97, 116, 99, 104, 47,
78 101, 110, 118, 111, 121, 46, 115, 101, 114, 118, 105, 99, 101, 46, 100,
79 105, 115, 99, 111, 118, 101, 114, 121, 46, 118, 50, 46, 65, 103, 103,
80 114, 101, 103, 97, 116, 101, 100, 68, 105, 115, 99, 111, 118, 101, 114,
81 121, 83, 101, 114, 118, 105, 99, 101, 47, 83, 116, 114, 101, 97, 109,
82 65, 103, 103, 114, 101, 103, 97, 116, 101, 100, 82, 101, 115, 111, 117,
83 114, 99, 101, 115, 47, 101, 110, 118, 111, 121, 46, 115, 101, 114, 118,
84 105, 99, 101, 46, 100, 105, 115, 99, 111, 118, 101, 114, 121, 46, 118,
85 51, 46, 65, 103, 103, 114, 101, 103, 97, 116, 101, 100, 68, 105, 115,
86 99, 111, 118, 101, 114, 121, 83, 101, 114, 118, 105, 99, 101, 47, 83,
87 116, 114, 101, 97, 109, 65, 103, 103, 114, 101, 103, 97, 116, 101, 100,
88 82, 101, 115, 111, 117, 114, 99, 101, 115, 100, 101, 102, 108, 97, 116,
89 101, 103, 122, 105, 112, 115, 116, 114, 101, 97, 109, 47, 103, 122, 105,
90 112, 71, 69, 84, 80, 79, 83, 84, 47, 47, 105, 110, 100, 101, 120,
91 46, 104, 116, 109, 108, 104, 116, 116, 112, 104, 116, 116, 112, 115, 50,
92 48, 48, 50, 48, 52, 50, 48, 54, 51, 48, 52, 52, 48, 48, 52,
93 48, 52, 53, 48, 48, 97, 99, 99, 101, 112, 116, 45, 99, 104, 97,
94 114, 115, 101, 116, 103, 122, 105, 112, 44, 32, 100, 101, 102, 108, 97,
95 116, 101, 97, 99, 99, 101, 112, 116, 45, 108, 97, 110, 103, 117, 97,
96 103, 101, 97, 99, 99, 101, 112, 116, 45, 114, 97, 110, 103, 101, 115,
97 97, 99, 99, 101, 112, 116, 97, 99, 99, 101, 115, 115, 45, 99, 111,
98 110, 116, 114, 111, 108, 45, 97, 108, 108, 111, 119, 45, 111, 114, 105,
99 103, 105, 110, 97, 103, 101, 97, 108, 108, 111, 119, 97, 117, 116, 104,
100 111, 114, 105, 122, 97, 116, 105, 111, 110, 99, 97, 99, 104, 101, 45,
101 99, 111, 110, 116, 114, 111, 108, 99, 111, 110, 116, 101, 110, 116, 45,
102 100, 105, 115, 112, 111, 115, 105, 116, 105, 111, 110, 99, 111, 110, 116,
103 101, 110, 116, 45, 108, 97, 110, 103, 117, 97, 103, 101, 99, 111, 110,
104 116, 101, 110, 116, 45, 108, 101, 110, 103, 116, 104, 99, 111, 110, 116,
105 101, 110, 116, 45, 108, 111, 99, 97, 116, 105, 111, 110, 99, 111, 110,
106 116, 101, 110, 116, 45, 114, 97, 110, 103, 101, 99, 111, 111, 107, 105,
107 101, 100, 97, 116, 101, 101, 116, 97, 103, 101, 120, 112, 101, 99, 116,
108 101, 120, 112, 105, 114, 101, 115, 102, 114, 111, 109, 105, 102, 45, 109,
109 97, 116, 99, 104, 105, 102, 45, 109, 111, 100, 105, 102, 105, 101, 100,
110 45, 115, 105, 110, 99, 101, 105, 102, 45, 110, 111, 110, 101, 45, 109,
111 97, 116, 99, 104, 105, 102, 45, 114, 97, 110, 103, 101, 105, 102, 45,
112 117, 110, 109, 111, 100, 105, 102, 105, 101, 100, 45, 115, 105, 110, 99,
113 101, 108, 97, 115, 116, 45, 109, 111, 100, 105, 102, 105, 101, 100, 108,
114 105, 110, 107, 108, 111, 99, 97, 116, 105, 111, 110, 109, 97, 120, 45,
115 102, 111, 114, 119, 97, 114, 100, 115, 112, 114, 111, 120, 121, 45, 97,
116 117, 116, 104, 101, 110, 116, 105, 99, 97, 116, 101, 112, 114, 111, 120,
117 121, 45, 97, 117, 116, 104, 111, 114, 105, 122, 97, 116, 105, 111, 110,
118 114, 97, 110, 103, 101, 114, 101, 102, 101, 114, 101, 114, 114, 101, 102,
119 114, 101, 115, 104, 114, 101, 116, 114, 121, 45, 97, 102, 116, 101, 114,
120 115, 101, 114, 118, 101, 114, 115, 101, 116, 45, 99, 111, 111, 107, 105,
121 101, 115, 116, 114, 105, 99, 116, 45, 116, 114, 97, 110, 115, 112, 111,
122 114, 116, 45, 115, 101, 99, 117, 114, 105, 116, 121, 116, 114, 97, 110,
123 115, 102, 101, 114, 45, 101, 110, 99, 111, 100, 105, 110, 103, 118, 97,
124 114, 121, 118, 105, 97, 119, 119, 119, 45, 97, 117, 116, 104, 101, 110,
125 116, 105, 99, 97, 116, 101, 48, 105, 100, 101, 110, 116, 105, 116, 121,
126 116, 114, 97, 105, 108, 101, 114, 115, 97, 112, 112, 108, 105, 99, 97,
127 116, 105, 111, 110, 47, 103, 114, 112, 99, 103, 114, 112, 99, 80, 85,
128 84, 108, 98, 45, 99, 111, 115, 116, 45, 98, 105, 110, 105, 100, 101,
129 110, 116, 105, 116, 121, 44, 100, 101, 102, 108, 97, 116, 101, 105, 100,
130 101, 110, 116, 105, 116, 121, 44, 103, 122, 105, 112, 100, 101, 102, 108,
131 97, 116, 101, 44, 103, 122, 105, 112, 105, 100, 101, 110, 116, 105, 116,
132 121, 44, 100, 101, 102, 108, 97, 116, 101, 44, 103, 122, 105, 112};
133
134 grpc_slice_refcount grpc_core::StaticSliceRefcount::kStaticSubRefcount;
135
136 namespace grpc_core {
137 struct StaticMetadataCtx {
138 #ifndef NDEBUG
139 const uint64_t init_canary = kGrpcStaticMetadataInitCanary;
140 #endif
141 StaticSliceRefcount refcounts[GRPC_STATIC_MDSTR_COUNT] = {
142
143 StaticSliceRefcount(0), StaticSliceRefcount(1),
144 StaticSliceRefcount(2), StaticSliceRefcount(3),
145 StaticSliceRefcount(4), StaticSliceRefcount(5),
146 StaticSliceRefcount(6), StaticSliceRefcount(7),
147 StaticSliceRefcount(8), StaticSliceRefcount(9),
148 StaticSliceRefcount(10), StaticSliceRefcount(11),
149 StaticSliceRefcount(12), StaticSliceRefcount(13),
150 StaticSliceRefcount(14), StaticSliceRefcount(15),
151 StaticSliceRefcount(16), StaticSliceRefcount(17),
152 StaticSliceRefcount(18), StaticSliceRefcount(19),
153 StaticSliceRefcount(20), StaticSliceRefcount(21),
154 StaticSliceRefcount(22), StaticSliceRefcount(23),
155 StaticSliceRefcount(24), StaticSliceRefcount(25),
156 StaticSliceRefcount(26), StaticSliceRefcount(27),
157 StaticSliceRefcount(28), StaticSliceRefcount(29),
158 StaticSliceRefcount(30), StaticSliceRefcount(31),
159 StaticSliceRefcount(32), StaticSliceRefcount(33),
160 StaticSliceRefcount(34), StaticSliceRefcount(35),
161 StaticSliceRefcount(36), StaticSliceRefcount(37),
162 StaticSliceRefcount(38), StaticSliceRefcount(39),
163 StaticSliceRefcount(40), StaticSliceRefcount(41),
164 StaticSliceRefcount(42), StaticSliceRefcount(43),
165 StaticSliceRefcount(44), StaticSliceRefcount(45),
166 StaticSliceRefcount(46), StaticSliceRefcount(47),
167 StaticSliceRefcount(48), StaticSliceRefcount(49),
168 StaticSliceRefcount(50), StaticSliceRefcount(51),
169 StaticSliceRefcount(52), StaticSliceRefcount(53),
170 StaticSliceRefcount(54), StaticSliceRefcount(55),
171 StaticSliceRefcount(56), StaticSliceRefcount(57),
172 StaticSliceRefcount(58), StaticSliceRefcount(59),
173 StaticSliceRefcount(60), StaticSliceRefcount(61),
174 StaticSliceRefcount(62), StaticSliceRefcount(63),
175 StaticSliceRefcount(64), StaticSliceRefcount(65),
176 StaticSliceRefcount(66), StaticSliceRefcount(67),
177 StaticSliceRefcount(68), StaticSliceRefcount(69),
178 StaticSliceRefcount(70), StaticSliceRefcount(71),
179 StaticSliceRefcount(72), StaticSliceRefcount(73),
180 StaticSliceRefcount(74), StaticSliceRefcount(75),
181 StaticSliceRefcount(76), StaticSliceRefcount(77),
182 StaticSliceRefcount(78), StaticSliceRefcount(79),
183 StaticSliceRefcount(80), StaticSliceRefcount(81),
184 StaticSliceRefcount(82), StaticSliceRefcount(83),
185 StaticSliceRefcount(84), StaticSliceRefcount(85),
186 StaticSliceRefcount(86), StaticSliceRefcount(87),
187 StaticSliceRefcount(88), StaticSliceRefcount(89),
188 StaticSliceRefcount(90), StaticSliceRefcount(91),
189 StaticSliceRefcount(92), StaticSliceRefcount(93),
190 StaticSliceRefcount(94), StaticSliceRefcount(95),
191 StaticSliceRefcount(96), StaticSliceRefcount(97),
192 StaticSliceRefcount(98), StaticSliceRefcount(99),
193 StaticSliceRefcount(100), StaticSliceRefcount(101),
194 StaticSliceRefcount(102), StaticSliceRefcount(103),
195 StaticSliceRefcount(104), StaticSliceRefcount(105),
196 StaticSliceRefcount(106), StaticSliceRefcount(107),
197 StaticSliceRefcount(108), StaticSliceRefcount(109),
198 };
199
200 const StaticMetadataSlice slices[GRPC_STATIC_MDSTR_COUNT] = {
201
202 grpc_core::StaticMetadataSlice(&refcounts[0].base, 5, g_bytes + 0),
203 grpc_core::StaticMetadataSlice(&refcounts[1].base, 7, g_bytes + 5),
204 grpc_core::StaticMetadataSlice(&refcounts[2].base, 7, g_bytes + 12),
205 grpc_core::StaticMetadataSlice(&refcounts[3].base, 10, g_bytes + 19),
206 grpc_core::StaticMetadataSlice(&refcounts[4].base, 7, g_bytes + 29),
207 grpc_core::StaticMetadataSlice(&refcounts[5].base, 2, g_bytes + 36),
208 grpc_core::StaticMetadataSlice(&refcounts[6].base, 12, g_bytes + 38),
209 grpc_core::StaticMetadataSlice(&refcounts[7].base, 11, g_bytes + 50),
210 grpc_core::StaticMetadataSlice(&refcounts[8].base, 16, g_bytes + 61),
211 grpc_core::StaticMetadataSlice(&refcounts[9].base, 13, g_bytes + 77),
212 grpc_core::StaticMetadataSlice(&refcounts[10].base, 20, g_bytes + 90),
213 grpc_core::StaticMetadataSlice(&refcounts[11].base, 21, g_bytes + 110),
214 grpc_core::StaticMetadataSlice(&refcounts[12].base, 13, g_bytes + 131),
215 grpc_core::StaticMetadataSlice(&refcounts[13].base, 14, g_bytes + 144),
216 grpc_core::StaticMetadataSlice(&refcounts[14].base, 12, g_bytes + 158),
217 grpc_core::StaticMetadataSlice(&refcounts[15].base, 16, g_bytes + 170),
218 grpc_core::StaticMetadataSlice(&refcounts[16].base, 15, g_bytes + 186),
219 grpc_core::StaticMetadataSlice(&refcounts[17].base, 30, g_bytes + 201),
220 grpc_core::StaticMetadataSlice(&refcounts[18].base, 37, g_bytes + 231),
221 grpc_core::StaticMetadataSlice(&refcounts[19].base, 10, g_bytes + 268),
222 grpc_core::StaticMetadataSlice(&refcounts[20].base, 4, g_bytes + 278),
223 grpc_core::StaticMetadataSlice(&refcounts[21].base, 26, g_bytes + 282),
224 grpc_core::StaticMetadataSlice(&refcounts[22].base, 22, g_bytes + 308),
225 grpc_core::StaticMetadataSlice(&refcounts[23].base, 27, g_bytes + 330),
226 grpc_core::StaticMetadataSlice(&refcounts[24].base, 12, g_bytes + 357),
227 grpc_core::StaticMetadataSlice(&refcounts[25].base, 1, g_bytes + 369),
228 grpc_core::StaticMetadataSlice(&refcounts[26].base, 1, g_bytes + 370),
229 grpc_core::StaticMetadataSlice(&refcounts[27].base, 1, g_bytes + 371),
230 grpc_core::StaticMetadataSlice(&refcounts[28].base, 1, g_bytes + 372),
231 grpc_core::StaticMetadataSlice(&refcounts[29].base, 0, g_bytes + 373),
232 grpc_core::StaticMetadataSlice(&refcounts[30].base, 19, g_bytes + 373),
233 grpc_core::StaticMetadataSlice(&refcounts[31].base, 12, g_bytes + 392),
234 grpc_core::StaticMetadataSlice(&refcounts[32].base, 30, g_bytes + 404),
235 grpc_core::StaticMetadataSlice(&refcounts[33].base, 31, g_bytes + 434),
236 grpc_core::StaticMetadataSlice(&refcounts[34].base, 36, g_bytes + 465),
237 grpc_core::StaticMetadataSlice(&refcounts[35].base, 65, g_bytes + 501),
238 grpc_core::StaticMetadataSlice(&refcounts[36].base, 65, g_bytes + 566),
239 grpc_core::StaticMetadataSlice(&refcounts[37].base, 28, g_bytes + 631),
240 grpc_core::StaticMetadataSlice(&refcounts[38].base, 80, g_bytes + 659),
241 grpc_core::StaticMetadataSlice(&refcounts[39].base, 80, g_bytes + 739),
242 grpc_core::StaticMetadataSlice(&refcounts[40].base, 7, g_bytes + 819),
243 grpc_core::StaticMetadataSlice(&refcounts[41].base, 4, g_bytes + 826),
244 grpc_core::StaticMetadataSlice(&refcounts[42].base, 11, g_bytes + 830),
245 grpc_core::StaticMetadataSlice(&refcounts[43].base, 3, g_bytes + 841),
246 grpc_core::StaticMetadataSlice(&refcounts[44].base, 4, g_bytes + 844),
247 grpc_core::StaticMetadataSlice(&refcounts[45].base, 1, g_bytes + 848),
248 grpc_core::StaticMetadataSlice(&refcounts[46].base, 11, g_bytes + 849),
249 grpc_core::StaticMetadataSlice(&refcounts[47].base, 4, g_bytes + 860),
250 grpc_core::StaticMetadataSlice(&refcounts[48].base, 5, g_bytes + 864),
251 grpc_core::StaticMetadataSlice(&refcounts[49].base, 3, g_bytes + 869),
252 grpc_core::StaticMetadataSlice(&refcounts[50].base, 3, g_bytes + 872),
253 grpc_core::StaticMetadataSlice(&refcounts[51].base, 3, g_bytes + 875),
254 grpc_core::StaticMetadataSlice(&refcounts[52].base, 3, g_bytes + 878),
255 grpc_core::StaticMetadataSlice(&refcounts[53].base, 3, g_bytes + 881),
256 grpc_core::StaticMetadataSlice(&refcounts[54].base, 3, g_bytes + 884),
257 grpc_core::StaticMetadataSlice(&refcounts[55].base, 3, g_bytes + 887),
258 grpc_core::StaticMetadataSlice(&refcounts[56].base, 14, g_bytes + 890),
259 grpc_core::StaticMetadataSlice(&refcounts[57].base, 13, g_bytes + 904),
260 grpc_core::StaticMetadataSlice(&refcounts[58].base, 15, g_bytes + 917),
261 grpc_core::StaticMetadataSlice(&refcounts[59].base, 13, g_bytes + 932),
262 grpc_core::StaticMetadataSlice(&refcounts[60].base, 6, g_bytes + 945),
263 grpc_core::StaticMetadataSlice(&refcounts[61].base, 27, g_bytes + 951),
264 grpc_core::StaticMetadataSlice(&refcounts[62].base, 3, g_bytes + 978),
265 grpc_core::StaticMetadataSlice(&refcounts[63].base, 5, g_bytes + 981),
266 grpc_core::StaticMetadataSlice(&refcounts[64].base, 13, g_bytes + 986),
267 grpc_core::StaticMetadataSlice(&refcounts[65].base, 13, g_bytes + 999),
268 grpc_core::StaticMetadataSlice(&refcounts[66].base, 19, g_bytes + 1012),
269 grpc_core::StaticMetadataSlice(&refcounts[67].base, 16, g_bytes + 1031),
270 grpc_core::StaticMetadataSlice(&refcounts[68].base, 14, g_bytes + 1047),
271 grpc_core::StaticMetadataSlice(&refcounts[69].base, 16, g_bytes + 1061),
272 grpc_core::StaticMetadataSlice(&refcounts[70].base, 13, g_bytes + 1077),
273 grpc_core::StaticMetadataSlice(&refcounts[71].base, 6, g_bytes + 1090),
274 grpc_core::StaticMetadataSlice(&refcounts[72].base, 4, g_bytes + 1096),
275 grpc_core::StaticMetadataSlice(&refcounts[73].base, 4, g_bytes + 1100),
276 grpc_core::StaticMetadataSlice(&refcounts[74].base, 6, g_bytes + 1104),
277 grpc_core::StaticMetadataSlice(&refcounts[75].base, 7, g_bytes + 1110),
278 grpc_core::StaticMetadataSlice(&refcounts[76].base, 4, g_bytes + 1117),
279 grpc_core::StaticMetadataSlice(&refcounts[77].base, 8, g_bytes + 1121),
280 grpc_core::StaticMetadataSlice(&refcounts[78].base, 17, g_bytes + 1129),
281 grpc_core::StaticMetadataSlice(&refcounts[79].base, 13, g_bytes + 1146),
282 grpc_core::StaticMetadataSlice(&refcounts[80].base, 8, g_bytes + 1159),
283 grpc_core::StaticMetadataSlice(&refcounts[81].base, 19, g_bytes + 1167),
284 grpc_core::StaticMetadataSlice(&refcounts[82].base, 13, g_bytes + 1186),
285 grpc_core::StaticMetadataSlice(&refcounts[83].base, 4, g_bytes + 1199),
286 grpc_core::StaticMetadataSlice(&refcounts[84].base, 8, g_bytes + 1203),
287 grpc_core::StaticMetadataSlice(&refcounts[85].base, 12, g_bytes + 1211),
288 grpc_core::StaticMetadataSlice(&refcounts[86].base, 18, g_bytes + 1223),
289 grpc_core::StaticMetadataSlice(&refcounts[87].base, 19, g_bytes + 1241),
290 grpc_core::StaticMetadataSlice(&refcounts[88].base, 5, g_bytes + 1260),
291 grpc_core::StaticMetadataSlice(&refcounts[89].base, 7, g_bytes + 1265),
292 grpc_core::StaticMetadataSlice(&refcounts[90].base, 7, g_bytes + 1272),
293 grpc_core::StaticMetadataSlice(&refcounts[91].base, 11, g_bytes + 1279),
294 grpc_core::StaticMetadataSlice(&refcounts[92].base, 6, g_bytes + 1290),
295 grpc_core::StaticMetadataSlice(&refcounts[93].base, 10, g_bytes + 1296),
296 grpc_core::StaticMetadataSlice(&refcounts[94].base, 25, g_bytes + 1306),
297 grpc_core::StaticMetadataSlice(&refcounts[95].base, 17, g_bytes + 1331),
298 grpc_core::StaticMetadataSlice(&refcounts[96].base, 4, g_bytes + 1348),
299 grpc_core::StaticMetadataSlice(&refcounts[97].base, 3, g_bytes + 1352),
300 grpc_core::StaticMetadataSlice(&refcounts[98].base, 16, g_bytes + 1355),
301 grpc_core::StaticMetadataSlice(&refcounts[99].base, 1, g_bytes + 1371),
302 grpc_core::StaticMetadataSlice(&refcounts[100].base, 8, g_bytes + 1372),
303 grpc_core::StaticMetadataSlice(&refcounts[101].base, 8, g_bytes + 1380),
304 grpc_core::StaticMetadataSlice(&refcounts[102].base, 16, g_bytes + 1388),
305 grpc_core::StaticMetadataSlice(&refcounts[103].base, 4, g_bytes + 1404),
306 grpc_core::StaticMetadataSlice(&refcounts[104].base, 3, g_bytes + 1408),
307 grpc_core::StaticMetadataSlice(&refcounts[105].base, 11, g_bytes + 1411),
308 grpc_core::StaticMetadataSlice(&refcounts[106].base, 16, g_bytes + 1422),
309 grpc_core::StaticMetadataSlice(&refcounts[107].base, 13, g_bytes + 1438),
310 grpc_core::StaticMetadataSlice(&refcounts[108].base, 12, g_bytes + 1451),
311 grpc_core::StaticMetadataSlice(&refcounts[109].base, 21, g_bytes + 1463),
312 };
313 StaticMetadata static_mdelem_table[GRPC_STATIC_MDELEM_COUNT] = {
314 StaticMetadata(
315 grpc_core::StaticMetadataSlice(&refcounts[3].base, 10, g_bytes + 19),
316 grpc_core::StaticMetadataSlice(&refcounts[29].base, 0, g_bytes + 373),
317 0),
318 StaticMetadata(
319 grpc_core::StaticMetadataSlice(&refcounts[1].base, 7, g_bytes + 5),
320 grpc_core::StaticMetadataSlice(&refcounts[43].base, 3, g_bytes + 841),
321 1),
322 StaticMetadata(
323 grpc_core::StaticMetadataSlice(&refcounts[1].base, 7, g_bytes + 5),
324 grpc_core::StaticMetadataSlice(&refcounts[44].base, 4, g_bytes + 844),
325 2),
326 StaticMetadata(
327 grpc_core::StaticMetadataSlice(&refcounts[0].base, 5, g_bytes + 0),
328 grpc_core::StaticMetadataSlice(&refcounts[45].base, 1, g_bytes + 848),
329 3),
330 StaticMetadata(
331 grpc_core::StaticMetadataSlice(&refcounts[0].base, 5, g_bytes + 0),
332 grpc_core::StaticMetadataSlice(&refcounts[46].base, 11,
333 g_bytes + 849),
334 4),
335 StaticMetadata(
336 grpc_core::StaticMetadataSlice(&refcounts[4].base, 7, g_bytes + 29),
337 grpc_core::StaticMetadataSlice(&refcounts[47].base, 4, g_bytes + 860),
338 5),
339 StaticMetadata(
340 grpc_core::StaticMetadataSlice(&refcounts[4].base, 7, g_bytes + 29),
341 grpc_core::StaticMetadataSlice(&refcounts[48].base, 5, g_bytes + 864),
342 6),
343 StaticMetadata(
344 grpc_core::StaticMetadataSlice(&refcounts[2].base, 7, g_bytes + 12),
345 grpc_core::StaticMetadataSlice(&refcounts[49].base, 3, g_bytes + 869),
346 7),
347 StaticMetadata(
348 grpc_core::StaticMetadataSlice(&refcounts[2].base, 7, g_bytes + 12),
349 grpc_core::StaticMetadataSlice(&refcounts[50].base, 3, g_bytes + 872),
350 8),
351 StaticMetadata(
352 grpc_core::StaticMetadataSlice(&refcounts[2].base, 7, g_bytes + 12),
353 grpc_core::StaticMetadataSlice(&refcounts[51].base, 3, g_bytes + 875),
354 9),
355 StaticMetadata(
356 grpc_core::StaticMetadataSlice(&refcounts[2].base, 7, g_bytes + 12),
357 grpc_core::StaticMetadataSlice(&refcounts[52].base, 3, g_bytes + 878),
358 10),
359 StaticMetadata(
360 grpc_core::StaticMetadataSlice(&refcounts[2].base, 7, g_bytes + 12),
361 grpc_core::StaticMetadataSlice(&refcounts[53].base, 3, g_bytes + 881),
362 11),
363 StaticMetadata(
364 grpc_core::StaticMetadataSlice(&refcounts[2].base, 7, g_bytes + 12),
365 grpc_core::StaticMetadataSlice(&refcounts[54].base, 3, g_bytes + 884),
366 12),
367 StaticMetadata(
368 grpc_core::StaticMetadataSlice(&refcounts[2].base, 7, g_bytes + 12),
369 grpc_core::StaticMetadataSlice(&refcounts[55].base, 3, g_bytes + 887),
370 13),
371 StaticMetadata(
372 grpc_core::StaticMetadataSlice(&refcounts[56].base, 14,
373 g_bytes + 890),
374 grpc_core::StaticMetadataSlice(&refcounts[29].base, 0, g_bytes + 373),
375 14),
376 StaticMetadata(grpc_core::StaticMetadataSlice(&refcounts[16].base, 15,
377 g_bytes + 186),
378 grpc_core::StaticMetadataSlice(&refcounts[57].base, 13,
379 g_bytes + 904),
380 15),
381 StaticMetadata(
382 grpc_core::StaticMetadataSlice(&refcounts[58].base, 15,
383 g_bytes + 917),
384 grpc_core::StaticMetadataSlice(&refcounts[29].base, 0, g_bytes + 373),
385 16),
386 StaticMetadata(
387 grpc_core::StaticMetadataSlice(&refcounts[59].base, 13,
388 g_bytes + 932),
389 grpc_core::StaticMetadataSlice(&refcounts[29].base, 0, g_bytes + 373),
390 17),
391 StaticMetadata(
392 grpc_core::StaticMetadataSlice(&refcounts[60].base, 6, g_bytes + 945),
393 grpc_core::StaticMetadataSlice(&refcounts[29].base, 0, g_bytes + 373),
394 18),
395 StaticMetadata(
396 grpc_core::StaticMetadataSlice(&refcounts[61].base, 27,
397 g_bytes + 951),
398 grpc_core::StaticMetadataSlice(&refcounts[29].base, 0, g_bytes + 373),
399 19),
400 StaticMetadata(
401 grpc_core::StaticMetadataSlice(&refcounts[62].base, 3, g_bytes + 978),
402 grpc_core::StaticMetadataSlice(&refcounts[29].base, 0, g_bytes + 373),
403 20),
404 StaticMetadata(
405 grpc_core::StaticMetadataSlice(&refcounts[63].base, 5, g_bytes + 981),
406 grpc_core::StaticMetadataSlice(&refcounts[29].base, 0, g_bytes + 373),
407 21),
408 StaticMetadata(
409 grpc_core::StaticMetadataSlice(&refcounts[64].base, 13,
410 g_bytes + 986),
411 grpc_core::StaticMetadataSlice(&refcounts[29].base, 0, g_bytes + 373),
412 22),
413 StaticMetadata(
414 grpc_core::StaticMetadataSlice(&refcounts[65].base, 13,
415 g_bytes + 999),
416 grpc_core::StaticMetadataSlice(&refcounts[29].base, 0, g_bytes + 373),
417 23),
418 StaticMetadata(
419 grpc_core::StaticMetadataSlice(&refcounts[66].base, 19,
420 g_bytes + 1012),
421 grpc_core::StaticMetadataSlice(&refcounts[29].base, 0, g_bytes + 373),
422 24),
423 StaticMetadata(
424 grpc_core::StaticMetadataSlice(&refcounts[15].base, 16,
425 g_bytes + 170),
426 grpc_core::StaticMetadataSlice(&refcounts[29].base, 0, g_bytes + 373),
427 25),
428 StaticMetadata(
429 grpc_core::StaticMetadataSlice(&refcounts[67].base, 16,
430 g_bytes + 1031),
431 grpc_core::StaticMetadataSlice(&refcounts[29].base, 0, g_bytes + 373),
432 26),
433 StaticMetadata(
434 grpc_core::StaticMetadataSlice(&refcounts[68].base, 14,
435 g_bytes + 1047),
436 grpc_core::StaticMetadataSlice(&refcounts[29].base, 0, g_bytes + 373),
437 27),
438 StaticMetadata(
439 grpc_core::StaticMetadataSlice(&refcounts[69].base, 16,
440 g_bytes + 1061),
441 grpc_core::StaticMetadataSlice(&refcounts[29].base, 0, g_bytes + 373),
442 28),
443 StaticMetadata(
444 grpc_core::StaticMetadataSlice(&refcounts[70].base, 13,
445 g_bytes + 1077),
446 grpc_core::StaticMetadataSlice(&refcounts[29].base, 0, g_bytes + 373),
447 29),
448 StaticMetadata(
449 grpc_core::StaticMetadataSlice(&refcounts[14].base, 12,
450 g_bytes + 158),
451 grpc_core::StaticMetadataSlice(&refcounts[29].base, 0, g_bytes + 373),
452 30),
453 StaticMetadata(
454 grpc_core::StaticMetadataSlice(&refcounts[71].base, 6,
455 g_bytes + 1090),
456 grpc_core::StaticMetadataSlice(&refcounts[29].base, 0, g_bytes + 373),
457 31),
458 StaticMetadata(
459 grpc_core::StaticMetadataSlice(&refcounts[72].base, 4,
460 g_bytes + 1096),
461 grpc_core::StaticMetadataSlice(&refcounts[29].base, 0, g_bytes + 373),
462 32),
463 StaticMetadata(
464 grpc_core::StaticMetadataSlice(&refcounts[73].base, 4,
465 g_bytes + 1100),
466 grpc_core::StaticMetadataSlice(&refcounts[29].base, 0, g_bytes + 373),
467 33),
468 StaticMetadata(
469 grpc_core::StaticMetadataSlice(&refcounts[74].base, 6,
470 g_bytes + 1104),
471 grpc_core::StaticMetadataSlice(&refcounts[29].base, 0, g_bytes + 373),
472 34),
473 StaticMetadata(
474 grpc_core::StaticMetadataSlice(&refcounts[75].base, 7,
475 g_bytes + 1110),
476 grpc_core::StaticMetadataSlice(&refcounts[29].base, 0, g_bytes + 373),
477 35),
478 StaticMetadata(
479 grpc_core::StaticMetadataSlice(&refcounts[76].base, 4,
480 g_bytes + 1117),
481 grpc_core::StaticMetadataSlice(&refcounts[29].base, 0, g_bytes + 373),
482 36),
483 StaticMetadata(
484 grpc_core::StaticMetadataSlice(&refcounts[20].base, 4, g_bytes + 278),
485 grpc_core::StaticMetadataSlice(&refcounts[29].base, 0, g_bytes + 373),
486 37),
487 StaticMetadata(
488 grpc_core::StaticMetadataSlice(&refcounts[77].base, 8,
489 g_bytes + 1121),
490 grpc_core::StaticMetadataSlice(&refcounts[29].base, 0, g_bytes + 373),
491 38),
492 StaticMetadata(
493 grpc_core::StaticMetadataSlice(&refcounts[78].base, 17,
494 g_bytes + 1129),
495 grpc_core::StaticMetadataSlice(&refcounts[29].base, 0, g_bytes + 373),
496 39),
497 StaticMetadata(
498 grpc_core::StaticMetadataSlice(&refcounts[79].base, 13,
499 g_bytes + 1146),
500 grpc_core::StaticMetadataSlice(&refcounts[29].base, 0, g_bytes + 373),
501 40),
502 StaticMetadata(
503 grpc_core::StaticMetadataSlice(&refcounts[80].base, 8,
504 g_bytes + 1159),
505 grpc_core::StaticMetadataSlice(&refcounts[29].base, 0, g_bytes + 373),
506 41),
507 StaticMetadata(
508 grpc_core::StaticMetadataSlice(&refcounts[81].base, 19,
509 g_bytes + 1167),
510 grpc_core::StaticMetadataSlice(&refcounts[29].base, 0, g_bytes + 373),
511 42),
512 StaticMetadata(
513 grpc_core::StaticMetadataSlice(&refcounts[82].base, 13,
514 g_bytes + 1186),
515 grpc_core::StaticMetadataSlice(&refcounts[29].base, 0, g_bytes + 373),
516 43),
517 StaticMetadata(
518 grpc_core::StaticMetadataSlice(&refcounts[83].base, 4,
519 g_bytes + 1199),
520 grpc_core::StaticMetadataSlice(&refcounts[29].base, 0, g_bytes + 373),
521 44),
522 StaticMetadata(
523 grpc_core::StaticMetadataSlice(&refcounts[84].base, 8,
524 g_bytes + 1203),
525 grpc_core::StaticMetadataSlice(&refcounts[29].base, 0, g_bytes + 373),
526 45),
527 StaticMetadata(
528 grpc_core::StaticMetadataSlice(&refcounts[85].base, 12,
529 g_bytes + 1211),
530 grpc_core::StaticMetadataSlice(&refcounts[29].base, 0, g_bytes + 373),
531 46),
532 StaticMetadata(
533 grpc_core::StaticMetadataSlice(&refcounts[86].base, 18,
534 g_bytes + 1223),
535 grpc_core::StaticMetadataSlice(&refcounts[29].base, 0, g_bytes + 373),
536 47),
537 StaticMetadata(
538 grpc_core::StaticMetadataSlice(&refcounts[87].base, 19,
539 g_bytes + 1241),
540 grpc_core::StaticMetadataSlice(&refcounts[29].base, 0, g_bytes + 373),
541 48),
542 StaticMetadata(
543 grpc_core::StaticMetadataSlice(&refcounts[88].base, 5,
544 g_bytes + 1260),
545 grpc_core::StaticMetadataSlice(&refcounts[29].base, 0, g_bytes + 373),
546 49),
547 StaticMetadata(
548 grpc_core::StaticMetadataSlice(&refcounts[89].base, 7,
549 g_bytes + 1265),
550 grpc_core::StaticMetadataSlice(&refcounts[29].base, 0, g_bytes + 373),
551 50),
552 StaticMetadata(
553 grpc_core::StaticMetadataSlice(&refcounts[90].base, 7,
554 g_bytes + 1272),
555 grpc_core::StaticMetadataSlice(&refcounts[29].base, 0, g_bytes + 373),
556 51),
557 StaticMetadata(
558 grpc_core::StaticMetadataSlice(&refcounts[91].base, 11,
559 g_bytes + 1279),
560 grpc_core::StaticMetadataSlice(&refcounts[29].base, 0, g_bytes + 373),
561 52),
562 StaticMetadata(
563 grpc_core::StaticMetadataSlice(&refcounts[92].base, 6,
564 g_bytes + 1290),
565 grpc_core::StaticMetadataSlice(&refcounts[29].base, 0, g_bytes + 373),
566 53),
567 StaticMetadata(
568 grpc_core::StaticMetadataSlice(&refcounts[93].base, 10,
569 g_bytes + 1296),
570 grpc_core::StaticMetadataSlice(&refcounts[29].base, 0, g_bytes + 373),
571 54),
572 StaticMetadata(
573 grpc_core::StaticMetadataSlice(&refcounts[94].base, 25,
574 g_bytes + 1306),
575 grpc_core::StaticMetadataSlice(&refcounts[29].base, 0, g_bytes + 373),
576 55),
577 StaticMetadata(
578 grpc_core::StaticMetadataSlice(&refcounts[95].base, 17,
579 g_bytes + 1331),
580 grpc_core::StaticMetadataSlice(&refcounts[29].base, 0, g_bytes + 373),
581 56),
582 StaticMetadata(
583 grpc_core::StaticMetadataSlice(&refcounts[19].base, 10,
584 g_bytes + 268),
585 grpc_core::StaticMetadataSlice(&refcounts[29].base, 0, g_bytes + 373),
586 57),
587 StaticMetadata(
588 grpc_core::StaticMetadataSlice(&refcounts[96].base, 4,
589 g_bytes + 1348),
590 grpc_core::StaticMetadataSlice(&refcounts[29].base, 0, g_bytes + 373),
591 58),
592 StaticMetadata(
593 grpc_core::StaticMetadataSlice(&refcounts[97].base, 3,
594 g_bytes + 1352),
595 grpc_core::StaticMetadataSlice(&refcounts[29].base, 0, g_bytes + 373),
596 59),
597 StaticMetadata(
598 grpc_core::StaticMetadataSlice(&refcounts[98].base, 16,
599 g_bytes + 1355),
600 grpc_core::StaticMetadataSlice(&refcounts[29].base, 0, g_bytes + 373),
601 60),
602 StaticMetadata(
603 grpc_core::StaticMetadataSlice(&refcounts[7].base, 11, g_bytes + 50),
604 grpc_core::StaticMetadataSlice(&refcounts[99].base, 1,
605 g_bytes + 1371),
606 61),
607 StaticMetadata(
608 grpc_core::StaticMetadataSlice(&refcounts[7].base, 11, g_bytes + 50),
609 grpc_core::StaticMetadataSlice(&refcounts[25].base, 1, g_bytes + 369),
610 62),
611 StaticMetadata(
612 grpc_core::StaticMetadataSlice(&refcounts[7].base, 11, g_bytes + 50),
613 grpc_core::StaticMetadataSlice(&refcounts[26].base, 1, g_bytes + 370),
614 63),
615 StaticMetadata(
616 grpc_core::StaticMetadataSlice(&refcounts[9].base, 13, g_bytes + 77),
617 grpc_core::StaticMetadataSlice(&refcounts[100].base, 8,
618 g_bytes + 1372),
619 64),
620 StaticMetadata(
621 grpc_core::StaticMetadataSlice(&refcounts[9].base, 13, g_bytes + 77),
622 grpc_core::StaticMetadataSlice(&refcounts[41].base, 4, g_bytes + 826),
623 65),
624 StaticMetadata(
625 grpc_core::StaticMetadataSlice(&refcounts[9].base, 13, g_bytes + 77),
626 grpc_core::StaticMetadataSlice(&refcounts[40].base, 7, g_bytes + 819),
627 66),
628 StaticMetadata(
629 grpc_core::StaticMetadataSlice(&refcounts[5].base, 2, g_bytes + 36),
630 grpc_core::StaticMetadataSlice(&refcounts[101].base, 8,
631 g_bytes + 1380),
632 67),
633 StaticMetadata(grpc_core::StaticMetadataSlice(&refcounts[14].base, 12,
634 g_bytes + 158),
635 grpc_core::StaticMetadataSlice(&refcounts[102].base, 16,
636 g_bytes + 1388),
637 68),
638 StaticMetadata(
639 grpc_core::StaticMetadataSlice(&refcounts[4].base, 7, g_bytes + 29),
640 grpc_core::StaticMetadataSlice(&refcounts[103].base, 4,
641 g_bytes + 1404),
642 69),
643 StaticMetadata(
644 grpc_core::StaticMetadataSlice(&refcounts[1].base, 7, g_bytes + 5),
645 grpc_core::StaticMetadataSlice(&refcounts[104].base, 3,
646 g_bytes + 1408),
647 70),
648 StaticMetadata(
649 grpc_core::StaticMetadataSlice(&refcounts[16].base, 15,
650 g_bytes + 186),
651 grpc_core::StaticMetadataSlice(&refcounts[29].base, 0, g_bytes + 373),
652 71),
653 StaticMetadata(grpc_core::StaticMetadataSlice(&refcounts[15].base, 16,
654 g_bytes + 170),
655 grpc_core::StaticMetadataSlice(&refcounts[100].base, 8,
656 g_bytes + 1372),
657 72),
658 StaticMetadata(
659 grpc_core::StaticMetadataSlice(&refcounts[15].base, 16,
660 g_bytes + 170),
661 grpc_core::StaticMetadataSlice(&refcounts[41].base, 4, g_bytes + 826),
662 73),
663 StaticMetadata(
664 grpc_core::StaticMetadataSlice(&refcounts[105].base, 11,
665 g_bytes + 1411),
666 grpc_core::StaticMetadataSlice(&refcounts[29].base, 0, g_bytes + 373),
667 74),
668 StaticMetadata(
669 grpc_core::StaticMetadataSlice(&refcounts[10].base, 20, g_bytes + 90),
670 grpc_core::StaticMetadataSlice(&refcounts[100].base, 8,
671 g_bytes + 1372),
672 75),
673 StaticMetadata(
674 grpc_core::StaticMetadataSlice(&refcounts[10].base, 20, g_bytes + 90),
675 grpc_core::StaticMetadataSlice(&refcounts[40].base, 7, g_bytes + 819),
676 76),
677 StaticMetadata(
678 grpc_core::StaticMetadataSlice(&refcounts[10].base, 20, g_bytes + 90),
679 grpc_core::StaticMetadataSlice(&refcounts[106].base, 16,
680 g_bytes + 1422),
681 77),
682 StaticMetadata(
683 grpc_core::StaticMetadataSlice(&refcounts[10].base, 20, g_bytes + 90),
684 grpc_core::StaticMetadataSlice(&refcounts[41].base, 4, g_bytes + 826),
685 78),
686 StaticMetadata(
687 grpc_core::StaticMetadataSlice(&refcounts[10].base, 20, g_bytes + 90),
688 grpc_core::StaticMetadataSlice(&refcounts[107].base, 13,
689 g_bytes + 1438),
690 79),
691 StaticMetadata(
692 grpc_core::StaticMetadataSlice(&refcounts[10].base, 20, g_bytes + 90),
693 grpc_core::StaticMetadataSlice(&refcounts[108].base, 12,
694 g_bytes + 1451),
695 80),
696 StaticMetadata(
697 grpc_core::StaticMetadataSlice(&refcounts[10].base, 20, g_bytes + 90),
698 grpc_core::StaticMetadataSlice(&refcounts[109].base, 21,
699 g_bytes + 1463),
700 81),
701 StaticMetadata(grpc_core::StaticMetadataSlice(&refcounts[16].base, 15,
702 g_bytes + 186),
703 grpc_core::StaticMetadataSlice(&refcounts[100].base, 8,
704 g_bytes + 1372),
705 82),
706 StaticMetadata(
707 grpc_core::StaticMetadataSlice(&refcounts[16].base, 15,
708 g_bytes + 186),
709 grpc_core::StaticMetadataSlice(&refcounts[41].base, 4, g_bytes + 826),
710 83),
711 StaticMetadata(grpc_core::StaticMetadataSlice(&refcounts[16].base, 15,
712 g_bytes + 186),
713 grpc_core::StaticMetadataSlice(&refcounts[107].base, 13,
714 g_bytes + 1438),
715 84),
716 };
717
718 /* Warning: the core static metadata currently operates under the soft
719 constraint that the first GRPC_CHTTP2_LAST_STATIC_ENTRY (61) entries must
720 contain metadata specified by the http2 hpack standard. The CHTTP2 transport
721 reads the core metadata with this assumption in mind. If the order of the core
722 static metadata is to be changed, then the CHTTP2 transport must be changed as
723 well to stop relying on the core metadata. */
724
725 grpc_mdelem static_mdelem_manifested[GRPC_STATIC_MDELEM_COUNT] = {
726 // clang-format off
727 /* GRPC_MDELEM_AUTHORITY_EMPTY:
728 ":authority": "" */
729 GRPC_MAKE_MDELEM(
730 &static_mdelem_table[0].data(),
731 GRPC_MDELEM_STORAGE_STATIC),
732 /* GRPC_MDELEM_METHOD_GET:
733 ":method": "GET" */
734 GRPC_MAKE_MDELEM(
735 &static_mdelem_table[1].data(),
736 GRPC_MDELEM_STORAGE_STATIC),
737 /* GRPC_MDELEM_METHOD_POST:
738 ":method": "POST" */
739 GRPC_MAKE_MDELEM(
740 &static_mdelem_table[2].data(),
741 GRPC_MDELEM_STORAGE_STATIC),
742 /* GRPC_MDELEM_PATH_SLASH:
743 ":path": "/" */
744 GRPC_MAKE_MDELEM(
745 &static_mdelem_table[3].data(),
746 GRPC_MDELEM_STORAGE_STATIC),
747 /* GRPC_MDELEM_PATH_SLASH_INDEX_DOT_HTML:
748 ":path": "/index.html" */
749 GRPC_MAKE_MDELEM(
750 &static_mdelem_table[4].data(),
751 GRPC_MDELEM_STORAGE_STATIC),
752 /* GRPC_MDELEM_SCHEME_HTTP:
753 ":scheme": "http" */
754 GRPC_MAKE_MDELEM(
755 &static_mdelem_table[5].data(),
756 GRPC_MDELEM_STORAGE_STATIC),
757 /* GRPC_MDELEM_SCHEME_HTTPS:
758 ":scheme": "https" */
759 GRPC_MAKE_MDELEM(
760 &static_mdelem_table[6].data(),
761 GRPC_MDELEM_STORAGE_STATIC),
762 /* GRPC_MDELEM_STATUS_200:
763 ":status": "200" */
764 GRPC_MAKE_MDELEM(
765 &static_mdelem_table[7].data(),
766 GRPC_MDELEM_STORAGE_STATIC),
767 /* GRPC_MDELEM_STATUS_204:
768 ":status": "204" */
769 GRPC_MAKE_MDELEM(
770 &static_mdelem_table[8].data(),
771 GRPC_MDELEM_STORAGE_STATIC),
772 /* GRPC_MDELEM_STATUS_206:
773 ":status": "206" */
774 GRPC_MAKE_MDELEM(
775 &static_mdelem_table[9].data(),
776 GRPC_MDELEM_STORAGE_STATIC),
777 /* GRPC_MDELEM_STATUS_304:
778 ":status": "304" */
779 GRPC_MAKE_MDELEM(
780 &static_mdelem_table[10].data(),
781 GRPC_MDELEM_STORAGE_STATIC),
782 /* GRPC_MDELEM_STATUS_400:
783 ":status": "400" */
784 GRPC_MAKE_MDELEM(
785 &static_mdelem_table[11].data(),
786 GRPC_MDELEM_STORAGE_STATIC),
787 /* GRPC_MDELEM_STATUS_404:
788 ":status": "404" */
789 GRPC_MAKE_MDELEM(
790 &static_mdelem_table[12].data(),
791 GRPC_MDELEM_STORAGE_STATIC),
792 /* GRPC_MDELEM_STATUS_500:
793 ":status": "500" */
794 GRPC_MAKE_MDELEM(
795 &static_mdelem_table[13].data(),
796 GRPC_MDELEM_STORAGE_STATIC),
797 /* GRPC_MDELEM_ACCEPT_CHARSET_EMPTY:
798 "accept-charset": "" */
799 GRPC_MAKE_MDELEM(
800 &static_mdelem_table[14].data(),
801 GRPC_MDELEM_STORAGE_STATIC),
802 /* GRPC_MDELEM_ACCEPT_ENCODING_GZIP_COMMA_DEFLATE:
803 "accept-encoding": "gzip, deflate" */
804 GRPC_MAKE_MDELEM(
805 &static_mdelem_table[15].data(),
806 GRPC_MDELEM_STORAGE_STATIC),
807 /* GRPC_MDELEM_ACCEPT_LANGUAGE_EMPTY:
808 "accept-language": "" */
809 GRPC_MAKE_MDELEM(
810 &static_mdelem_table[16].data(),
811 GRPC_MDELEM_STORAGE_STATIC),
812 /* GRPC_MDELEM_ACCEPT_RANGES_EMPTY:
813 "accept-ranges": "" */
814 GRPC_MAKE_MDELEM(
815 &static_mdelem_table[17].data(),
816 GRPC_MDELEM_STORAGE_STATIC),
817 /* GRPC_MDELEM_ACCEPT_EMPTY:
818 "accept": "" */
819 GRPC_MAKE_MDELEM(
820 &static_mdelem_table[18].data(),
821 GRPC_MDELEM_STORAGE_STATIC),
822 /* GRPC_MDELEM_ACCESS_CONTROL_ALLOW_ORIGIN_EMPTY:
823 "access-control-allow-origin": "" */
824 GRPC_MAKE_MDELEM(
825 &static_mdelem_table[19].data(),
826 GRPC_MDELEM_STORAGE_STATIC),
827 /* GRPC_MDELEM_AGE_EMPTY:
828 "age": "" */
829 GRPC_MAKE_MDELEM(
830 &static_mdelem_table[20].data(),
831 GRPC_MDELEM_STORAGE_STATIC),
832 /* GRPC_MDELEM_ALLOW_EMPTY:
833 "allow": "" */
834 GRPC_MAKE_MDELEM(
835 &static_mdelem_table[21].data(),
836 GRPC_MDELEM_STORAGE_STATIC),
837 /* GRPC_MDELEM_AUTHORIZATION_EMPTY:
838 "authorization": "" */
839 GRPC_MAKE_MDELEM(
840 &static_mdelem_table[22].data(),
841 GRPC_MDELEM_STORAGE_STATIC),
842 /* GRPC_MDELEM_CACHE_CONTROL_EMPTY:
843 "cache-control": "" */
844 GRPC_MAKE_MDELEM(
845 &static_mdelem_table[23].data(),
846 GRPC_MDELEM_STORAGE_STATIC),
847 /* GRPC_MDELEM_CONTENT_DISPOSITION_EMPTY:
848 "content-disposition": "" */
849 GRPC_MAKE_MDELEM(
850 &static_mdelem_table[24].data(),
851 GRPC_MDELEM_STORAGE_STATIC),
852 /* GRPC_MDELEM_CONTENT_ENCODING_EMPTY:
853 "content-encoding": "" */
854 GRPC_MAKE_MDELEM(
855 &static_mdelem_table[25].data(),
856 GRPC_MDELEM_STORAGE_STATIC),
857 /* GRPC_MDELEM_CONTENT_LANGUAGE_EMPTY:
858 "content-language": "" */
859 GRPC_MAKE_MDELEM(
860 &static_mdelem_table[26].data(),
861 GRPC_MDELEM_STORAGE_STATIC),
862 /* GRPC_MDELEM_CONTENT_LENGTH_EMPTY:
863 "content-length": "" */
864 GRPC_MAKE_MDELEM(
865 &static_mdelem_table[27].data(),
866 GRPC_MDELEM_STORAGE_STATIC),
867 /* GRPC_MDELEM_CONTENT_LOCATION_EMPTY:
868 "content-location": "" */
869 GRPC_MAKE_MDELEM(
870 &static_mdelem_table[28].data(),
871 GRPC_MDELEM_STORAGE_STATIC),
872 /* GRPC_MDELEM_CONTENT_RANGE_EMPTY:
873 "content-range": "" */
874 GRPC_MAKE_MDELEM(
875 &static_mdelem_table[29].data(),
876 GRPC_MDELEM_STORAGE_STATIC),
877 /* GRPC_MDELEM_CONTENT_TYPE_EMPTY:
878 "content-type": "" */
879 GRPC_MAKE_MDELEM(
880 &static_mdelem_table[30].data(),
881 GRPC_MDELEM_STORAGE_STATIC),
882 /* GRPC_MDELEM_COOKIE_EMPTY:
883 "cookie": "" */
884 GRPC_MAKE_MDELEM(
885 &static_mdelem_table[31].data(),
886 GRPC_MDELEM_STORAGE_STATIC),
887 /* GRPC_MDELEM_DATE_EMPTY:
888 "date": "" */
889 GRPC_MAKE_MDELEM(
890 &static_mdelem_table[32].data(),
891 GRPC_MDELEM_STORAGE_STATIC),
892 /* GRPC_MDELEM_ETAG_EMPTY:
893 "etag": "" */
894 GRPC_MAKE_MDELEM(
895 &static_mdelem_table[33].data(),
896 GRPC_MDELEM_STORAGE_STATIC),
897 /* GRPC_MDELEM_EXPECT_EMPTY:
898 "expect": "" */
899 GRPC_MAKE_MDELEM(
900 &static_mdelem_table[34].data(),
901 GRPC_MDELEM_STORAGE_STATIC),
902 /* GRPC_MDELEM_EXPIRES_EMPTY:
903 "expires": "" */
904 GRPC_MAKE_MDELEM(
905 &static_mdelem_table[35].data(),
906 GRPC_MDELEM_STORAGE_STATIC),
907 /* GRPC_MDELEM_FROM_EMPTY:
908 "from": "" */
909 GRPC_MAKE_MDELEM(
910 &static_mdelem_table[36].data(),
911 GRPC_MDELEM_STORAGE_STATIC),
912 /* GRPC_MDELEM_HOST_EMPTY:
913 "host": "" */
914 GRPC_MAKE_MDELEM(
915 &static_mdelem_table[37].data(),
916 GRPC_MDELEM_STORAGE_STATIC),
917 /* GRPC_MDELEM_IF_MATCH_EMPTY:
918 "if-match": "" */
919 GRPC_MAKE_MDELEM(
920 &static_mdelem_table[38].data(),
921 GRPC_MDELEM_STORAGE_STATIC),
922 /* GRPC_MDELEM_IF_MODIFIED_SINCE_EMPTY:
923 "if-modified-since": "" */
924 GRPC_MAKE_MDELEM(
925 &static_mdelem_table[39].data(),
926 GRPC_MDELEM_STORAGE_STATIC),
927 /* GRPC_MDELEM_IF_NONE_MATCH_EMPTY:
928 "if-none-match": "" */
929 GRPC_MAKE_MDELEM(
930 &static_mdelem_table[40].data(),
931 GRPC_MDELEM_STORAGE_STATIC),
932 /* GRPC_MDELEM_IF_RANGE_EMPTY:
933 "if-range": "" */
934 GRPC_MAKE_MDELEM(
935 &static_mdelem_table[41].data(),
936 GRPC_MDELEM_STORAGE_STATIC),
937 /* GRPC_MDELEM_IF_UNMODIFIED_SINCE_EMPTY:
938 "if-unmodified-since": "" */
939 GRPC_MAKE_MDELEM(
940 &static_mdelem_table[42].data(),
941 GRPC_MDELEM_STORAGE_STATIC),
942 /* GRPC_MDELEM_LAST_MODIFIED_EMPTY:
943 "last-modified": "" */
944 GRPC_MAKE_MDELEM(
945 &static_mdelem_table[43].data(),
946 GRPC_MDELEM_STORAGE_STATIC),
947 /* GRPC_MDELEM_LINK_EMPTY:
948 "link": "" */
949 GRPC_MAKE_MDELEM(
950 &static_mdelem_table[44].data(),
951 GRPC_MDELEM_STORAGE_STATIC),
952 /* GRPC_MDELEM_LOCATION_EMPTY:
953 "location": "" */
954 GRPC_MAKE_MDELEM(
955 &static_mdelem_table[45].data(),
956 GRPC_MDELEM_STORAGE_STATIC),
957 /* GRPC_MDELEM_MAX_FORWARDS_EMPTY:
958 "max-forwards": "" */
959 GRPC_MAKE_MDELEM(
960 &static_mdelem_table[46].data(),
961 GRPC_MDELEM_STORAGE_STATIC),
962 /* GRPC_MDELEM_PROXY_AUTHENTICATE_EMPTY:
963 "proxy-authenticate": "" */
964 GRPC_MAKE_MDELEM(
965 &static_mdelem_table[47].data(),
966 GRPC_MDELEM_STORAGE_STATIC),
967 /* GRPC_MDELEM_PROXY_AUTHORIZATION_EMPTY:
968 "proxy-authorization": "" */
969 GRPC_MAKE_MDELEM(
970 &static_mdelem_table[48].data(),
971 GRPC_MDELEM_STORAGE_STATIC),
972 /* GRPC_MDELEM_RANGE_EMPTY:
973 "range": "" */
974 GRPC_MAKE_MDELEM(
975 &static_mdelem_table[49].data(),
976 GRPC_MDELEM_STORAGE_STATIC),
977 /* GRPC_MDELEM_REFERER_EMPTY:
978 "referer": "" */
979 GRPC_MAKE_MDELEM(
980 &static_mdelem_table[50].data(),
981 GRPC_MDELEM_STORAGE_STATIC),
982 /* GRPC_MDELEM_REFRESH_EMPTY:
983 "refresh": "" */
984 GRPC_MAKE_MDELEM(
985 &static_mdelem_table[51].data(),
986 GRPC_MDELEM_STORAGE_STATIC),
987 /* GRPC_MDELEM_RETRY_AFTER_EMPTY:
988 "retry-after": "" */
989 GRPC_MAKE_MDELEM(
990 &static_mdelem_table[52].data(),
991 GRPC_MDELEM_STORAGE_STATIC),
992 /* GRPC_MDELEM_SERVER_EMPTY:
993 "server": "" */
994 GRPC_MAKE_MDELEM(
995 &static_mdelem_table[53].data(),
996 GRPC_MDELEM_STORAGE_STATIC),
997 /* GRPC_MDELEM_SET_COOKIE_EMPTY:
998 "set-cookie": "" */
999 GRPC_MAKE_MDELEM(
1000 &static_mdelem_table[54].data(),
1001 GRPC_MDELEM_STORAGE_STATIC),
1002 /* GRPC_MDELEM_STRICT_TRANSPORT_SECURITY_EMPTY:
1003 "strict-transport-security": "" */
1004 GRPC_MAKE_MDELEM(
1005 &static_mdelem_table[55].data(),
1006 GRPC_MDELEM_STORAGE_STATIC),
1007 /* GRPC_MDELEM_TRANSFER_ENCODING_EMPTY:
1008 "transfer-encoding": "" */
1009 GRPC_MAKE_MDELEM(
1010 &static_mdelem_table[56].data(),
1011 GRPC_MDELEM_STORAGE_STATIC),
1012 /* GRPC_MDELEM_USER_AGENT_EMPTY:
1013 "user-agent": "" */
1014 GRPC_MAKE_MDELEM(
1015 &static_mdelem_table[57].data(),
1016 GRPC_MDELEM_STORAGE_STATIC),
1017 /* GRPC_MDELEM_VARY_EMPTY:
1018 "vary": "" */
1019 GRPC_MAKE_MDELEM(
1020 &static_mdelem_table[58].data(),
1021 GRPC_MDELEM_STORAGE_STATIC),
1022 /* GRPC_MDELEM_VIA_EMPTY:
1023 "via": "" */
1024 GRPC_MAKE_MDELEM(
1025 &static_mdelem_table[59].data(),
1026 GRPC_MDELEM_STORAGE_STATIC),
1027 /* GRPC_MDELEM_WWW_AUTHENTICATE_EMPTY:
1028 "www-authenticate": "" */
1029 GRPC_MAKE_MDELEM(
1030 &static_mdelem_table[60].data(),
1031 GRPC_MDELEM_STORAGE_STATIC),
1032 /* GRPC_MDELEM_GRPC_STATUS_0:
1033 "grpc-status": "0" */
1034 GRPC_MAKE_MDELEM(
1035 &static_mdelem_table[61].data(),
1036 GRPC_MDELEM_STORAGE_STATIC),
1037 /* GRPC_MDELEM_GRPC_STATUS_1:
1038 "grpc-status": "1" */
1039 GRPC_MAKE_MDELEM(
1040 &static_mdelem_table[62].data(),
1041 GRPC_MDELEM_STORAGE_STATIC),
1042 /* GRPC_MDELEM_GRPC_STATUS_2:
1043 "grpc-status": "2" */
1044 GRPC_MAKE_MDELEM(
1045 &static_mdelem_table[63].data(),
1046 GRPC_MDELEM_STORAGE_STATIC),
1047 /* GRPC_MDELEM_GRPC_ENCODING_IDENTITY:
1048 "grpc-encoding": "identity" */
1049 GRPC_MAKE_MDELEM(
1050 &static_mdelem_table[64].data(),
1051 GRPC_MDELEM_STORAGE_STATIC),
1052 /* GRPC_MDELEM_GRPC_ENCODING_GZIP:
1053 "grpc-encoding": "gzip" */
1054 GRPC_MAKE_MDELEM(
1055 &static_mdelem_table[65].data(),
1056 GRPC_MDELEM_STORAGE_STATIC),
1057 /* GRPC_MDELEM_GRPC_ENCODING_DEFLATE:
1058 "grpc-encoding": "deflate" */
1059 GRPC_MAKE_MDELEM(
1060 &static_mdelem_table[66].data(),
1061 GRPC_MDELEM_STORAGE_STATIC),
1062 /* GRPC_MDELEM_TE_TRAILERS:
1063 "te": "trailers" */
1064 GRPC_MAKE_MDELEM(
1065 &static_mdelem_table[67].data(),
1066 GRPC_MDELEM_STORAGE_STATIC),
1067 /* GRPC_MDELEM_CONTENT_TYPE_APPLICATION_SLASH_GRPC:
1068 "content-type": "application/grpc" */
1069 GRPC_MAKE_MDELEM(
1070 &static_mdelem_table[68].data(),
1071 GRPC_MDELEM_STORAGE_STATIC),
1072 /* GRPC_MDELEM_SCHEME_GRPC:
1073 ":scheme": "grpc" */
1074 GRPC_MAKE_MDELEM(
1075 &static_mdelem_table[69].data(),
1076 GRPC_MDELEM_STORAGE_STATIC),
1077 /* GRPC_MDELEM_METHOD_PUT:
1078 ":method": "PUT" */
1079 GRPC_MAKE_MDELEM(
1080 &static_mdelem_table[70].data(),
1081 GRPC_MDELEM_STORAGE_STATIC),
1082 /* GRPC_MDELEM_ACCEPT_ENCODING_EMPTY:
1083 "accept-encoding": "" */
1084 GRPC_MAKE_MDELEM(
1085 &static_mdelem_table[71].data(),
1086 GRPC_MDELEM_STORAGE_STATIC),
1087 /* GRPC_MDELEM_CONTENT_ENCODING_IDENTITY:
1088 "content-encoding": "identity" */
1089 GRPC_MAKE_MDELEM(
1090 &static_mdelem_table[72].data(),
1091 GRPC_MDELEM_STORAGE_STATIC),
1092 /* GRPC_MDELEM_CONTENT_ENCODING_GZIP:
1093 "content-encoding": "gzip" */
1094 GRPC_MAKE_MDELEM(
1095 &static_mdelem_table[73].data(),
1096 GRPC_MDELEM_STORAGE_STATIC),
1097 /* GRPC_MDELEM_LB_COST_BIN_EMPTY:
1098 "lb-cost-bin": "" */
1099 GRPC_MAKE_MDELEM(
1100 &static_mdelem_table[74].data(),
1101 GRPC_MDELEM_STORAGE_STATIC),
1102 /* GRPC_MDELEM_GRPC_ACCEPT_ENCODING_IDENTITY:
1103 "grpc-accept-encoding": "identity" */
1104 GRPC_MAKE_MDELEM(
1105 &static_mdelem_table[75].data(),
1106 GRPC_MDELEM_STORAGE_STATIC),
1107 /* GRPC_MDELEM_GRPC_ACCEPT_ENCODING_DEFLATE:
1108 "grpc-accept-encoding": "deflate" */
1109 GRPC_MAKE_MDELEM(
1110 &static_mdelem_table[76].data(),
1111 GRPC_MDELEM_STORAGE_STATIC),
1112 /* GRPC_MDELEM_GRPC_ACCEPT_ENCODING_IDENTITY_COMMA_DEFLATE:
1113 "grpc-accept-encoding": "identity,deflate" */
1114 GRPC_MAKE_MDELEM(
1115 &static_mdelem_table[77].data(),
1116 GRPC_MDELEM_STORAGE_STATIC),
1117 /* GRPC_MDELEM_GRPC_ACCEPT_ENCODING_GZIP:
1118 "grpc-accept-encoding": "gzip" */
1119 GRPC_MAKE_MDELEM(
1120 &static_mdelem_table[78].data(),
1121 GRPC_MDELEM_STORAGE_STATIC),
1122 /* GRPC_MDELEM_GRPC_ACCEPT_ENCODING_IDENTITY_COMMA_GZIP:
1123 "grpc-accept-encoding": "identity,gzip" */
1124 GRPC_MAKE_MDELEM(
1125 &static_mdelem_table[79].data(),
1126 GRPC_MDELEM_STORAGE_STATIC),
1127 /* GRPC_MDELEM_GRPC_ACCEPT_ENCODING_DEFLATE_COMMA_GZIP:
1128 "grpc-accept-encoding": "deflate,gzip" */
1129 GRPC_MAKE_MDELEM(
1130 &static_mdelem_table[80].data(),
1131 GRPC_MDELEM_STORAGE_STATIC),
1132 /* GRPC_MDELEM_GRPC_ACCEPT_ENCODING_IDENTITY_COMMA_DEFLATE_COMMA_GZIP:
1133 "grpc-accept-encoding": "identity,deflate,gzip" */
1134 GRPC_MAKE_MDELEM(
1135 &static_mdelem_table[81].data(),
1136 GRPC_MDELEM_STORAGE_STATIC),
1137 /* GRPC_MDELEM_ACCEPT_ENCODING_IDENTITY:
1138 "accept-encoding": "identity" */
1139 GRPC_MAKE_MDELEM(
1140 &static_mdelem_table[82].data(),
1141 GRPC_MDELEM_STORAGE_STATIC),
1142 /* GRPC_MDELEM_ACCEPT_ENCODING_GZIP:
1143 "accept-encoding": "gzip" */
1144 GRPC_MAKE_MDELEM(
1145 &static_mdelem_table[83].data(),
1146 GRPC_MDELEM_STORAGE_STATIC),
1147 /* GRPC_MDELEM_ACCEPT_ENCODING_IDENTITY_COMMA_GZIP:
1148 "accept-encoding": "identity,gzip" */
1149 GRPC_MAKE_MDELEM(
1150 &static_mdelem_table[84].data(),
1151 GRPC_MDELEM_STORAGE_STATIC)
1152 // clang-format on
1153 };
1154 };
1155 } // namespace grpc_core
1156
1157 namespace grpc_core {
1158 static StaticMetadataCtx* g_static_metadata_slice_ctx = nullptr;
1159 const StaticMetadataSlice* g_static_metadata_slice_table = nullptr;
1160 StaticSliceRefcount* g_static_metadata_slice_refcounts = nullptr;
1161 StaticMetadata* g_static_mdelem_table = nullptr;
1162 grpc_mdelem* g_static_mdelem_manifested = nullptr;
1163 #ifndef NDEBUG
StaticMetadataInitCanary()1164 uint64_t StaticMetadataInitCanary() {
1165 return g_static_metadata_slice_ctx->init_canary;
1166 }
1167 #endif
1168 } // namespace grpc_core
1169
grpc_init_static_metadata_ctx(void)1170 void grpc_init_static_metadata_ctx(void) {
1171 grpc_core::g_static_metadata_slice_ctx = new grpc_core::StaticMetadataCtx();
1172 grpc_core::g_static_metadata_slice_table =
1173 grpc_core::g_static_metadata_slice_ctx->slices;
1174 grpc_core::g_static_metadata_slice_refcounts =
1175 grpc_core::g_static_metadata_slice_ctx->refcounts;
1176 grpc_core::g_static_mdelem_table =
1177 grpc_core::g_static_metadata_slice_ctx->static_mdelem_table;
1178 grpc_core::g_static_mdelem_manifested =
1179 grpc_core::g_static_metadata_slice_ctx->static_mdelem_manifested;
1180 }
1181
grpc_destroy_static_metadata_ctx(void)1182 void grpc_destroy_static_metadata_ctx(void) {
1183 delete grpc_core::g_static_metadata_slice_ctx;
1184 grpc_core::g_static_metadata_slice_ctx = nullptr;
1185 grpc_core::g_static_metadata_slice_table = nullptr;
1186 grpc_core::g_static_metadata_slice_refcounts = nullptr;
1187 grpc_core::g_static_mdelem_table = nullptr;
1188 grpc_core::g_static_mdelem_manifested = nullptr;
1189 }
1190
1191 uintptr_t grpc_static_mdelem_user_data[GRPC_STATIC_MDELEM_COUNT] = {
1192 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
1193 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
1194 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
1195 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 4, 4, 6, 6, 8, 8, 2, 4, 4};
1196
1197 static const int8_t elems_r[] = {
1198 15, 10, -8, 0, 2, -43, -83, -44, 0, 4, -8, 0, 0, 0, 10, 0, -7, 0,
1199 0, 3, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
1200 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
1201 0, 0, -68, 0, -53, -56, -53, -77, 0, 30, 29, 28, 27, 26, 25, 24, 35, 22,
1202 21, 20, 19, 18, 17, 16, 15, 16, 16, 16, 15, 14, 13, 12, 11, 10, 9, 8,
1203 7, 6, 5, 4, 3, 2, 3, 2, 2, 6, 0, 0, 0, 0, 0, 0, -7, 0};
elems_phash(uint32_t i)1204 static uint32_t elems_phash(uint32_t i) {
1205 i -= 45;
1206 uint32_t x = i % 108;
1207 uint32_t y = i / 108;
1208 uint32_t h = x;
1209 if (y < GPR_ARRAY_SIZE(elems_r)) {
1210 uint32_t delta = static_cast<uint32_t>(elems_r[y]);
1211 h += delta;
1212 }
1213 return h;
1214 }
1215
1216 static const uint16_t elem_keys[] = {
1217 269, 270, 271, 272, 273, 274, 275, 1140, 1141, 1789, 153,
1218 154, 487, 488, 1679, 45, 46, 1030, 1031, 795, 796, 1801,
1219 1569, 651, 869, 2119, 1691, 2229, 6189, 6739, 6849, 6959, 7069,
1220 7179, 7289, 7399, 7509, 1817, 7729, 7839, 7949, 8059, 8169, 8279,
1221 8389, 8499, 6519, 6409, 8609, 7619, 8719, 6629, 8829, 8939, 9049,
1222 9159, 9269, 9379, 9489, 9599, 9709, 9819, 9929, 10039, 10149, 10259,
1223 10369, 1200, 543, 10479, 10589, 214, 10699, 1206, 1207, 1208, 1209,
1224 1090, 10809, 11579, 1860, 0, 0, 0, 0, 1750, 0, 1867,
1225 0, 0, 359, 0, 0, 0, 0, 1642};
1226 static const uint8_t elem_idxs[] = {
1227 7, 8, 9, 10, 11, 12, 13, 76, 78, 71, 1, 2, 5, 6, 25, 3,
1228 4, 66, 65, 62, 63, 83, 30, 67, 61, 57, 73, 37, 14, 19, 20, 21,
1229 22, 23, 24, 26, 27, 15, 29, 31, 32, 33, 34, 35, 36, 38, 17, 16,
1230 39, 28, 40, 18, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52,
1231 53, 54, 55, 75, 69, 56, 58, 70, 59, 77, 79, 80, 81, 64, 60, 74,
1232 82, 255, 255, 255, 255, 72, 255, 84, 255, 255, 0, 255, 255, 255, 255, 68};
1233
grpc_static_mdelem_for_static_strings(intptr_t a,intptr_t b)1234 grpc_mdelem grpc_static_mdelem_for_static_strings(intptr_t a, intptr_t b) {
1235 if (a == -1 || b == -1) return GRPC_MDNULL;
1236 uint32_t k = static_cast<uint32_t>(a * 110 + b);
1237 uint32_t h = elems_phash(k);
1238 return h < GPR_ARRAY_SIZE(elem_keys) && elem_keys[h] == k &&
1239 elem_idxs[h] != 255
1240 ? GRPC_MAKE_MDELEM(
1241 &grpc_static_mdelem_table()[elem_idxs[h]].data(),
1242 GRPC_MDELEM_STORAGE_STATIC)
1243 : GRPC_MDNULL;
1244 }
1245
1246 const uint8_t grpc_static_accept_encoding_metadata[8] = {0, 75, 76, 77,
1247 78, 79, 80, 81};
1248
1249 const uint8_t grpc_static_accept_stream_encoding_metadata[4] = {0, 82, 83, 84};
1250