- public static NodeInfo constructor_new(long[] channels_arg, RoutingFees lowest_inbound_channel_fees_arg, NodeFeatures announcement_info_arg_features_arg, int announcement_info_arg_last_update_arg, byte[] announcement_info_arg_rgb_arg, byte[] announcement_info_arg_alias_arg, NetAddress[] announcement_info_arg_addresses_arg, NodeAnnouncement announcement_info_arg_announcement_message_arg) {
- uint32_t ret = bindings.NodeInfo_new(channels_arg, lowest_inbound_channel_fees_arg == null ? 0 : lowest_inbound_channel_fees_arg.ptr & ~1, bindings.NodeAnnouncementInfo_new(announcement_info_arg_features_arg == null ? 0 : announcement_info_arg_features_arg.ptr & ~1, announcement_info_arg_last_update_arg, announcement_info_arg_rgb_arg, announcement_info_arg_alias_arg, (uint32_t[])Arrays.stream(announcement_info_arg_addresses_arg).map(arr_conv_12 -> arr_conv_12.ptr).toArray(), announcement_info_arg_announcement_message_arg == null ? 0 : announcement_info_arg_announcement_message_arg.ptr & ~1));
- NodeInfo ret_hu_conv = new NodeInfo(null, ret);
- ret_hu_conv.ptrs_to.add(lowest_inbound_channel_fees_arg);
- ret_hu_conv.ptrs_to.add(announcement_info_arg_features_arg);
- /* TODO 2 NetAddress */;
- ret_hu_conv.ptrs_to.add(announcement_info_arg_announcement_message_arg);
+ public NodeInfo clone() {
+ number ret = bindings.NodeInfo_clone(this.ptr);
+ const ret_hu_conv: NodeInfo = new NodeInfo(null, ret);
+ ret_hu_conv.ptrs_to.add(this);