context: I am using bincode 1.3.3 in helping me parse a binary format that has mixed endianness
when creating my own bincode from the default options I was suddenly struck with a error regarding trailing bytes.
after some experimenting I find that creating a bincode from defaultoptions it expects a different amount of bytes to deserialize the same struct as when using the bincode::deserialize
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
context: I am using bincode 1.3.3 in helping me parse a binary format that has mixed endianness when creating my own bincode from the default options I was suddenly struck with a error regarding trailing bytes. after some experimenting I find that creating a bincode from defaultoptions it expects a different amount of bytes to deserialize the same struct as when using the bincode::deserialize
I find that the following code:
yields: num: 12 num2: 12 num3: 24
I experimented a bit and crawled though the docs but I cannot seem to understand what's going wrong here