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