| 54 | } |
| 55 | |
| 56 | Http3FrameType |
| 57 | Http3Frame::type(const uint8_t *buf, size_t buf_len) |
| 58 | { |
| 59 | uint64_t type = 0; |
| 60 | size_t type_field_length = 0; |
| 61 | int ret = QUICVariableInt::decode(type, type_field_length, buf, buf_len); |
| 62 | ink_assert(ret != 1); |
| 63 | if (type <= static_cast<uint64_t>(Http3FrameType::X_MAX_DEFINED)) { |
| 64 | return static_cast<Http3FrameType>(type); |
| 65 | } else { |
| 66 | return Http3FrameType::UNKNOWN; |
| 67 | } |
| 68 | } |
| 69 | |
| 70 | // |
| 71 | // Generic Frame |
no outgoing calls
no test coverage detected