X-Git-Url: http://git.bitcoin.ninja/index.cgi?p=ldk-java;a=blobdiff_plain;f=ts%2Fstructs%2FTwoTuple_TxidCVec_C2Tuple_u32ScriptZZZ.mts;h=1a99b9fe917cabef29daf163cb0c572cbca947bb;hp=2c04b7444eebb77dc6e6a89ad24fb0ad6b6ead3c;hb=c629a01650402c8e2f9b9db8ced9ed63ce687727;hpb=d1d0121c000b713c10fd0bedd249eb8dda2e4db7 diff --git a/ts/structs/TwoTuple_TxidCVec_C2Tuple_u32ScriptZZZ.mts b/ts/structs/TwoTuple_TxidCVec_C2Tuple_u32ScriptZZZ.mts index 2c04b744..1a99b9fe 100644 --- a/ts/structs/TwoTuple_TxidCVec_C2Tuple_u32ScriptZZZ.mts +++ b/ts/structs/TwoTuple_TxidCVec_C2Tuple_u32ScriptZZZ.mts @@ -281,18 +281,27 @@ import CommonBase from './CommonBase.mjs'; import * as bindings from '../bindings.mjs' +/** + * A Tuple + */ export class TwoTuple_TxidCVec_C2Tuple_u32ScriptZZZ extends CommonBase { /* @internal */ public constructor(_dummy: object, ptr: number) { super(ptr, bindings.C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_free); } + /** + * + */ public get_a(): Uint8Array { const ret: number = bindings.C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_get_a(this.ptr); const ret_conv: Uint8Array = bindings.decodeUint8Array(ret); return ret_conv; } + /** + * + */ public get_b(): TwoTuple_u32ScriptZ[] { const ret: number = bindings.C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_get_b(this.ptr); const ret_conv_21_len: number = bindings.getArrayLength(ret); @@ -303,9 +312,13 @@ export class TwoTuple_TxidCVec_C2Tuple_u32ScriptZZZ extends CommonBase { CommonBase.add_ref_from(ret_conv_21_hu_conv, this); ret_conv_21_arr[v] = ret_conv_21_hu_conv; } + bindings.freeWasmMemory(ret) return ret_conv_21_arr; } + /** + * Creates a new C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ from the contained elements. + */ public static constructor_new(a: Uint8Array, b: TwoTuple_u32ScriptZ[]): TwoTuple_TxidCVec_C2Tuple_u32ScriptZZZ { const ret: number = bindings.C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_new(bindings.encodeUint8Array(bindings.check_arr_len(a, 32)), bindings.encodeUint32Array(b != null ? b.map(b_conv_21 => b_conv_21 != null ? CommonBase.get_ptr_of(b_conv_21) : 0) : null)); const ret_hu_conv: TwoTuple_TxidCVec_C2Tuple_u32ScriptZZZ = new TwoTuple_TxidCVec_C2Tuple_u32ScriptZZZ(null, ret);