+ /**
+ * Utility method to constructs a new InvalidOnion-variant HTLCDestination
+ */
+ public static HTLCDestination invalid_onion() {
+ long ret = bindings.HTLCDestination_invalid_onion();
+ 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;
+ }
+