Update auto-generated bindings
[ldk-java] / src / main / java / org / ldk / structs / TwoTuple_OutPointScriptZ.java
index b12838426014230392db9779fb0d540b32a6ac53..2cb31e27bfa37983156d66390bd776e66907362a 100644 (file)
@@ -24,8 +24,8 @@ public class TwoTuple_OutPointScriptZ extends CommonBase {
         */
        public OutPoint get_a() {
                long ret = bindings.C2Tuple_OutPointScriptZ_get_a(this.ptr);
-               if (ret < 1024) { return null; }
-               OutPoint ret_hu_conv = new OutPoint(null, ret);
+               if (ret >= 0 && ret <= 4096) { return null; }
+               OutPoint ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new OutPoint(null, ret); }
                ret_hu_conv.ptrs_to.add(this);
                return ret_hu_conv;
        }
@@ -38,13 +38,18 @@ public class TwoTuple_OutPointScriptZ extends CommonBase {
                return ret;
        }
 
+       long clone_ptr() {
+               long ret = bindings.C2Tuple_OutPointScriptZ_clone_ptr(this.ptr);
+               return ret;
+       }
+
        /**
         * Creates a new tuple which has the same data as `orig`
         * but with all dynamically-allocated buffers duplicated in new buffers.
         */
        public TwoTuple_OutPointScriptZ clone() {
                long ret = bindings.C2Tuple_OutPointScriptZ_clone(this.ptr);
-               if (ret < 1024) { return null; }
+               if (ret >= 0 && ret <= 4096) { return null; }
                TwoTuple_OutPointScriptZ ret_hu_conv = new TwoTuple_OutPointScriptZ(null, ret);
                ret_hu_conv.ptrs_to.add(this);
                return ret_hu_conv;
@@ -55,10 +60,9 @@ public class TwoTuple_OutPointScriptZ extends CommonBase {
         */
        public static TwoTuple_OutPointScriptZ of(OutPoint a, byte[] b) {
                long ret = bindings.C2Tuple_OutPointScriptZ_new(a == null ? 0 : a.ptr & ~1, b);
-               if (ret < 1024) { return null; }
+               if (ret >= 0 && ret <= 4096) { return null; }
                TwoTuple_OutPointScriptZ ret_hu_conv = new TwoTuple_OutPointScriptZ(null, ret);
                ret_hu_conv.ptrs_to.add(ret_hu_conv);
-               ret_hu_conv.ptrs_to.add(a);
                return ret_hu_conv;
        }