X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FDecodeError.ts;fp=ts%2Fstructs%2FDecodeError.ts;h=750447a81a56214117621b58bd538122eb05d75d;hb=fed2245c60159f6c074c9ed5c0f3ce273ad9841b;hp=fc3278b4bbdaa579d874b40a0aa539392efe238d;hpb=e9c2970adecaa14b3e83e11eb160a7bcbdae20da;p=ldk-java diff --git a/ts/structs/DecodeError.ts b/ts/structs/DecodeError.ts index fc3278b4..750447a8 100644 --- a/ts/structs/DecodeError.ts +++ b/ts/structs/DecodeError.ts @@ -18,4 +18,11 @@ import * as bindings from '../bindings' // TODO: figure out location bindings.DecodeError_free(this.ptr); } } + public DecodeError clone() { + number ret = bindings.DecodeError_clone(this.ptr); + const ret_hu_conv: DecodeError = new DecodeError(null, ret); + ret_hu_conv.ptrs_to.add(this); + return ret_hu_conv; + } + }