public void TestBcdUserTypeLe() { var r = BcdUserTypeLe.FromFile(SourceFile("bcd_user_type_le.bin")); Assert.AreEqual(r.Ltr.AsInt, 12345678); Assert.AreEqual(r.Ltr.AsStr, "12345678"); Assert.AreEqual(r.Rtl.AsInt, 87654321); Assert.AreEqual(r.Rtl.AsStr, "87654321"); Assert.AreEqual(r.LeadingZeroLtr.AsInt, 123456); Assert.AreEqual(r.LeadingZeroLtr.AsStr, "00123456"); }
public LeadingZeroLtrObj(KaitaiStream p__io, BcdUserTypeLe p__parent = null, BcdUserTypeLe p__root = null) : base(p__io) { m_parent = p__parent; m_root = p__root; f_asInt = false; f_digit2 = false; f_digit4 = false; f_digit3 = false; f_digit5 = false; f_digit8 = false; f_digit6 = false; f_asStr = false; f_digit1 = false; f_digit7 = false; _read(); }
public BcdUserTypeLe(KaitaiStream p__io, KaitaiStruct p__parent = null, BcdUserTypeLe p__root = null) : base(p__io) { m_parent = p__parent; m_root = p__root ?? this; _read(); }