projects
/
ldk-java
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[C#] Update auto-generated C# bindings
[ldk-java]
/
c_sharp
/
src
/
org
/
ldk
/
structs
/
Ping.cs
diff --git
a/c_sharp/src/org/ldk/structs/Ping.cs
b/c_sharp/src/org/ldk/structs/Ping.cs
index 3bdad4c0b92914ebcfd1896fdeceeae6bbdff802..cf5d834d8a2c721d5b750e9db0b3099d3866a6ad 100644
(file)
--- a/
c_sharp/src/org/ldk/structs/Ping.cs
+++ b/
c_sharp/src/org/ldk/structs/Ping.cs
@@
-88,6
+88,18
@@
public class Ping : CommonBase {
return ret_hu_conv;
}
return ret_hu_conv;
}
+ /**
+ * Generates a non-cryptographic 64-bit hash of the Ping.
+ */
+ public long hash() {
+ long ret = bindings.Ping_hash(this.ptr);
+ GC.KeepAlive(this);
+ return ret;
+ }
+
+ public override int GetHashCode() {
+ return (int)this.hash();
+ }
/**
* Checks if two Pings contain equal inner contents.
* This ignores pointers and is_owned flags and looks at the values in fields.
/**
* Checks if two Pings contain equal inner contents.
* This ignores pointers and is_owned flags and looks at the values in fields.