v / vlib / net / http / h2_hpack_huffman_table.v
268 lines · 267 sloc · 1.72 KB · 95861b8bdeeddc71d79c3f09f56a66bf01106ecd
Raw
1// Code generated from RFC 7541 Appendix B (HPACK Huffman code). DO NOT EDIT.
2// Source: HTTP/2 (RFC 7541) static Huffman table, 256 byte symbols + EOS (257).
3module http
4
5// h2_huffman_code_lens holds the bit length of each HPACK symbol's Huffman
6// code (1..30 bits). Index 0..255 are byte values; index 256 is the EOS
7// symbol. The codes themselves are canonical, so they are not stored: they are
8// rebuilt from these lengths at startup via hash.huffman (see h2_huffman_table
9// in h2_hpack_huffman.v).
10const h2_huffman_code_lens = [
11 u8(13),
12 23,
13 28,
14 28,
15 28,
16 28,
17 28,
18 28,
19 28,
20 24,
21 30,
22 28,
23 28,
24 30,
25 28,
26 28,
27 28,
28 28,
29 28,
30 28,
31 28,
32 28,
33 30,
34 28,
35 28,
36 28,
37 28,
38 28,
39 28,
40 28,
41 28,
42 28,
43 6,
44 10,
45 10,
46 12,
47 13,
48 6,
49 8,
50 11,
51 10,
52 10,
53 8,
54 11,
55 8,
56 6,
57 6,
58 6,
59 5,
60 5,
61 5,
62 6,
63 6,
64 6,
65 6,
66 6,
67 6,
68 6,
69 7,
70 8,
71 15,
72 6,
73 12,
74 10,
75 13,
76 6,
77 7,
78 7,
79 7,
80 7,
81 7,
82 7,
83 7,
84 7,
85 7,
86 7,
87 7,
88 7,
89 7,
90 7,
91 7,
92 7,
93 7,
94 7,
95 7,
96 7,
97 7,
98 7,
99 8,
100 7,
101 8,
102 13,
103 19,
104 13,
105 14,
106 6,
107 15,
108 5,
109 6,
110 5,
111 6,
112 5,
113 6,
114 6,
115 6,
116 5,
117 7,
118 7,
119 6,
120 6,
121 6,
122 5,
123 6,
124 7,
125 6,
126 5,
127 5,
128 6,
129 7,
130 7,
131 7,
132 7,
133 7,
134 15,
135 11,
136 14,
137 13,
138 28,
139 20,
140 22,
141 20,
142 20,
143 22,
144 22,
145 22,
146 23,
147 22,
148 23,
149 23,
150 23,
151 23,
152 23,
153 24,
154 23,
155 24,
156 24,
157 22,
158 23,
159 24,
160 23,
161 23,
162 23,
163 23,
164 21,
165 22,
166 23,
167 22,
168 23,
169 23,
170 24,
171 22,
172 21,
173 20,
174 22,
175 22,
176 23,
177 23,
178 21,
179 23,
180 22,
181 22,
182 24,
183 21,
184 22,
185 23,
186 23,
187 21,
188 21,
189 22,
190 21,
191 23,
192 22,
193 23,
194 23,
195 20,
196 22,
197 22,
198 22,
199 23,
200 22,
201 22,
202 23,
203 26,
204 26,
205 20,
206 19,
207 22,
208 23,
209 22,
210 25,
211 26,
212 26,
213 26,
214 27,
215 27,
216 26,
217 24,
218 25,
219 19,
220 21,
221 26,
222 27,
223 27,
224 26,
225 27,
226 24,
227 21,
228 21,
229 26,
230 26,
231 28,
232 27,
233 27,
234 27,
235 20,
236 24,
237 20,
238 21,
239 22,
240 21,
241 21,
242 23,
243 22,
244 22,
245 25,
246 25,
247 24,
248 24,
249 26,
250 23,
251 26,
252 27,
253 26,
254 26,
255 27,
256 27,
257 27,
258 27,
259 27,
260 28,
261 27,
262 27,
263 27,
264 27,
265 27,
266 26,
267 30,
268]!
269