Mercurial > hg > nginx
comparison src/http/v3/ngx_http_v3_encode.c @ 8942:5c86189a1c1b quic
Merged with the default branch.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Fri, 24 Dec 2021 15:53:59 +0300 |
parents | b5a305db30e0 |
children |
comparison
equal
deleted
inserted
replaced
8941:0433e69f5425 | 8942:5c86189a1c1b |
---|---|
155 *p = 0; | 155 *p = 0; |
156 p = (u_char *) ngx_http_v3_encode_prefix_int(p, len, 7); | 156 p = (u_char *) ngx_http_v3_encode_prefix_int(p, len, 7); |
157 | 157 |
158 if (data) { | 158 if (data) { |
159 p2 = p; | 159 p2 = p; |
160 hlen = ngx_http_v2_huff_encode(data, len, p, 0); | 160 hlen = ngx_http_huff_encode(data, len, p, 0); |
161 | 161 |
162 if (hlen) { | 162 if (hlen) { |
163 p = p1; | 163 p = p1; |
164 *p = 0x80; | 164 *p = 0x80; |
165 p = (u_char *) ngx_http_v3_encode_prefix_int(p, hlen, 7); | 165 p = (u_char *) ngx_http_v3_encode_prefix_int(p, hlen, 7); |
197 p1 = p; | 197 p1 = p; |
198 *p = 0x20; | 198 *p = 0x20; |
199 p = (u_char *) ngx_http_v3_encode_prefix_int(p, name->len, 3); | 199 p = (u_char *) ngx_http_v3_encode_prefix_int(p, name->len, 3); |
200 | 200 |
201 p2 = p; | 201 p2 = p; |
202 hlen = ngx_http_v2_huff_encode(name->data, name->len, p, 1); | 202 hlen = ngx_http_huff_encode(name->data, name->len, p, 1); |
203 | 203 |
204 if (hlen) { | 204 if (hlen) { |
205 p = p1; | 205 p = p1; |
206 *p = 0x28; | 206 *p = 0x28; |
207 p = (u_char *) ngx_http_v3_encode_prefix_int(p, hlen, 3); | 207 p = (u_char *) ngx_http_v3_encode_prefix_int(p, hlen, 3); |
220 p1 = p; | 220 p1 = p; |
221 *p = 0; | 221 *p = 0; |
222 p = (u_char *) ngx_http_v3_encode_prefix_int(p, value->len, 7); | 222 p = (u_char *) ngx_http_v3_encode_prefix_int(p, value->len, 7); |
223 | 223 |
224 p2 = p; | 224 p2 = p; |
225 hlen = ngx_http_v2_huff_encode(value->data, value->len, p, 0); | 225 hlen = ngx_http_huff_encode(value->data, value->len, p, 0); |
226 | 226 |
227 if (hlen) { | 227 if (hlen) { |
228 p = p1; | 228 p = p1; |
229 *p = 0x80; | 229 *p = 0x80; |
230 p = (u_char *) ngx_http_v3_encode_prefix_int(p, hlen, 7); | 230 p = (u_char *) ngx_http_v3_encode_prefix_int(p, hlen, 7); |
280 *p = 0; | 280 *p = 0; |
281 p = (u_char *) ngx_http_v3_encode_prefix_int(p, len, 7); | 281 p = (u_char *) ngx_http_v3_encode_prefix_int(p, len, 7); |
282 | 282 |
283 if (data) { | 283 if (data) { |
284 p2 = p; | 284 p2 = p; |
285 hlen = ngx_http_v2_huff_encode(data, len, p, 0); | 285 hlen = ngx_http_huff_encode(data, len, p, 0); |
286 | 286 |
287 if (hlen) { | 287 if (hlen) { |
288 p = p1; | 288 p = p1; |
289 *p = 0x80; | 289 *p = 0x80; |
290 p = (u_char *) ngx_http_v3_encode_prefix_int(p, hlen, 7); | 290 p = (u_char *) ngx_http_v3_encode_prefix_int(p, hlen, 7); |