X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=c_sharp%2Fsrc%2Forg%2Fldk%2Fstructs%2FChannelTypeFeatures.cs;h=4bd502d5d817a8c05a3bb3e9ad1178e0869f7f80;hb=3d1f246d05172683acd3b81836de4e4e9f0c1afd;hp=b575a7fd1331bb1f98739af9af23ba7cac2ea992;hpb=a32b8843c44637ebd82c83390d17db573b972153;p=ldk-java diff --git a/c_sharp/src/org/ldk/structs/ChannelTypeFeatures.cs b/c_sharp/src/org/ldk/structs/ChannelTypeFeatures.cs index b575a7fd..4bd502d5 100644 --- a/c_sharp/src/org/ldk/structs/ChannelTypeFeatures.cs +++ b/c_sharp/src/org/ldk/structs/ChannelTypeFeatures.cs @@ -59,6 +59,18 @@ public class ChannelTypeFeatures : CommonBase { return ret_hu_conv; } + /** + * Generates a non-cryptographic 64-bit hash of the ChannelTypeFeatures. + */ + public long hash() { + long ret = bindings.ChannelTypeFeatures_hash(this.ptr); + GC.KeepAlive(this); + return ret; + } + + public override int GetHashCode() { + return (int)this.hash(); + } /** * Create a blank Features with no features set */