| 305 | } |
| 306 | |
| 307 | bool |
| 308 | http2_parse_priority_parameter(IOVec iov, Http2Priority &priority) |
| 309 | { |
| 310 | byte_pointer ptr(iov.iov_base); |
| 311 | byte_addressable_value<uint32_t> dependency; |
| 312 | |
| 313 | memcpy_and_advance(dependency.bytes, ptr); |
| 314 | |
| 315 | priority.exclusive_flag = dependency.bytes[0] & 0x80; |
| 316 | |
| 317 | dependency.bytes[0] &= 0x7f; // Clear the highest bit for exclusive flag |
| 318 | priority.stream_dependency = ntohl(dependency.value); |
| 319 | |
| 320 | memcpy_and_advance(priority.weight, ptr); |
| 321 | |
| 322 | return true; |
| 323 | } |
| 324 | |
| 325 | bool |
| 326 | http2_parse_rst_stream(IOVec iov, Http2RstStream &rst_stream) |
no test coverage detected