Make genbindings.sh only build one of java/wasm, test wasm in CI
[ldk-java] / ts / structs / Pong.ts
index 63379926273f973d2bfc6cfb346a819abee8c5c0..c4749eb21dbbd7728090ead0f563476057966906 100644 (file)
@@ -18,13 +18,6 @@ import * as bindings from '../bindings' // TODO: figure out location
                         bindings.Pong_free(this.ptr);
                     }
                 }
-       public Pong clone() {
-               number ret = bindings.Pong_clone(this.ptr);
-               const ret_hu_conv: Pong = new Pong(null, ret);
-               ret_hu_conv.ptrs_to.add(this);
-               return ret_hu_conv;
-       }
-
        public number get_byteslen() {
                number ret = bindings.Pong_get_byteslen(this.ptr);
                return ret;
@@ -41,6 +34,18 @@ import * as bindings from '../bindings' // TODO: figure out location
                return ret_hu_conv;
        }
 
+       public number clone_ptr() {
+               number ret = bindings.Pong_clone_ptr(this.ptr);
+               return ret;
+       }
+
+       public Pong clone() {
+               number ret = bindings.Pong_clone(this.ptr);
+               const ret_hu_conv: Pong = new Pong(null, ret);
+               ret_hu_conv.ptrs_to.add(this);
+               return ret_hu_conv;
+       }
+
        public Uint8Array write() {
                Uint8Array ret = bindings.Pong_write(this.ptr);
                return ret;