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