X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FTwoTuple_PublicKeyTypeZ.ts;h=c7c126717dbfc748bf676e298a7e20c7d8cc2ff6;hb=f3e670e9341decac613d33fc52febf19cea32f20;hp=211fbc13c7b3993b329b1cc172554308800f706a;hpb=e30b350e325e7d517ea744578876d473839ad495;p=ldk-java diff --git a/ts/structs/TwoTuple_PublicKeyTypeZ.ts b/ts/structs/TwoTuple_PublicKeyTypeZ.ts index 211fbc13..c7c12671 100644 --- a/ts/structs/TwoTuple_PublicKeyTypeZ.ts +++ b/ts/structs/TwoTuple_PublicKeyTypeZ.ts @@ -30,6 +30,11 @@ import * as bindings from '../bindings' // TODO: figure out location return ret_hu_conv; } + public number clone_ptr() { + number ret = bindings.C2Tuple_PublicKeyTypeZ_clone_ptr(this.ptr); + return ret; + } + public TwoTuple_PublicKeyTypeZ clone() { number ret = bindings.C2Tuple_PublicKeyTypeZ_clone(this.ptr); TwoTuple_PublicKeyTypeZ ret_hu_conv = new TwoTuple_PublicKeyTypeZ(null, ret); @@ -38,7 +43,7 @@ import * as bindings from '../bindings' // TODO: figure out location } public static TwoTuple_PublicKeyTypeZ constructor_new(Uint8Array a, Type b) { - number ret = bindings.C2Tuple_PublicKeyTypeZ_new(a, b == null ? 0 : b.ptr); + number ret = bindings.C2Tuple_PublicKeyTypeZ_new(InternalUtils.check_arr_len(a, 33), b == null ? 0 : b.ptr); TwoTuple_PublicKeyTypeZ ret_hu_conv = new TwoTuple_PublicKeyTypeZ(null, ret); ret_hu_conv.ptrs_to.add(ret_hu_conv); ret_hu_conv.ptrs_to.add(b);