Clean up assertions, new Clone impls, ThreeBytes
[ldk-java] / src / main / java / org / ldk / structs / Pong.java
index c27d864d3b3106a4ba72a855cdab9a40141be2ec..76b24b1bcf30d448cf031a7c0f6952d8b3008c4f 100644 (file)
@@ -10,6 +10,11 @@ public class Pong extends CommonBase {
                bindings.Pong_free(ptr); super.finalize();
        }
 
+       public Pong(Pong orig) {
+               super(bindings.Pong_clone(orig.ptr & ~1));
+               this.ptrs_to.add(orig);
+       }
+
        public short get_byteslen(Pong this_ptr) {
                short ret = bindings.Pong_get_byteslen(this_ptr.ptr & ~1);
                this.ptrs_to.add(this_ptr);