bincode: Adding a specific u8 in between each Struct

Hey,

I want to bincode a Struct (serialize), i'd like to add b"47" (u8) in between each fields. (about 7 fields)

I also want when I'm ready for Deserialization, to remove those specific b"47", anyone have a working example of how to remove specific u8 (multiple) from a &[u8] slices?

PS: Note that my Struct doesn't contain the char / (b"47") so I can conflict with anything existing
Thanks for the help guys :slight_smile:

That's a change to the serialization format. I think you'll have to fork bincode to add it.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.