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(); }
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); }
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); }
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(); }
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(); }