Replies: 1 comment
-
There is currently no good way to transform a collection of enums into a split offset table and data, though this is a known use case that needs to be handled by something eventually, see #4. Probably the easiest and most readable way right now is to just create a custom writer using |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey! First of all, thanks for the amazing library! I'm really enjoying fiddling with it.
I'm trying to stream out RPM Header Structure where I need to serialize basically something like this:
which can be easily serialized in place as:
But it's not the case for RPM format which first streams the Header Index as
Vec<EntryHeader>
:followed by
Vec<EntryBody>
:So the serialized equivalent for the original
Entry
enum would look like this:Do you have a suggestion on how to achieve such a separate serialization?
Beta Was this translation helpful? Give feedback.
All reactions