public SwitchIntegers2(KaitaiStream p__io, KaitaiStruct p__parent = null, SwitchIntegers2 p__root = null) : base(p__io) { m_parent = p__parent; m_root = p__root ?? this; f_lenModStr = false; _read(); }
public void TestSwitchIntegers2() { var r = SwitchIntegers2.FromFile(SourceFile("switch_integers.bin")); Assert.AreEqual(r.Code, 1); Assert.AreEqual(r.Len, 7); Assert.AreEqual(r.Ham, new byte[] { 2, 64, 64, 4, 55, 19, 0 }); Assert.AreEqual(r.Padding, 0); Assert.AreEqual(r.LenModStr, "13"); }