[TS] Update auto-generated bindings to LDK-C-Bindings 0.0.123.1
[ldk-java] / src / main / java / org / ldk / structs / Result_ChannelTypeFeaturesDecodeErrorZ.java
index f503e7cf0c73183cc4f6409cb4c66b9193acd744..e485a360e09b84713833e842d520736b7b57935c 100644 (file)
@@ -13,6 +13,10 @@ public class Result_ChannelTypeFeaturesDecodeErrorZ extends CommonBase {
                if (ptr != 0) { bindings.CResult_ChannelTypeFeaturesDecodeErrorZ_free(ptr); } super.finalize();
        }
 
+       protected void force_free() {
+               if (ptr != 0) { bindings.CResult_ChannelTypeFeaturesDecodeErrorZ_free(ptr); ptr = 0; }
+       }
+
        static Result_ChannelTypeFeaturesDecodeErrorZ constr_from_ptr(long ptr) {
                if (bindings.CResult_ChannelTypeFeaturesDecodeErrorZ_is_ok(ptr)) {
                        return new Result_ChannelTypeFeaturesDecodeErrorZ_OK(null, ptr);
@@ -46,7 +50,7 @@ public class Result_ChannelTypeFeaturesDecodeErrorZ extends CommonBase {
         * Creates a new CResult_ChannelTypeFeaturesDecodeErrorZ in the success state.
         */
        public static Result_ChannelTypeFeaturesDecodeErrorZ ok(org.ldk.structs.ChannelTypeFeatures o) {
-               long ret = bindings.CResult_ChannelTypeFeaturesDecodeErrorZ_ok(o == null ? 0 : o.ptr);
+               long ret = bindings.CResult_ChannelTypeFeaturesDecodeErrorZ_ok(o.ptr);
                Reference.reachabilityFence(o);
                if (ret >= 0 && ret <= 4096) { return null; }
                Result_ChannelTypeFeaturesDecodeErrorZ ret_hu_conv = Result_ChannelTypeFeaturesDecodeErrorZ.constr_from_ptr(ret);
@@ -62,6 +66,7 @@ public class Result_ChannelTypeFeaturesDecodeErrorZ extends CommonBase {
                Reference.reachabilityFence(e);
                if (ret >= 0 && ret <= 4096) { return null; }
                Result_ChannelTypeFeaturesDecodeErrorZ ret_hu_conv = Result_ChannelTypeFeaturesDecodeErrorZ.constr_from_ptr(ret);
+               if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.add(e); };
                return ret_hu_conv;
        }