[Java] Update auto-generated bindings to 0.0.105.0
[ldk-java] / src / main / java / org / ldk / structs / Result_SecretKeyErrorZ.java
index be4ce1732d560d77d56f1feb15ee5ac15f829322..a363f5108a8206fc2ddd565bd5e17f9205604977 100644 (file)
@@ -67,4 +67,22 @@ public class Result_SecretKeyErrorZ extends CommonBase {
                return ret;
        }
 
+       long clone_ptr() {
+               long ret = bindings.CResult_SecretKeyErrorZ_clone_ptr(this.ptr);
+               Reference.reachabilityFence(this);
+               return ret;
+       }
+
+       /**
+        * Creates a new CResult_SecretKeyErrorZ which has the same data as `orig`
+        * but with all dynamically-allocated buffers duplicated in new buffers.
+        */
+       public Result_SecretKeyErrorZ clone() {
+               long ret = bindings.CResult_SecretKeyErrorZ_clone(this.ptr);
+               Reference.reachabilityFence(this);
+               if (ret >= 0 && ret <= 4096) { return null; }
+               Result_SecretKeyErrorZ ret_hu_conv = Result_SecretKeyErrorZ.constr_from_ptr(ret);
+               return ret_hu_conv;
+       }
+
 }