[C#] Update auto-generated bindings to LDK 0.0.123
[ldk-java] / c_sharp / src / org / ldk / structs / SendSuccess.cs
index 4ddb4c9620efc16f96ca3766c1c5da80c35716c2..b7e4ee9d4b524e248986b5ad2c9db17d1f292144 100644 (file)
@@ -81,12 +81,24 @@ public class SendSuccess : CommonBase {
                return ret_hu_conv;
        }
 
+       /**
+        * Generates a non-cryptographic 64-bit hash of the SendSuccess.
+        */
+       public long hash() {
+               long ret = bindings.SendSuccess_hash(this.ptr);
+               GC.KeepAlive(this);
+               return ret;
+       }
+
+       public override int GetHashCode() {
+               return (int)this.hash();
+       }
        /**
         * Checks if two SendSuccesss contain equal inner contents.
         * This ignores pointers and is_owned flags and looks at the values in fields.
         */
        public bool eq(org.ldk.structs.SendSuccess b) {
-               bool ret = bindings.SendSuccess_eq(this.ptr, b == null ? 0 : b.ptr);
+               bool ret = bindings.SendSuccess_eq(this.ptr, b.ptr);
                GC.KeepAlive(this);
                GC.KeepAlive(b);
                return ret;