X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Forg%2Fldk%2Fstructs%2FResult_PayeePubKeySecp256k1ErrorZ.java;h=ab4f5434b388e372695a02688a691cc01ff939be;hb=ffdd56c967087cba7548599934585b8a9a3102e2;hp=298eae93abd6e8a4f3a76984b2a4d6c6eef0e690;hpb=7b75443b8305c6a24d3c08520e1785e9d39960e4;p=ldk-java diff --git a/src/main/java/org/ldk/structs/Result_PayeePubKeySecp256k1ErrorZ.java b/src/main/java/org/ldk/structs/Result_PayeePubKeySecp256k1ErrorZ.java index 298eae93..ab4f5434 100644 --- a/src/main/java/org/ldk/structs/Result_PayeePubKeySecp256k1ErrorZ.java +++ b/src/main/java/org/ldk/structs/Result_PayeePubKeySecp256k1ErrorZ.java @@ -13,6 +13,10 @@ public class Result_PayeePubKeySecp256k1ErrorZ extends CommonBase { if (ptr != 0) { bindings.CResult_PayeePubKeySecp256k1ErrorZ_free(ptr); } super.finalize(); } + protected void force_free() { + if (ptr != 0) { bindings.CResult_PayeePubKeySecp256k1ErrorZ_free(ptr); ptr = 0; } + } + static Result_PayeePubKeySecp256k1ErrorZ constr_from_ptr(long ptr) { if (bindings.CResult_PayeePubKeySecp256k1ErrorZ_is_ok(ptr)) { return new Result_PayeePubKeySecp256k1ErrorZ_OK(null, ptr); @@ -43,7 +47,7 @@ public class Result_PayeePubKeySecp256k1ErrorZ extends CommonBase { * Creates a new CResult_PayeePubKeySecp256k1ErrorZ in the success state. */ public static Result_PayeePubKeySecp256k1ErrorZ ok(org.ldk.structs.PayeePubKey o) { - long ret = bindings.CResult_PayeePubKeySecp256k1ErrorZ_ok(o == null ? 0 : o.ptr); + long ret = bindings.CResult_PayeePubKeySecp256k1ErrorZ_ok(o.ptr); Reference.reachabilityFence(o); if (ret >= 0 && ret <= 4096) { return null; } Result_PayeePubKeySecp256k1ErrorZ ret_hu_conv = Result_PayeePubKeySecp256k1ErrorZ.constr_from_ptr(ret);