public Record(KaitaiStream p__io, ProcessCoerceBytes p__parent = null, ProcessCoerceBytes p__root = null) : base(p__io) { m_parent = p__parent; m_root = p__root; f_buf = false; _read(); }
public void TestProcessCoerceBytes() { var r = ProcessCoerceBytes.FromFile(SourceFile("process_coerce_bytes.bin")); Assert.AreEqual(r.Records[0].Flag, 0); Assert.AreEqual(r.Records[0].Buf, "AAAA"); Assert.AreEqual(r.Records[1].Flag, 1); Assert.AreEqual(r.Records[1].Buf, "BBBB"); }
public void TestProcessCoerceBytes() { var r = ProcessCoerceBytes.FromFile(SourceFile("process_coerce_bytes.bin")); Assert.AreEqual(r.Records[0].Flag, 0); Assert.AreEqual(r.Records[0].Buf, new byte[] { 65, 65, 65, 65 }); Assert.AreEqual(r.Records[1].Flag, 1); Assert.AreEqual(r.Records[1].Buf, new byte[] { 66, 66, 66, 66 }); }
public ProcessCoerceBytes(KaitaiStream p__io, KaitaiStruct p__parent = null, ProcessCoerceBytes p__root = null) : base(p__io) { m_parent = p__parent; m_root = p__root ?? this; _read(); }