コード例 #1
0
 public Record(KaitaiStream p__io, ProcessCoerceUsertype1 p__parent = null, ProcessCoerceUsertype1 p__root = null) : base(p__io)
 {
     m_parent = p__parent;
     m_root   = p__root;
     f_buf    = false;
     _read();
 }
コード例 #2
0
        public void TestProcessCoerceUsertype1()
        {
            var r = ProcessCoerceUsertype1.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);
        }
コード例 #3
0
        public void TestProcessCoerceUsertype1()
        {
            var r = ProcessCoerceUsertype1.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);
        }
コード例 #4
0
 public ProcessCoerceUsertype1(KaitaiStream p__io, KaitaiStruct p__parent = null, ProcessCoerceUsertype1 p__root = null) : base(p__io)
 {
     m_parent = p__parent;
     m_root   = p__root ?? this;
     _read();
 }
コード例 #5
0
 public Foo(KaitaiStream p__io, ProcessCoerceUsertype1.Record p__parent = null, ProcessCoerceUsertype1 p__root = null) : base(p__io)
 {
     m_parent = p__parent;
     m_root   = p__root;
     _read();
 }