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