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