The expected behavior of:
cparser.A(b'\x01\x02\x03\x04\x00\x00')
should be
struct A:
- a: 0x1
- b: [2, 3, 4, 0, 0]
current
struct A:
- a: 0x1
- b: [2, 3, 4]
It should take rest of binary data which are at the end of blob (here 5bytes) and count how much numbers he can take (5/1{uint8}) and than convert data at the end.
Demo:
The expected behavior of: cparser.A(b'\x01\x02\x03\x04\x00\x00') should be
current
It should take rest of binary data which are at the end of blob (here 5bytes) and count how much numbers he can take (5/1{uint8}) and than convert data at the end.