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