[TS] Update auto-generated bindings
[ldk-java] / ts / structs / Option_ScalarZ.mts
index 0d62930b4c390694c2a5094ce724cb7bc9b46cd9..921f6f0084f08b53ffab8c6085ba0d0c91495e92 100644 (file)
@@ -472,6 +472,22 @@ export class Option_ScalarZ extends CommonBase {
                return ret_hu_conv;
        }
 
+       public clone_ptr(): bigint {
+               const ret: bigint = bindings.COption_ScalarZ_clone_ptr(this.ptr);
+               return ret;
+       }
+
+       /**
+        * Creates a new COption_ScalarZ which has the same data as `orig`
+        * but with all dynamically-allocated buffers duplicated in new buffers.
+        */
+       public clone(): Option_ScalarZ {
+               const ret: bigint = bindings.COption_ScalarZ_clone(this.ptr);
+               const ret_hu_conv: Option_ScalarZ = Option_ScalarZ.constr_from_ptr(ret);
+               CommonBase.add_ref_from(ret_hu_conv, this);
+               return ret_hu_conv;
+       }
+
 }
 /** A Option_ScalarZ of type Some */
 export class Option_ScalarZ_Some extends Option_ScalarZ {