X-Git-Url: http://git.bitcoin.ninja/index.cgi?p=ldk-java;a=blobdiff_plain;f=ts%2Fstructs%2FResult_CVec_CVec_u8ZZNoneZ.mts;h=5596dfe38718e6644e181d09d9ef91420e0d2f5f;hp=4fc28b0b0c6293e7b81aca8665559fdbe6e55e75;hb=7d372e434499e36b8be0d090ef733a03650dec6e;hpb=d87886bb194886ef86d3597a5cdc142b6ccc89e9 diff --git a/ts/structs/Result_CVec_CVec_u8ZZNoneZ.mts b/ts/structs/Result_CVec_CVec_u8ZZNoneZ.mts index 4fc28b0b..5596dfe3 100644 --- a/ts/structs/Result_CVec_CVec_u8ZZNoneZ.mts +++ b/ts/structs/Result_CVec_CVec_u8ZZNoneZ.mts @@ -279,7 +279,6 @@ import { MultiThreadedLockableScore } from '../structs/MultiThreadedLockableScor import CommonBase from './CommonBase.mjs'; import * as bindings from '../bindings.mjs' -import * as InternalUtils from '../InternalUtils.mjs' @@ -296,7 +295,7 @@ export class Result_CVec_CVec_u8ZZNoneZ extends CommonBase { } } public static constructor_ok(o: Uint8Array[]): Result_CVec_CVec_u8ZZNoneZ { - const ret: number = bindings.CResult_CVec_CVec_u8ZZNoneZ_ok(o); + const ret: number = bindings.CResult_CVec_CVec_u8ZZNoneZ_ok(bindings.encodeUint32Array(o != null ? o.map(o_conv_12 => bindings.encodeUint8Array(o_conv_12)) : null)); const ret_hu_conv: Result_CVec_CVec_u8ZZNoneZ = Result_CVec_CVec_u8ZZNoneZ.constr_from_ptr(ret); return ret_hu_conv; } @@ -330,7 +329,15 @@ export class Result_CVec_CVec_u8ZZNoneZ_OK extends Result_CVec_CVec_u8ZZNoneZ { /* @internal */ public constructor(_dummy: object, ptr: number) { super(_dummy, ptr); - this.res = bindings.CResult_CVec_CVec_u8ZZNoneZ_get_ok(ptr); + const res: number = bindings.CResult_CVec_CVec_u8ZZNoneZ_get_ok(ptr); + const res_conv_12_len: number = bindings.getArrayLength(res); + const res_conv_12_arr: Uint8Array[] = new Array(res_conv_12_len).fill(null); + for (var m = 0; m < res_conv_12_len; m++) { + const res_conv_12: number = bindings.getU32ArrayElem(res, m); + const res_conv_12_conv: Uint8Array = bindings.decodeUint8Array(res_conv_12); + res_conv_12_arr[m] = res_conv_12_conv; + } + this.res = res_conv_12_arr; } } export class Result_CVec_CVec_u8ZZNoneZ_Err extends Result_CVec_CVec_u8ZZNoneZ {