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
/
Init.cs
diff --git
a/c_sharp/src/org/ldk/structs/Init.cs
b/c_sharp/src/org/ldk/structs/Init.cs
index 407b3436c21d3c3012920fade33e9d2a45debe26..bc5f9ca63695233f29939b51e81106feee9c533d 100644
(file)
--- a/
c_sharp/src/org/ldk/structs/Init.cs
+++ b/
c_sharp/src/org/ldk/structs/Init.cs
@@
-134,6
+134,18
@@
public class Init : CommonBase {
return ret_hu_conv;
}
return ret_hu_conv;
}
+ /**
+ * Generates a non-cryptographic 64-bit hash of the Init.
+ */
+ public long hash() {
+ long ret = bindings.Init_hash(this.ptr);
+ GC.KeepAlive(this);
+ return ret;
+ }
+
+ public override int GetHashCode() {
+ return (int)this.hash();
+ }
/**
* Checks if two Inits contain equal inner contents.
* This ignores pointers and is_owned flags and looks at the values in fields.
/**
* Checks if two Inits contain equal inner contents.
* This ignores pointers and is_owned flags and looks at the values in fields.