コード例 #1
0
 public PositionInSeq(KaitaiStream p__io, KaitaiStruct p__parent = null, PositionInSeq p__root = null) : base(p__io)
 {
     m_parent = p__parent;
     m_root   = p__root ?? this;
     f_header = false;
     _read();
 }
コード例 #2
0
        public void TestPositionInSeq()
        {
            var r = PositionInSeq.FromFile(SourceFile("position_in_seq.bin"));

            Assert.AreEqual(r.Numbers, new List <int> {
                (0 + 1), 2, 3
            });
        }
コード例 #3
0
 public HeaderObj(KaitaiStream p__io, PositionInSeq p__parent = null, PositionInSeq p__root = null) : base(p__io)
 {
     m_parent = p__parent;
     m_root   = p__root;
     _read();
 }
コード例 #4
0
        public void TestPositionInSeq()
        {
            PositionInSeq r = PositionInSeq.FromFile(SourceFile("position_in_seq.bin"));

            CollectionAssert.AreEqual(r.Numbers, new[] { 1, 2, 3 });
        }