[C#] Update auto-generated C# bindings
[ldk-java] / c_sharp / src / org / ldk / structs / ErrorMessage.cs
index 9a4135a76e6057dd4384925ddb3df81fcc6090ef..fe33ec1925a93b206f50f03d29362b674ed42b3a 100644 (file)
@@ -102,6 +102,18 @@ public class ErrorMessage : CommonBase {
                return ret_hu_conv;
        }
 
+       /**
+        * Generates a non-cryptographic 64-bit hash of the ErrorMessage.
+        */
+       public long hash() {
+               long ret = bindings.ErrorMessage_hash(this.ptr);
+               GC.KeepAlive(this);
+               return ret;
+       }
+
+       public override int GetHashCode() {
+               return (int)this.hash();
+       }
        /**
         * Checks if two ErrorMessages contain equal inner contents.
         * This ignores pointers and is_owned flags and looks at the values in fields.