public static bool IsTor(this IPAddress address) { var bytes = address.GetAddressBytes(); return((Utils.ArrayEqual(bytes, 0, pchOnionCat, 0, pchOnionCat.Length) ? 0 : 1) == 0); }
public override bool Equals(object obj) { Script item = obj as Script; return(item != null && Utils.ArrayEqual(item._Script, _Script)); }
internal int FindAndDelete(Op op) { return(op == null ? 0 : FindAndDelete(o => o.Code == op.Code && Utils.ArrayEqual(o.PushData, op.PushData))); }
public bool Same(Script script) { return(Utils.ArrayEqual(script._Script, _Script)); }