X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;ds=sidebyside;f=ts%2Fstructs%2FNetworkGraph.ts;h=2d96e4c0a2614ecfcfd259941af6106f87020fe8;hb=f6c75b182a7786062a4966e8939701ef59092509;hp=58e00cfeaa59c2e4af48d9f96ec7585a5d2cda81;hpb=9da1fb892048ce2faddd35e930619fd1a16c0137;p=ldk-java diff --git a/ts/structs/NetworkGraph.ts b/ts/structs/NetworkGraph.ts index 58e00cfe..2d96e4c0 100644 --- a/ts/structs/NetworkGraph.ts +++ b/ts/structs/NetworkGraph.ts @@ -18,6 +18,13 @@ import * as bindings from '../bindings' // TODO: figure out location bindings.NetworkGraph_free(this.ptr); } } + public NetworkGraph clone() { + number ret = bindings.NetworkGraph_clone(this.ptr); + const ret_hu_conv: NetworkGraph = new NetworkGraph(null, ret); + ret_hu_conv.ptrs_to.add(this); + return ret_hu_conv; + } + public Uint8Array write() { Uint8Array ret = bindings.NetworkGraph_write(this.ptr); return ret;