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 bindings to LDK 0.0.123
[ldk-java]
/
c_sharp
/
src
/
org
/
ldk
/
structs
/
AnchorDescriptor.cs
diff --git
a/c_sharp/src/org/ldk/structs/AnchorDescriptor.cs
b/c_sharp/src/org/ldk/structs/AnchorDescriptor.cs
index 0fd351310cbc08a5a2e84734f977a5e490776717..b452326b76e06222958f16c64ca5e4bae8c47ef4 100644
(file)
--- a/
c_sharp/src/org/ldk/structs/AnchorDescriptor.cs
+++ b/
c_sharp/src/org/ldk/structs/AnchorDescriptor.cs
@@
-31,7
+31,7
@@
public class AnchorDescriptor : CommonBase {
* The parameters required to derive the signer for the anchor input.
*/
public void set_channel_derivation_parameters(org.ldk.structs.ChannelDerivationParameters val) {
* The parameters required to derive the signer for the anchor input.
*/
public void set_channel_derivation_parameters(org.ldk.structs.ChannelDerivationParameters val) {
- bindings.AnchorDescriptor_set_channel_derivation_parameters(this.ptr, val
== null ? 0 : val
.ptr);
+ bindings.AnchorDescriptor_set_channel_derivation_parameters(this.ptr, val.ptr);
GC.KeepAlive(this);
GC.KeepAlive(val);
if (this != null) { this.ptrs_to.AddLast(val); };
GC.KeepAlive(this);
GC.KeepAlive(val);
if (this != null) { this.ptrs_to.AddLast(val); };
@@
-55,7
+55,7
@@
public class AnchorDescriptor : CommonBase {
* output.
*/
public void set_outpoint(org.ldk.structs.OutPoint val) {
* output.
*/
public void set_outpoint(org.ldk.structs.OutPoint val) {
- bindings.AnchorDescriptor_set_outpoint(this.ptr, val
== null ? 0 : val
.ptr);
+ bindings.AnchorDescriptor_set_outpoint(this.ptr, val.ptr);
GC.KeepAlive(this);
GC.KeepAlive(val);
if (this != null) { this.ptrs_to.AddLast(val); };
GC.KeepAlive(this);
GC.KeepAlive(val);
if (this != null) { this.ptrs_to.AddLast(val); };
@@
-65,7
+65,7
@@
public class AnchorDescriptor : CommonBase {
* Constructs a new AnchorDescriptor given each field
*/
public static AnchorDescriptor of(org.ldk.structs.ChannelDerivationParameters channel_derivation_parameters_arg, org.ldk.structs.OutPoint outpoint_arg) {
* Constructs a new AnchorDescriptor given each field
*/
public static AnchorDescriptor of(org.ldk.structs.ChannelDerivationParameters channel_derivation_parameters_arg, org.ldk.structs.OutPoint outpoint_arg) {
- long ret = bindings.AnchorDescriptor_new(channel_derivation_parameters_arg
== null ? 0 : channel_derivation_parameters_arg.ptr, outpoint_arg == null ? 0 :
outpoint_arg.ptr);
+ long ret = bindings.AnchorDescriptor_new(channel_derivation_parameters_arg
.ptr,
outpoint_arg.ptr);
GC.KeepAlive(channel_derivation_parameters_arg);
GC.KeepAlive(outpoint_arg);
if (ret >= 0 && ret <= 4096) { return null; }
GC.KeepAlive(channel_derivation_parameters_arg);
GC.KeepAlive(outpoint_arg);
if (ret >= 0 && ret <= 4096) { return null; }
@@
-100,7
+100,7
@@
public class AnchorDescriptor : CommonBase {
* Two objects with NULL inner values will be considered "equal" here.
*/
public bool eq(org.ldk.structs.AnchorDescriptor b) {
* Two objects with NULL inner values will be considered "equal" here.
*/
public bool eq(org.ldk.structs.AnchorDescriptor b) {
- bool ret = bindings.AnchorDescriptor_eq(this.ptr, b
== null ? 0 : b
.ptr);
+ bool ret = bindings.AnchorDescriptor_eq(this.ptr, b.ptr);
GC.KeepAlive(this);
GC.KeepAlive(b);
if (this != null) { this.ptrs_to.AddLast(b); };
GC.KeepAlive(this);
GC.KeepAlive(b);
if (this != null) { this.ptrs_to.AddLast(b); };