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