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