X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FResult_PaymentIdPaymentSendFailureZ.mts;h=c2862452e32dd7b147dca236e6a40d1ff6009833;hb=f6d7282fcf6324519ea1fe4b584c8d02c95acd9e;hp=5b05b96453aa7cd901a51d3e24fa94c933cf33f0;hpb=af6f9949b19c1e8d2daac5c7a94cf14d41175f2b;p=ldk-java diff --git a/ts/structs/Result_PaymentIdPaymentSendFailureZ.mts b/ts/structs/Result_PaymentIdPaymentSendFailureZ.mts index 5b05b964..c2862452 100644 --- a/ts/structs/Result_PaymentIdPaymentSendFailureZ.mts +++ b/ts/structs/Result_PaymentIdPaymentSendFailureZ.mts @@ -358,11 +358,11 @@ import * as bindings from '../bindings.mjs' export class Result_PaymentIdPaymentSendFailureZ extends CommonBase { - protected constructor(_dummy: object, ptr: number) { + protected constructor(_dummy: object, ptr: bigint) { super(ptr, bindings.CResult_PaymentIdPaymentSendFailureZ_free); } /* @internal */ - public static constr_from_ptr(ptr: number): Result_PaymentIdPaymentSendFailureZ { + public static constr_from_ptr(ptr: bigint): Result_PaymentIdPaymentSendFailureZ { if (bindings.CResult_PaymentIdPaymentSendFailureZ_is_ok(ptr)) { return new Result_PaymentIdPaymentSendFailureZ_OK(null, ptr); } else { @@ -373,7 +373,7 @@ export class Result_PaymentIdPaymentSendFailureZ extends CommonBase { * Creates a new CResult_PaymentIdPaymentSendFailureZ in the success state. */ public static constructor_ok(o: Uint8Array): Result_PaymentIdPaymentSendFailureZ { - const ret: number = bindings.CResult_PaymentIdPaymentSendFailureZ_ok(bindings.encodeUint8Array(bindings.check_arr_len(o, 32))); + const ret: bigint = bindings.CResult_PaymentIdPaymentSendFailureZ_ok(bindings.encodeUint8Array(bindings.check_arr_len(o, 32))); const ret_hu_conv: Result_PaymentIdPaymentSendFailureZ = Result_PaymentIdPaymentSendFailureZ.constr_from_ptr(ret); return ret_hu_conv; } @@ -382,7 +382,7 @@ export class Result_PaymentIdPaymentSendFailureZ extends CommonBase { * Creates a new CResult_PaymentIdPaymentSendFailureZ in the error state. */ public static constructor_err(e: PaymentSendFailure): Result_PaymentIdPaymentSendFailureZ { - const ret: number = bindings.CResult_PaymentIdPaymentSendFailureZ_err(CommonBase.get_ptr_of(e)); + const ret: bigint = bindings.CResult_PaymentIdPaymentSendFailureZ_err(CommonBase.get_ptr_of(e)); const ret_hu_conv: Result_PaymentIdPaymentSendFailureZ = Result_PaymentIdPaymentSendFailureZ.constr_from_ptr(ret); return ret_hu_conv; } @@ -395,8 +395,8 @@ export class Result_PaymentIdPaymentSendFailureZ extends CommonBase { return ret; } - public clone_ptr(): number { - const ret: number = bindings.CResult_PaymentIdPaymentSendFailureZ_clone_ptr(this.ptr); + public clone_ptr(): bigint { + const ret: bigint = bindings.CResult_PaymentIdPaymentSendFailureZ_clone_ptr(this.ptr); return ret; } @@ -405,7 +405,7 @@ export class Result_PaymentIdPaymentSendFailureZ extends CommonBase { * but with all dynamically-allocated buffers duplicated in new buffers. */ public clone(): Result_PaymentIdPaymentSendFailureZ { - const ret: number = bindings.CResult_PaymentIdPaymentSendFailureZ_clone(this.ptr); + const ret: bigint = bindings.CResult_PaymentIdPaymentSendFailureZ_clone(this.ptr); const ret_hu_conv: Result_PaymentIdPaymentSendFailureZ = Result_PaymentIdPaymentSendFailureZ.constr_from_ptr(ret); return ret_hu_conv; } @@ -415,7 +415,7 @@ export class Result_PaymentIdPaymentSendFailureZ_OK extends Result_PaymentIdPaym public res: Uint8Array; /* @internal */ - public constructor(_dummy: object, ptr: number) { + public constructor(_dummy: object, ptr: bigint) { super(_dummy, ptr); const res: number = bindings.CResult_PaymentIdPaymentSendFailureZ_get_ok(ptr); const res_conv: Uint8Array = bindings.decodeUint8Array(res); @@ -426,9 +426,9 @@ export class Result_PaymentIdPaymentSendFailureZ_Err extends Result_PaymentIdPay public err: PaymentSendFailure; /* @internal */ - public constructor(_dummy: object, ptr: number) { + public constructor(_dummy: object, ptr: bigint) { super(_dummy, ptr); - const err: number = bindings.CResult_PaymentIdPaymentSendFailureZ_get_err(ptr); + const err: bigint = bindings.CResult_PaymentIdPaymentSendFailureZ_get_err(ptr); const err_hu_conv: PaymentSendFailure = PaymentSendFailure.constr_from_ptr(err); CommonBase.add_ref_from(err_hu_conv, this); this.err = err_hu_conv;