Update auto-generated bindings
[ldk-java] / src / main / java / org / ldk / structs / Option_u16Z.java
index 1ed16f3f8acb7a777724f8cc993eb27eb28cfdc8..824247daae444a905623716c1c9978b056861f77 100644 (file)
@@ -29,6 +29,9 @@ public class Option_u16Z extends CommonBase {
                assert false; return null; // Unreachable without extending the (internal) bindings interface
        }
 
+       /**
+        * When we're in this state, this COption_u16Z contains a u16
+        */
        public final static class Some extends Option_u16Z {
                public final short some;
                private Some(long ptr, bindings.LDKCOption_u16Z.Some obj) {
@@ -36,6 +39,9 @@ public class Option_u16Z extends CommonBase {
                        this.some = obj.some;
                }
        }
+       /**
+        * When we're in this state, this COption_u16Z contains nothing
+        */
        public final static class None extends Option_u16Z {
                private None(long ptr, bindings.LDKCOption_u16Z.None obj) {
                        super(null, ptr);
@@ -63,6 +69,11 @@ public class Option_u16Z extends CommonBase {
                return ret_hu_conv;
        }
 
+       long clone_ptr() {
+               long ret = bindings.COption_u16Z_clone_ptr(this.ptr);
+               return ret;
+       }
+
        /**
         * Creates a new COption_u16Z which has the same data as `orig`
         * but with all dynamically-allocated buffers duplicated in new buffers.