public void TestRepeatUntilCalcArrayType()
        {
            var r = RepeatUntilCalcArrayType.FromFile(SourceFile("repeat_until_process.bin"));

            Assert.AreEqual(r.Records.Count, 3);
            Assert.AreEqual(r.Records[0].Marker, 232);
            Assert.AreEqual(r.Records[0].Body, 2863311546);
            Assert.AreEqual(r.Records[1].Marker, 250);
            Assert.AreEqual(r.Records[1].Body, 2863315102);
            Assert.AreEqual(r.Records[2].Marker, 170);
            Assert.AreEqual(r.Records[2].Body, 1431655765);
        }
예제 #2
0
 public Record(KaitaiStream p__io, RepeatUntilCalcArrayType p__parent = null, RepeatUntilCalcArrayType p__root = null) : base(p__io)
 {
     m_parent = p__parent;
     m_root   = p__root;
     _read();
 }
예제 #3
0
 public RepeatUntilCalcArrayType(KaitaiStream p__io, KaitaiStruct p__parent = null, RepeatUntilCalcArrayType p__root = null) : base(p__io)
 {
     m_parent       = p__parent;
     m_root         = p__root ?? this;
     f_recsAccessor = false;
     f_firstRec     = false;
     _read();
 }