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