X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FResult_NoneSemanticErrorZ.mts;h=9ce1f08ca82d2dbb6b7ee6d4c242d66e8aa4bf31;hb=31a1b84c2ca25db2978865e9ca9573974f79cc79;hp=b29dc9b8c8b8494fc9f42135afc382f8678d5a87;hpb=af6f9949b19c1e8d2daac5c7a94cf14d41175f2b;p=ldk-java diff --git a/ts/structs/Result_NoneSemanticErrorZ.mts b/ts/structs/Result_NoneSemanticErrorZ.mts index b29dc9b8..9ce1f08c 100644 --- a/ts/structs/Result_NoneSemanticErrorZ.mts +++ b/ts/structs/Result_NoneSemanticErrorZ.mts @@ -358,11 +358,11 @@ import * as bindings from '../bindings.mjs' export class Result_NoneSemanticErrorZ extends CommonBase { - protected constructor(_dummy: object, ptr: number) { + protected constructor(_dummy: object, ptr: bigint) { super(ptr, bindings.CResult_NoneSemanticErrorZ_free); } /* @internal */ - public static constr_from_ptr(ptr: number): Result_NoneSemanticErrorZ { + public static constr_from_ptr(ptr: bigint): Result_NoneSemanticErrorZ { if (bindings.CResult_NoneSemanticErrorZ_is_ok(ptr)) { return new Result_NoneSemanticErrorZ_OK(null, ptr); } else { @@ -373,7 +373,7 @@ export class Result_NoneSemanticErrorZ extends CommonBase { * Creates a new CResult_NoneSemanticErrorZ in the success state. */ public static constructor_ok(): Result_NoneSemanticErrorZ { - const ret: number = bindings.CResult_NoneSemanticErrorZ_ok(); + const ret: bigint = bindings.CResult_NoneSemanticErrorZ_ok(); const ret_hu_conv: Result_NoneSemanticErrorZ = Result_NoneSemanticErrorZ.constr_from_ptr(ret); return ret_hu_conv; } @@ -382,7 +382,7 @@ export class Result_NoneSemanticErrorZ extends CommonBase { * Creates a new CResult_NoneSemanticErrorZ in the error state. */ public static constructor_err(e: SemanticError): Result_NoneSemanticErrorZ { - const ret: number = bindings.CResult_NoneSemanticErrorZ_err(e); + const ret: bigint = bindings.CResult_NoneSemanticErrorZ_err(e); const ret_hu_conv: Result_NoneSemanticErrorZ = Result_NoneSemanticErrorZ.constr_from_ptr(ret); return ret_hu_conv; } @@ -395,8 +395,8 @@ export class Result_NoneSemanticErrorZ extends CommonBase { return ret; } - public clone_ptr(): number { - const ret: number = bindings.CResult_NoneSemanticErrorZ_clone_ptr(this.ptr); + public clone_ptr(): bigint { + const ret: bigint = bindings.CResult_NoneSemanticErrorZ_clone_ptr(this.ptr); return ret; } @@ -405,7 +405,7 @@ export class Result_NoneSemanticErrorZ extends CommonBase { * but with all dynamically-allocated buffers duplicated in new buffers. */ public clone(): Result_NoneSemanticErrorZ { - const ret: number = bindings.CResult_NoneSemanticErrorZ_clone(this.ptr); + const ret: bigint = bindings.CResult_NoneSemanticErrorZ_clone(this.ptr); const ret_hu_conv: Result_NoneSemanticErrorZ = Result_NoneSemanticErrorZ.constr_from_ptr(ret); return ret_hu_conv; } @@ -414,7 +414,7 @@ export class Result_NoneSemanticErrorZ extends CommonBase { export class Result_NoneSemanticErrorZ_OK extends Result_NoneSemanticErrorZ { /* @internal */ - public constructor(_dummy: object, ptr: number) { + public constructor(_dummy: object, ptr: bigint) { super(_dummy, ptr); } } @@ -422,7 +422,7 @@ export class Result_NoneSemanticErrorZ_Err extends Result_NoneSemanticErrorZ { public err: SemanticError; /* @internal */ - public constructor(_dummy: object, ptr: number) { + public constructor(_dummy: object, ptr: bigint) { super(_dummy, ptr); this.err = bindings.CResult_NoneSemanticErrorZ_get_err(ptr); }