* Payment parameters for relaying over [`Self::short_channel_id`].
*/
public void set_payment_relay(org.ldk.structs.PaymentRelay val) {
- bindings.ForwardTlvs_set_payment_relay(this.ptr, val == null ? 0 : val.ptr);
+ bindings.ForwardTlvs_set_payment_relay(this.ptr, val.ptr);
GC.KeepAlive(this);
GC.KeepAlive(val);
if (this != null) { this.ptrs_to.AddLast(val); };
* Payment constraints for relaying over [`Self::short_channel_id`].
*/
public void set_payment_constraints(org.ldk.structs.PaymentConstraints val) {
- bindings.ForwardTlvs_set_payment_constraints(this.ptr, val == null ? 0 : val.ptr);
+ bindings.ForwardTlvs_set_payment_constraints(this.ptr, val.ptr);
GC.KeepAlive(this);
GC.KeepAlive(val);
if (this != null) { this.ptrs_to.AddLast(val); };
* [`BlindedHop::encrypted_payload`]: crate::blinded_path::BlindedHop::encrypted_payload
*/
public void set_features(org.ldk.structs.BlindedHopFeatures val) {
- bindings.ForwardTlvs_set_features(this.ptr, val == null ? 0 : val.ptr);
+ bindings.ForwardTlvs_set_features(this.ptr, val.ptr);
GC.KeepAlive(this);
GC.KeepAlive(val);
if (this != null) { this.ptrs_to.AddLast(val); };
* Constructs a new ForwardTlvs given each field
*/
public static ForwardTlvs of(long short_channel_id_arg, org.ldk.structs.PaymentRelay payment_relay_arg, org.ldk.structs.PaymentConstraints payment_constraints_arg, org.ldk.structs.BlindedHopFeatures features_arg) {
- long ret = bindings.ForwardTlvs_new(short_channel_id_arg, payment_relay_arg == null ? 0 : payment_relay_arg.ptr, payment_constraints_arg == null ? 0 : payment_constraints_arg.ptr, features_arg == null ? 0 : features_arg.ptr);
+ long ret = bindings.ForwardTlvs_new(short_channel_id_arg, payment_relay_arg.ptr, payment_constraints_arg.ptr, features_arg.ptr);
GC.KeepAlive(short_channel_id_arg);
GC.KeepAlive(payment_relay_arg);
GC.KeepAlive(payment_constraints_arg);