zbus-old icon indicating copy to clipboard operation
zbus-old copied to clipboard

Add an API similar to `GDBusMessage::from_blob`

Open zeenix opened this issue 2 years ago • 2 comments
trafficstars

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

zeenix avatar Mar 16 '23 14:03 zeenix

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 zbus::Message::from_raw_parts public as part of MessageBuilder. Would it be possible to provide a MR?

zeenix avatar Mar 16 '23 15:03 zeenix

In GitLab by @SeaDve on Mar 16, 2023, 16:07

Ahhh. yeah, sure

zeenix avatar Mar 16 '23 15:03 zeenix