[C#] Update auto-generated C# bindings
[ldk-java] / c_sharp / src / org / ldk / structs / UntrustedString.cs
index 72ba39859dbee952f92eea6761fadb60a5bc359b..e2d653780dfb53c0673b147695653b03be6c078d 100644 (file)
@@ -76,6 +76,18 @@ public class UntrustedString : CommonBase {
                if (!(o is UntrustedString)) return false;
                return this.eq((UntrustedString)o);
        }
+       /**
+        * Generates a non-cryptographic 64-bit hash of the UntrustedString.
+        */
+       public long hash() {
+               long ret = bindings.UntrustedString_hash(this.ptr);
+               GC.KeepAlive(this);
+               return ret;
+       }
+
+       public override int GetHashCode() {
+               return (int)this.hash();
+       }
        /**
         * Serialize the UntrustedString object into a byte array which can be read by UntrustedString_read
         */