*/
export class ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ extends CommonBase {
/* @internal */
- public constructor(_dummy: object, ptr: number) {
+ public constructor(_dummy: object, ptr: bigint) {
super(ptr, bindings.C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_free);
}
*
*/
public get_a(): OutPoint {
- const ret: number = bindings.C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_get_a(this.ptr);
+ const ret: bigint = bindings.C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_get_a(this.ptr);
const ret_hu_conv: OutPoint = new OutPoint(null, ret);
CommonBase.add_ref_from(ret_hu_conv, this);
return ret_hu_conv;
const ret_conv_14_len: number = bindings.getArrayLength(ret);
const ret_conv_14_arr: MonitorEvent[] = new Array(ret_conv_14_len).fill(null);
for (var o = 0; o < ret_conv_14_len; o++) {
- const ret_conv_14: number = bindings.getU32ArrayElem(ret, o);
+ const ret_conv_14: bigint = bindings.getU64ArrayElem(ret, o);
const ret_conv_14_hu_conv: MonitorEvent = MonitorEvent.constr_from_ptr(ret_conv_14);
CommonBase.add_ref_from(ret_conv_14_hu_conv, this);
ret_conv_14_arr[o] = ret_conv_14_hu_conv;
return ret_conv;
}
- public clone_ptr(): number {
- const ret: number = bindings.C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_clone_ptr(this.ptr);
+ public clone_ptr(): bigint {
+ const ret: bigint = bindings.C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_clone_ptr(this.ptr);
return ret;
}
* but with all dynamically-allocated buffers duplicated in new buffers.
*/
public clone(): ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ {
- const ret: number = bindings.C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_clone(this.ptr);
+ const ret: bigint = bindings.C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_clone(this.ptr);
const ret_hu_conv: ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ = new ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ(null, ret);
CommonBase.add_ref_from(ret_hu_conv, this);
return ret_hu_conv;
* Creates a new C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ from the contained elements.
*/
public static constructor_new(a: OutPoint, b: MonitorEvent[], c: Uint8Array): ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ {
- const ret: number = bindings.C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_new(a == null ? 0 : CommonBase.get_ptr_of(a) & ~1, bindings.encodeUint32Array(b != null ? b.map(b_conv_14 => CommonBase.get_ptr_of(b_conv_14)) : null), bindings.encodeUint8Array(bindings.check_arr_len(c, 33)));
+ const ret: bigint = bindings.C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_new(a == null ? 0n : CommonBase.get_ptr_of(a), bindings.encodeUint64Array(b != null ? b.map(b_conv_14 => CommonBase.get_ptr_of(b_conv_14)) : null), bindings.encodeUint8Array(bindings.check_arr_len(c, 33)));
const ret_hu_conv: ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ = new ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ(null, ret);
CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
+ CommonBase.add_ref_from(ret_hu_conv, a);
return ret_hu_conv;
}