-
Notifications
You must be signed in to change notification settings - Fork 47
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
How do I turn dns_parser::Packet back into bytes? #40
Comments
There is no such thing out of the box. We can probably add one, but I guess there are few more complications:
All of that makes it doubtful to have a generic round-trip function. But it should be easy enough to write the one for your specific use case. We might provide some helper functions, though. So contributions are welcome. |
Is owned, static |
Implemented Is pull request welcome or it's better to have it in a separate fork to avoid cluttering |
Not tested, allocation-intensive. Resolves tailhook#40.
Not tested, allocation-intensive. Resolves tailhook#40.
Hi! Sorry, for a late response. Please open a PR! It's easier to judge looking at the code. |
How do I serialize it back?
I want the library to be able to round-trip DNS packet from bytes to structured representation and back.
The text was updated successfully, but these errors were encountered: