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