Exemplo n.º 1
0
 class Struct2(Structure):
     s = StructureField(Struct1)
Exemplo n.º 2
0
 class UFLSStructure(Structure):
     s = StructureField(UnlimitedFixedLengthStructure, length=5)
Exemplo n.º 3
0
 class StructureThatSkips(Structure):
     s = StructureField(ShortStructure, length=5)
     text = FixedLengthField(length=3)
Exemplo n.º 4
0
 class Struct2(Structure):
     length = IntegerField(length=1, override=lambda c, v: len(c.s2.b))
     s2 = StructureField(Struct1)
Exemplo n.º 5
0
 class Struct2(Structure):
     s1 = StructureField(Struct1)
     s2 = StructureField(Struct1)
Exemplo n.º 6
0
 class ConditionalStructure(Structure):
     value = ConditionalField(StructureField(X), condition=True)
Exemplo n.º 7
0
        class S(Structure):
            o = FixedLengthField(length=2)
            a = StructureField(Inner)

            class Meta:
                capture_raw = True
Exemplo n.º 8
0
        class S(Structure):
            a = StructureField(Inner)

            class Meta:
                capture_raw = True