[C#] Update auto-generated C# bindings
[ldk-java] / c_sharp / src / org / ldk / structs / ChannelFeatures.cs
index f598bab76d9398edd6842f3b26d12f995874465d..d6e08e340c5ac15528c7624a28c6caa6867cfd3b 100644 (file)
@@ -50,6 +50,18 @@ public class ChannelFeatures : CommonBase {
                return ret_hu_conv;
        }
 
+       /**
+        * Generates a non-cryptographic 64-bit hash of the ChannelFeatures.
+        */
+       public long hash() {
+               long ret = bindings.ChannelFeatures_hash(this.ptr);
+               GC.KeepAlive(this);
+               return ret;
+       }
+
+       public override int GetHashCode() {
+               return (int)this.hash();
+       }
        /**
         * Create a blank Features with no features set
         */