-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Description
- Improves readability
- Eliminates offset/cast/masking errors
- Speeds up further development
Implementation steps:
- Replace the serialize/deserialize functions for structs representing bitfields (1) with proc-macro annotations.
- Build a custom serde data format, implement it for the remaining structs (I did this for zstacker and it worked great.
I have looked at all the bitfield crates, I think bilge is a great fit. It handles enums well. The crate bitbybit
would work too.
I would not mind taking a go at implementing this. We could do one bitfield first to see what it would look like.
(1): such as
Line 64 in 46fbd25
pub fn deserialize(bytes: &[u8]) -> Result<(Self, &[u8]), &'static str> { |
puddly
Metadata
Metadata
Assignees
Labels
No labels