Пример #1
0
 public Record(KaitaiStream p__io, ProcessCoerceUsertype2 p__parent = null, ProcessCoerceUsertype2 p__root = null) : base(p__io)
 {
     m_parent = p__parent;
     m_root   = p__root;
     f_buf    = false;
     _read();
 }
Пример #2
0
        public void TestProcessCoerceUsertype2()
        {
            var r = ProcessCoerceUsertype2.FromFile(SourceFile("process_coerce_bytes.bin"));

            Assert.AreEqual(r.Records[0].Flag, 0);
            Assert.AreEqual(r.Records[0].Buf.Value, 0x41414141);
            Assert.AreEqual(r.Records[1].Flag, 1);
            Assert.AreEqual(r.Records[1].Buf.Value, 0x42424242);
        }
Пример #3
0
        public void TestProcessCoerceUsertype2()
        {
            var r = ProcessCoerceUsertype2.FromFile(SourceFile("process_coerce_bytes.bin"));

            Assert.AreEqual(r.Records[0].Flag, 0);
            Assert.AreEqual(r.Records[0].Buf.Value, 1094795585);
            Assert.AreEqual(r.Records[1].Flag, 1);
            Assert.AreEqual(r.Records[1].Buf.Value, 1111638594);
        }
Пример #4
0
 public ProcessCoerceUsertype2(KaitaiStream p__io, KaitaiStruct p__parent = null, ProcessCoerceUsertype2 p__root = null) : base(p__io)
 {
     m_parent = p__parent;
     m_root   = p__root ?? this;
     _read();
 }
Пример #5
0
 public Foo(KaitaiStream p__io, ProcessCoerceUsertype2.Record p__parent = null, ProcessCoerceUsertype2 p__root = null) : base(p__io)
 {
     m_parent = p__parent;
     m_root   = p__root;
     _read();
 }