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

            class Meta:
                capture_raw = True
Exemple #8
0
        class S(Structure):
            a = StructureField(Inner)

            class Meta:
                capture_raw = True