if (ptr != 0) { bindings.ChannelConfig_free(ptr); }
}
- public ChannelConfig clone() {
- long ret = bindings.ChannelConfig_clone(this.ptr);
- ChannelConfig ret_hu_conv = new ChannelConfig(null, ret);
- return ret_hu_conv;
- }
-
public int get_fee_proportional_millionths() {
int ret = bindings.ChannelConfig_get_fee_proportional_millionths(this.ptr);
return ret;
public static ChannelConfig constructor_new(int fee_proportional_millionths_arg, boolean announced_channel_arg, boolean commit_upfront_shutdown_pubkey_arg) {
long ret = bindings.ChannelConfig_new(fee_proportional_millionths_arg, announced_channel_arg, commit_upfront_shutdown_pubkey_arg);
ChannelConfig ret_hu_conv = new ChannelConfig(null, ret);
+ ret_hu_conv.ptrs_to.add(ret_hu_conv);
+ return ret_hu_conv;
+ }
+
+ public ChannelConfig clone() {
+ long ret = bindings.ChannelConfig_clone(this.ptr);
+ ChannelConfig ret_hu_conv = new ChannelConfig(null, ret);
+ ret_hu_conv.ptrs_to.add(this);
return ret_hu_conv;
}
public static ChannelConfig constructor_default() {
long ret = bindings.ChannelConfig_default();
ChannelConfig ret_hu_conv = new ChannelConfig(null, ret);
+ ret_hu_conv.ptrs_to.add(ret_hu_conv);
return ret_hu_conv;
}
return ret;
}
- public static ChannelConfig constructor_read(byte[] ser) {
+ public static Result_ChannelConfigDecodeErrorZ constructor_read(byte[] ser) {
long ret = bindings.ChannelConfig_read(ser);
- ChannelConfig ret_hu_conv = new ChannelConfig(null, ret);
+ Result_ChannelConfigDecodeErrorZ ret_hu_conv = Result_ChannelConfigDecodeErrorZ.constr_from_ptr(ret);
return ret_hu_conv;
}