-
-
Notifications
You must be signed in to change notification settings - Fork 92
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
Add an API similar to GDBusMessage::from_blob
#326
Comments
Thanks for reporting this but I guess I wasn't clear on the matrix channel when we discussed this. I don't need to consider this, I think we should provide such an API. I suggested we make |
In GitLab by @SeaDve on Mar 16, 2023, 16:07 Ahhh. yeah, sure |
I'm sorry if I took too long to get back to this. I am a bit puzzled about how the API should look, but my understanding of what you suggested is to have something like this, or should it be something different like returning the Builder, instead? impl MessageBuilder {
pub fn from_raw_parts(bytes: Vec<u8>, ...) -> Message {
...
}
} |
Out of pure coincidence I had to use something similar myself yesterday in For building a full Message from raw bytes. I'd just add a |
In GitLab by @SeaDve on Mar 16, 2023, 15:44
Currently, there is
zbus::Message::from_raw_parts
. However, it is private.For the use case, Bustle has DBus messages serialized in a pcap file. There is currently not a convenient way to parse the bytes from each packet from the pcap file into a
zbus::Message
.Link
The text was updated successfully, but these errors were encountered: