public void TestProcessRepeatUsertype()
        {
            var r = ProcessRepeatUsertype.FromFile(SourceFile("process_xor_4.bin"));

            Assert.AreEqual(r.Blocks[0].A, -1975704206);
            Assert.AreEqual(r.Blocks[0].B, 20);
            Assert.AreEqual(r.Blocks[1].A, 279597642);
            Assert.AreEqual(r.Blocks[1].B, 68);
        }
Esempio n. 2
0
 public Block(KaitaiStream p__io, ProcessRepeatUsertype p__parent = null, ProcessRepeatUsertype p__root = null) : base(p__io)
 {
     m_parent = p__parent;
     m_root   = p__root;
     _read();
 }
Esempio n. 3
0
 public ProcessRepeatUsertype(KaitaiStream p__io, KaitaiStruct p__parent = null, ProcessRepeatUsertype p__root = null) : base(p__io)
 {
     m_parent = p__parent;
     m_root   = p__root ?? this;
     _read();
 }