+ /**
+ * Utility method to constructs a new InvalidForward-variant HTLCDestination
+ */
+ public static HTLCDestination invalid_forward(long requested_forward_scid) {
+ long ret = bindings.HTLCDestination_invalid_forward(requested_forward_scid);
+ Reference.reachabilityFence(requested_forward_scid);
+ if (ret >= 0 && ret <= 4096) { return null; }
+ org.ldk.structs.HTLCDestination ret_hu_conv = org.ldk.structs.HTLCDestination.constr_from_ptr(ret);
+ if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.add(ret_hu_conv); };
+ return ret_hu_conv;
+ }
+