X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FDecodeError.ts;h=caffcab4de73fb7eb6dda62633110c51bbf53378;hb=f3e670e9341decac613d33fc52febf19cea32f20;hp=fc3278b4bbdaa579d874b40a0aa539392efe238d;hpb=acecce750cf1159a51f9d1a4dbfd717520739e92;p=ldk-java diff --git a/ts/structs/DecodeError.ts b/ts/structs/DecodeError.ts index fc3278b4..caffcab4 100644 --- a/ts/structs/DecodeError.ts +++ b/ts/structs/DecodeError.ts @@ -18,4 +18,16 @@ import * as bindings from '../bindings' // TODO: figure out location bindings.DecodeError_free(this.ptr); } } + public number clone_ptr() { + number ret = bindings.DecodeError_clone_ptr(this.ptr); + return ret; + } + + 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; + } + }