Update auto-generated bindings
[ldk-java] / src / main / java / org / ldk / structs / InvoiceSignature.java
index 690787d500afe7b9e42843f4d205ab89a8ad6a22..c6f759108924e587594b5a943731b8224a737a2e 100644 (file)
@@ -19,14 +19,8 @@ public class InvoiceSignature extends CommonBase {
                if (ptr != 0) { bindings.InvoiceSignature_free(ptr); }
        }
 
-       /**
-        * Checks if two InvoiceSignatures contain equal inner contents.
-        * This ignores pointers and is_owned flags and looks at the values in fields.
-        * Two objects with NULL inner values will be considered "equal" here.
-        */
-       public boolean eq(InvoiceSignature b) {
-               boolean ret = bindings.InvoiceSignature_eq(this.ptr, b == null ? 0 : b.ptr & ~1);
-               this.ptrs_to.add(b);
+       long clone_ptr() {
+               long ret = bindings.InvoiceSignature_clone_ptr(this.ptr);
                return ret;
        }
 
@@ -35,10 +29,21 @@ public class InvoiceSignature extends CommonBase {
         */
        public InvoiceSignature clone() {
                long ret = bindings.InvoiceSignature_clone(this.ptr);
-               if (ret < 1024) { return null; }
-               InvoiceSignature ret_hu_conv = new InvoiceSignature(null, ret);
+               if (ret >= 0 && ret <= 4096) { return null; }
+               InvoiceSignature ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new InvoiceSignature(null, ret); }
                ret_hu_conv.ptrs_to.add(this);
                return ret_hu_conv;
        }
 
+       /**
+        * Checks if two InvoiceSignatures contain equal inner contents.
+        * This ignores pointers and is_owned flags and looks at the values in fields.
+        * Two objects with NULL inner values will be considered "equal" here.
+        */
+       public boolean eq(InvoiceSignature b) {
+               boolean ret = bindings.InvoiceSignature_eq(this.ptr, b == null ? 0 : b.ptr & ~1);
+               this.ptrs_to.add(b);
+               return ret;
+       }
+
 }