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