コード例 #1
0
 public Tag(KaitaiStream p__io, NavParent3 p__parent = null, NavParent3 p__root = null) : base(p__io)
 {
     m_parent     = p__parent;
     m_root       = p__root;
     f_tagContent = false;
     _read();
 }
コード例 #2
0
 public NavParent3(KaitaiStream p__io, KaitaiStruct p__parent = null, NavParent3 p__root = null) : base(p__io)
 {
     m_parent = p__parent;
     m_root   = p__root ?? this;
     f_tags   = false;
     _read();
 }
コード例 #3
0
        public void TestNavParent3()
        {
            var r = NavParent3.FromFile(SourceFile("nav_parent2.bin"));

            Assert.AreEqual(r.OfsTags, 8);
            Assert.AreEqual(r.NumTags, 2);
            Assert.AreEqual(r.Tags[0].Name, "RAHC");
            Assert.AreEqual(r.Tags[0].Ofs, 32);
            Assert.AreEqual(r.Tags[0].NumItems, 3);
            Assert.AreEqual(r.Tags[0].TagContent.Content, "foo");
            Assert.AreEqual(r.Tags[1].Name, "RAHC");
            Assert.AreEqual(r.Tags[1].Ofs, 35);
            Assert.AreEqual(r.Tags[1].NumItems, 6);
            Assert.AreEqual(r.Tags[1].TagContent.Content, "barbaz");
        }
コード例 #4
0
 public TagChar(KaitaiStream p__io, NavParent3.Tag p__parent = null, NavParent3 p__root = null) : base(p__io)
 {
     m_parent = p__parent;
     m_root   = p__root;
     _read();
 }