class FooterThatIsAlsoHeader(h.Struct): magic = h.UInt32(0x09012001) my_opcode = h.OpcodeField(h.UInt16, {FooterBody1: 0x02, FooterBody2: 0x00})
class A(h.Struct): opcode = h.OpcodeField(h.UInt8, a_opcodes)
class MessageHeader(h.Struct): magic = h.UInt32(0xDEADBEEF) opcode = h.OpcodeField(h.UInt16, {MessageBody1: 0x00, MessageBody2: 0x01})
class B2(h.Struct): opcode = h.OpcodeField(h.UInt8, b_opcodes)