Example #1
0
class Shine(h.Struct):
    arr = h.Array(field_type=h.UInt8(3), length=3, value=(1, 2), fill=True)
    vec_len = h.UInt8()
    vec = h.Vector(field_type=h.UInt8(), length=vec_len)
    y = h.UInt64(9)
    z_len = h.UInt8()
    z = h.Vector(field_type=Garzon(), length=z_len, value=[
        Garzon(nested_vla=(11, 12, 13, 14, 15)), Garzon(arr=(9,)), Garzon()])
    vec2_len = h.UInt8()
    vec2 = h.Vector(field_type=h.UInt32(), length=vec2_len, value=(53, 99, 123))
    x = h.UInt16(104)
Example #2
0
class Gilad(h.Struct):
    i8 = h.Int8(0)
    i16 = h.Int16(0)
    i32 = h.Int32(0)
    i64 = h.Int64(0)

    u8 = h.UInt8(0)
    u16 = h.UInt16(0)
    u32 = h.UInt32(0)
    u64 = h.UInt64(0)

    flt = h.Float(0)
    dub = h.Double(0)
Example #3
0
class Time(h.Struct):
    time = h.UInt64(3)
Example #4
0
class Ron(h.Struct):
    a = h.UInt64(55)
    log = Log()
    b = h.UInt64(56)
Example #5
0
class FooterBody2(h.Struct):
    y = h.UInt64(0x0123456789ABCDEF)
Example #6
0
 class NadavLoYazam(h.Struct):
     nadav = h.UInt8()
     lo = h.UInt16()
     yazam = h.UInt32()
     bihlal = h.UInt64()
Example #7
0
class Tal(h.Struct):
    x = h.UInt64(endianness=h.BigEndian)
    z = h.UInt64
    t = h.UInt8
    u = h.Enum(h.UInt16, Lia)
Example #8
0
class Tal(h.Struct):
    x = h.UInt64(endianness=h.BigEndian)
    z = h.UInt64
    t = h.UInt8