public void TestNavRoot() { var r = NavRoot.FromFile(SourceFile("nav.bin")); Assert.AreEqual(r.Header.QtyEntries, 2); Assert.AreEqual(r.Header.FilenameLen, 8); Assert.AreEqual(r.Index.Entries.Count, 2); Assert.AreEqual(r.Index.Entries[0].Filename, "FIRST___"); Assert.AreEqual(r.Index.Entries[1].Filename, "SECOND__"); }
public IndexObj(KaitaiStream p__io, NavRoot p__parent = null, NavRoot p__root = null) : base(p__io) { m_parent = p__parent; m_root = p__root; _read(); }
public NavRoot(KaitaiStream p__io, KaitaiStruct p__parent = null, NavRoot p__root = null) : base(p__io) { m_parent = p__parent; m_root = p__root ?? this; _read(); }