class UserClass(CStruct): c_member_0 = Integer() c_member_1 = Integer() not_c_member = 2 c_member_2 = Integer() def not_c_member_too(self): pass
class Package(CStruct): a = Integer() junk = Padding(4) b = Integer()
class BigEndianVector(CStruct): endianness = Endianness.big_endian x = Integer() y = Integer()
class C(B): c_member = Integer()
class B(A): b_member = Integer()
class A(CStruct): a_member_0 = Integer() a_member_1 = Integer()
class VectorYX(CStruct): ''' Demonstrates, that members order is important! ''' y = Integer() x = Integer()
class Polygon(CStruct): x = Integer() y = Integer() vertexes = Double(10)
class Vector(CStruct): endianness = Endianness.little_endian x = Integer() y = Integer()