sprout42/StarStruct

Are padding field names necessary?

sprout42 opened this issue · 3 comments

Is it necessary to have a field name for padding elements?

One might want to assert

assert len(MyMessage.pad_2) == 2

Not sure why exactly, but I could see it happening.

The pad fields just return None when the element is "unpacked" currently. All the unpack function does is consume bytes.