X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FPong.ts;h=58be169f8d101530f3d3079658feebe15c26c260;hb=9e8763c71cd61d55be7c869d973524f75209a3f3;hp=63379926273f973d2bfc6cfb346a819abee8c5c0;hpb=2f243794d7f279cdc81628a94533b70404bbe888;p=ldk-java diff --git a/ts/structs/Pong.ts b/ts/structs/Pong.ts index 63379926..58be169f 100644 --- a/ts/structs/Pong.ts +++ b/ts/structs/Pong.ts @@ -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,13 @@ import * as bindings from '../bindings' // TODO: figure out location return ret_hu_conv; } + 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;