public Code(KaitaiStream p__io, IfValues p__parent = null, IfValues p__root = null) : base(p__io) { m_parent = p__parent; m_root = p__root; f_halfOpcode = false; _read(); }
public void TestIfValues() { var r = IfValues.FromFile(SourceFile("fixed_struct.bin")); Assert.AreEqual(r.Codes[0].Opcode, 80); Assert.AreEqual(r.Codes[0].HalfOpcode, 40); Assert.AreEqual(r.Codes[1].Opcode, 65); Assert.IsNull(r.Codes[1].HalfOpcode); Assert.AreEqual(r.Codes[2].Opcode, 67); Assert.IsNull(r.Codes[2].HalfOpcode); }
public IfValues(KaitaiStream p__io, KaitaiStruct p__parent = null, IfValues p__root = null) : base(p__io) { m_parent = p__parent; m_root = p__root ?? this; _read(); }