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