public void TestIndexSizes() { var r = IndexSizes.FromFile(SourceFile("index_sizes.bin")); Assert.AreEqual(r.Qty, 3); Assert.AreEqual(r.Sizes[0], 1); Assert.AreEqual(r.Sizes[1], 8); Assert.AreEqual(r.Sizes[2], 4); Assert.AreEqual(r.Bufs[0], "A"); Assert.AreEqual(r.Bufs[1], "BBBBBBBB"); Assert.AreEqual(r.Bufs[2], "CCCC"); }
public IndexSizes(KaitaiStream p__io, KaitaiStruct p__parent = null, IndexSizes p__root = null) : base(p__io) { m_parent = p__parent; m_root = p__root ?? this; _read(); }