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