* 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); };
* 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); };
* 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; }
* 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); };