X-Git-Url: http://git.bitcoin.ninja/index.cgi?p=ldk-java;a=blobdiff_plain;f=c_sharp%2Fsrc%2Forg%2Fldk%2Fstructs%2FTransactionU16LenLimited.cs;h=bf3c9eccbd1d7afce81e03c40d22cf059b08c82d;hp=afba6556ff15acdd6be1723e36be5dae1872f043;hb=3d1f246d05172683acd3b81836de4e4e9f0c1afd;hpb=a32b8843c44637ebd82c83390d17db573b972153 diff --git a/c_sharp/src/org/ldk/structs/TransactionU16LenLimited.cs b/c_sharp/src/org/ldk/structs/TransactionU16LenLimited.cs index afba6556..bf3c9ecc 100644 --- a/c_sharp/src/org/ldk/structs/TransactionU16LenLimited.cs +++ b/c_sharp/src/org/ldk/structs/TransactionU16LenLimited.cs @@ -36,6 +36,18 @@ public class TransactionU16LenLimited : CommonBase { return ret_hu_conv; } + /** + * Generates a non-cryptographic 64-bit hash of the TransactionU16LenLimited. + */ + public long hash() { + long ret = bindings.TransactionU16LenLimited_hash(this.ptr); + GC.KeepAlive(this); + return ret; + } + + public override int GetHashCode() { + return (int)this.hash(); + } /** * Checks if two TransactionU16LenLimiteds contain equal inner contents. * This ignores pointers and is_owned flags and looks at the values in fields.