X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Forg%2Fldk%2Fstructs%2FTwoTuple_PaymentHashPaymentSecretZ.java;h=350ad990abd7f6563e6b37a0ab75c74a54a27e67;hb=1854b5cebef22ace9e9e4dd191f609818df9ce08;hp=f443be0e79cea258cbe1ef77db26514e07eceee1;hpb=5fd405f7a48aaeca779c45c88ec6b3d3d3dbf0e4;p=ldk-java diff --git a/src/main/java/org/ldk/structs/TwoTuple_PaymentHashPaymentSecretZ.java b/src/main/java/org/ldk/structs/TwoTuple_PaymentHashPaymentSecretZ.java index f443be0e..350ad990 100644 --- a/src/main/java/org/ldk/structs/TwoTuple_PaymentHashPaymentSecretZ.java +++ b/src/main/java/org/ldk/structs/TwoTuple_PaymentHashPaymentSecretZ.java @@ -4,6 +4,7 @@ import org.ldk.impl.bindings; import org.ldk.enums.*; import org.ldk.util.*; import java.util.Arrays; +import java.lang.ref.Reference; import javax.annotation.Nullable; @@ -24,6 +25,7 @@ public class TwoTuple_PaymentHashPaymentSecretZ extends CommonBase { */ public byte[] get_a() { byte[] ret = bindings.C2Tuple_PaymentHashPaymentSecretZ_get_a(this.ptr); + Reference.reachabilityFence(this); return ret; } @@ -32,11 +34,13 @@ public class TwoTuple_PaymentHashPaymentSecretZ extends CommonBase { */ public byte[] get_b() { byte[] ret = bindings.C2Tuple_PaymentHashPaymentSecretZ_get_b(this.ptr); + Reference.reachabilityFence(this); return ret; } long clone_ptr() { long ret = bindings.C2Tuple_PaymentHashPaymentSecretZ_clone_ptr(this.ptr); + Reference.reachabilityFence(this); return ret; } @@ -46,6 +50,7 @@ public class TwoTuple_PaymentHashPaymentSecretZ extends CommonBase { */ public TwoTuple_PaymentHashPaymentSecretZ clone() { long ret = bindings.C2Tuple_PaymentHashPaymentSecretZ_clone(this.ptr); + Reference.reachabilityFence(this); if (ret >= 0 && ret <= 4096) { return null; } TwoTuple_PaymentHashPaymentSecretZ ret_hu_conv = new TwoTuple_PaymentHashPaymentSecretZ(null, ret); ret_hu_conv.ptrs_to.add(this); @@ -57,6 +62,8 @@ public class TwoTuple_PaymentHashPaymentSecretZ extends CommonBase { */ public static TwoTuple_PaymentHashPaymentSecretZ of(byte[] a, byte[] b) { long ret = bindings.C2Tuple_PaymentHashPaymentSecretZ_new(InternalUtils.check_arr_len(a, 32), InternalUtils.check_arr_len(b, 32)); + Reference.reachabilityFence(a); + Reference.reachabilityFence(b); if (ret >= 0 && ret <= 4096) { return null; } TwoTuple_PaymentHashPaymentSecretZ ret_hu_conv = new TwoTuple_PaymentHashPaymentSecretZ(null, ret); ret_hu_conv.ptrs_to.add(ret_hu_conv);