X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;ds=sidebyside;f=c_sharp%2Fsrc%2Forg%2Fldk%2Fstructs%2FExpiryTime.cs;h=bd8be08e8678569b4825e9942f1223381ab2cecc;hb=152d721883552dd92925833d15687d7d64d01c35;hp=9f4a52855959e1a55bc0ee1f2de51579547df83a;hpb=810f7404202e04f70db946ced7363b64ddaf4ce4;p=ldk-java diff --git a/c_sharp/src/org/ldk/structs/ExpiryTime.cs b/c_sharp/src/org/ldk/structs/ExpiryTime.cs index 9f4a5285..bd8be08e 100644 --- a/c_sharp/src/org/ldk/structs/ExpiryTime.cs +++ b/c_sharp/src/org/ldk/structs/ExpiryTime.cs @@ -35,7 +35,7 @@ public class ExpiryTime : CommonBase { } /** - * Checks if two ExpiryTimes contain equal inner contents. + * Generates a non-cryptographic 64-bit hash of the ExpiryTime. */ public long hash() { long ret = bindings.ExpiryTime_hash(this.ptr); @@ -52,7 +52,7 @@ public class ExpiryTime : CommonBase { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.ExpiryTime b) { - bool ret = bindings.ExpiryTime_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = bindings.ExpiryTime_eq(this.ptr, b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -76,7 +76,7 @@ public class ExpiryTime : CommonBase { } /** - * Construct an `ExpiryTime` from a `Duration`, dropping the sub-second part. + * Construct an `ExpiryTime` from a [`Duration`], dropping the sub-second part. */ public static ExpiryTime from_duration(long duration) { long ret = bindings.ExpiryTime_from_duration(duration); @@ -97,7 +97,7 @@ public class ExpiryTime : CommonBase { } /** - * Returns a reference to the underlying `Duration` (=expiry time) + * Returns a reference to the underlying [`Duration`] (=expiry time) */ public long as_duration() { long ret = bindings.ExpiryTime_as_duration(this.ptr);