Deserialization fails when using bits = X
and read_all
alongside endian = "little"
#485
Labels
bug
Something isn't working
Hello!
I ran into a strange issue when trying to use
read_all
. When the struct also contains a specifically sized field using ex#[deku(bits = 40)]
, deserialization always fails withIncomplete(NeedSize { bits: 8 })
, but only when the endian-ness of the struct is explicitly specified. It seems to fail if set tobig
orlittle
.If I remove the endian specification, this program runs fine.
It also runs fine if I specify endian-ness but remove the
weird_sized_thing
struct member.I am using Deku 0.18.1 with Rust 1.72.0.
This issue does not appear to be present on Deku 0.17.
The text was updated successfully, but these errors were encountered: