Update auto-generated bindings
[ldk-java] / src / main / java / org / ldk / structs / Result_CVec_u8ZPeerHandleErrorZ.java
index b85496661c4cc20149058952067ad089a1b68bb9..b6368d7445d8388d89e350a9c191bbb7bb394180 100644 (file)
@@ -13,7 +13,7 @@ public class Result_CVec_u8ZPeerHandleErrorZ extends CommonBase {
        }
 
        static Result_CVec_u8ZPeerHandleErrorZ constr_from_ptr(long ptr) {
-               if (bindings.LDKCResult_CVec_u8ZPeerHandleErrorZ_result_ok(ptr)) {
+               if (bindings.CResult_CVec_u8ZPeerHandleErrorZ_is_ok(ptr)) {
                        return new Result_CVec_u8ZPeerHandleErrorZ_OK(null, ptr);
                } else {
                        return new Result_CVec_u8ZPeerHandleErrorZ_Err(null, ptr);
@@ -58,6 +58,19 @@ public class Result_CVec_u8ZPeerHandleErrorZ extends CommonBase {
                return ret_hu_conv;
        }
 
+       /**
+        * Checks if the given object is currently in the success state
+        */
+       public boolean is_ok() {
+               boolean ret = bindings.CResult_CVec_u8ZPeerHandleErrorZ_is_ok(this.ptr);
+               return ret;
+       }
+
+       long clone_ptr() {
+               long ret = bindings.CResult_CVec_u8ZPeerHandleErrorZ_clone_ptr(this.ptr);
+               return ret;
+       }
+
        /**
         * Creates a new CResult_CVec_u8ZPeerHandleErrorZ which has the same data as `orig`
         * but with all dynamically-allocated buffers duplicated in new buffers.