Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

review and cleanup of HTTP/3 QPACK Integer and String encoding #9798

Merged
merged 2 commits into from
May 29, 2023

Conversation

lachlan-roberts
Copy link
Contributor

  • Cleanup the code in NBitIntegerEncoder to reduce duplication.
  • Change implementation of NBitIntegerEncoder.octetsNeeded() to include an extra byte for prefixes less than 8, this means we can get rid of the + 1 everywhere it is used.
  • Added a NBitStringEncoder utility class to simplify where we encode strings and calculate their required lengths.

Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
@lachlan-roberts lachlan-roberts merged commit 6567a44 into jetty-10.0.x May 29, 2023
4 checks passed
@lachlan-roberts lachlan-roberts deleted the jetty-10.0.x-QPACK-encoding branch May 29, 2023 06:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants