+ byte[] __payment_hash_conv = InternalUtils.decodeUint8Array(__payment_hash);
+ byte[] __payment_id_conv = InternalUtils.decodeUint8Array(__payment_id);
+ Result_RouteLightningErrorZ ret = arg.find_route_with_id(_payer_conv, _route_params_hu_conv, _first_hops_conv_16_arr, _inflight_htlcs_hu_conv, __payment_hash_conv, __payment_id_conv);
+ GC.KeepAlive(arg);
+ long result = ret == null ? 0 : ret.clone_ptr();
+ return result;
+ }
+ public long create_blinded_payment_paths(long _recipient, long _first_hops, long _tlvs, long _amount_msats) {
+ byte[] _recipient_conv = InternalUtils.decodeUint8Array(_recipient);
+ int _first_hops_conv_16_len = InternalUtils.getArrayLength(_first_hops);
+ ChannelDetails[] _first_hops_conv_16_arr = new ChannelDetails[_first_hops_conv_16_len];
+ for (int q = 0; q < _first_hops_conv_16_len; q++) {
+ long _first_hops_conv_16 = InternalUtils.getU64ArrayElem(_first_hops, q);
+ org.ldk.structs.ChannelDetails _first_hops_conv_16_hu_conv = null; if (_first_hops_conv_16 < 0 || _first_hops_conv_16 > 4096) { _first_hops_conv_16_hu_conv = new org.ldk.structs.ChannelDetails(null, _first_hops_conv_16); }
+ if (_first_hops_conv_16_hu_conv != null) { _first_hops_conv_16_hu_conv.ptrs_to.AddLast(this); };
+ _first_hops_conv_16_arr[q] = _first_hops_conv_16_hu_conv;
+ }
+ bindings.free_buffer(_first_hops);
+ org.ldk.structs.ReceiveTlvs _tlvs_hu_conv = null; if (_tlvs < 0 || _tlvs > 4096) { _tlvs_hu_conv = new org.ldk.structs.ReceiveTlvs(null, _tlvs); }
+ if (_tlvs_hu_conv != null) { _tlvs_hu_conv.ptrs_to.AddLast(this); };
+ Result_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ ret = arg.create_blinded_payment_paths(_recipient_conv, _first_hops_conv_16_arr, _tlvs_hu_conv, _amount_msats);