+ public static DirectionalChannelInfo constructor_new(number last_update_arg, boolean enabled_arg, number cltv_expiry_delta_arg, number htlc_minimum_msat_arg, Option_u64Z htlc_maximum_msat_arg, RoutingFees fees_arg, ChannelUpdate last_update_message_arg) {
+ number ret = bindings.DirectionalChannelInfo_new(last_update_arg, enabled_arg, cltv_expiry_delta_arg, htlc_minimum_msat_arg, htlc_maximum_msat_arg.ptr, fees_arg == null ? 0 : fees_arg.ptr & ~1, last_update_message_arg == null ? 0 : last_update_message_arg.ptr & ~1);
+ const ret_hu_conv: DirectionalChannelInfo = new DirectionalChannelInfo(null, ret);
+ ret_hu_conv.ptrs_to.add(ret_hu_conv);
+ return ret_hu_conv;
+ }
+
+ public number clone_ptr() {
+ number ret = bindings.DirectionalChannelInfo_clone_ptr(this.ptr);
+ return ret;
+ }
+
+ public DirectionalChannelInfo clone() {
+ number ret = bindings.DirectionalChannelInfo_clone(this.ptr);
+ const ret_hu_conv: DirectionalChannelInfo = new DirectionalChannelInfo(null, ret);
+ ret_hu_conv.ptrs_to.add(this);
+ return ret_hu_conv;
+ }
+
+ public Uint8Array write() {
+ Uint8Array ret = bindings.DirectionalChannelInfo_write(this.ptr);