public IEnumerable <Op> ToOps() { using (ScriptReader reader = new ScriptReader(_Script)) { return(reader.ToEnumerable().ToList()); } }
public IEnumerable <Op> ToOps() { ScriptReader reader = new ScriptReader(_Script) { IgnoreIncoherentPushData = true }; return(reader.ToEnumerable()); }
public override string ToString() { // by default StringBuilder capacity is 16 (too small) // 300 is enough for P2PKH var builder = new StringBuilder(300); var reader = new ScriptReader(_Script); Op op; while((op = reader.Read()) != null) { builder.Append(" "); builder.Append(op); } return builder.ToString().Trim(); }
public override string ToString() { StringBuilder builder = new StringBuilder(); ScriptReader reader = new ScriptReader(_Script) { IgnoreIncoherentPushData = true }; Op op; while ((op = reader.Read()) != null) { builder.Append(" "); builder.Append(op); } return(builder.ToString().Trim()); }
public IEnumerable<Op> ToOps() { ScriptReader reader = new ScriptReader(_Script); return reader.ToEnumerable(); }
public IEnumerable <Op> ToOps() { ScriptReader reader = new ScriptReader(_Script); return(reader.ToEnumerable()); }
public override string ToString() { StringBuilder builder = new StringBuilder(); ScriptReader reader = new ScriptReader(_Script) { IgnoreIncoherentPushData = true }; Op op = null; while((op = reader.Read()) != null) { builder.Append(" "); builder.Append(op.ToString()); } return builder == null ? "" : builder.ToString().Trim(); }
public IEnumerable<Op> ToOps() { ScriptReader reader = new ScriptReader(_Script) { IgnoreIncoherentPushData = true }; return reader.ToEnumerable(); }