X-Git-Url: http://git.bitcoin.ninja/index.cgi?p=ldk-java;a=blobdiff_plain;f=ts%2Fstructs%2FTwoTuple_PublicKeyTypeZ.mts;h=2564df9ffba0597c01c3b443b9b5bd68b0bc4a68;hp=96057fc54bcba4936ff59011804ef61139feb37f;hb=c629a01650402c8e2f9b9db8ced9ed63ce687727;hpb=d1d0121c000b713c10fd0bedd249eb8dda2e4db7 diff --git a/ts/structs/TwoTuple_PublicKeyTypeZ.mts b/ts/structs/TwoTuple_PublicKeyTypeZ.mts index 96057fc5..2564df9f 100644 --- a/ts/structs/TwoTuple_PublicKeyTypeZ.mts +++ b/ts/structs/TwoTuple_PublicKeyTypeZ.mts @@ -281,18 +281,27 @@ import CommonBase from './CommonBase.mjs'; import * as bindings from '../bindings.mjs' +/** + * A Tuple + */ export class TwoTuple_PublicKeyTypeZ extends CommonBase { /* @internal */ public constructor(_dummy: object, ptr: number) { super(ptr, bindings.C2Tuple_PublicKeyTypeZ_free); } + /** + * + */ public get_a(): Uint8Array { const ret: number = bindings.C2Tuple_PublicKeyTypeZ_get_a(this.ptr); const ret_conv: Uint8Array = bindings.decodeUint8Array(ret); return ret_conv; } + /** + * + */ public get_b(): Type { const ret: number = bindings.C2Tuple_PublicKeyTypeZ_get_b(this.ptr); const ret_hu_conv: Type = new Type(null, ret); @@ -305,6 +314,10 @@ export class TwoTuple_PublicKeyTypeZ extends CommonBase { return ret; } + /** + * Creates a new tuple which has the same data as `orig` + * but with all dynamically-allocated buffers duplicated in new buffers. + */ public clone(): TwoTuple_PublicKeyTypeZ { const ret: number = bindings.C2Tuple_PublicKeyTypeZ_clone(this.ptr); const ret_hu_conv: TwoTuple_PublicKeyTypeZ = new TwoTuple_PublicKeyTypeZ(null, ret); @@ -312,6 +325,9 @@ export class TwoTuple_PublicKeyTypeZ extends CommonBase { return ret_hu_conv; } + /** + * Creates a new C2Tuple_PublicKeyTypeZ from the contained elements. + */ public static constructor_new(a: Uint8Array, b: Type): TwoTuple_PublicKeyTypeZ { const ret: number = bindings.C2Tuple_PublicKeyTypeZ_new(bindings.encodeUint8Array(bindings.check_arr_len(a, 33)), b == null ? 0 : CommonBase.get_ptr_of(b)); const ret_hu_conv: TwoTuple_PublicKeyTypeZ = new TwoTuple_PublicKeyTypeZ(null, ret);