-
Notifications
You must be signed in to change notification settings - Fork 123
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
Make an encoder that does not require ownership of the underlying buffer #2054
Comments
This TODO has bugged me for a while and I have a long flight with a good bit of time in the airport today 😆 so I'll make a first pass at doing this... Comments and critiques on this are very much appreciated. |
👍 we will need an |
TL;DRI let my enthusiasm get the better of me 😆 The current usage of the ProblemThere are some cases where the Possible solutionI think the easiest solution would be to introduce a enum for the buffer backing the encoder with a |
See neqo-transport/src/tparams.rs:690:
It should be possible to create a codec that doesn't require ownership of the underlying buffer. My underlying long-term goal would be something akin to what we had for smoltcp, where the packet structure was able to abstract over mutability (e.g. the ipv6 Packet structure).
The text was updated successfully, but these errors were encountered: