X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;ds=sidebyside;f=c_sharp%2Fsrc%2Forg%2Fldk%2Fstructs%2FResult_CVec_CVec_u8ZZNoneZ.cs;fp=c_sharp%2Fsrc%2Forg%2Fldk%2Fstructs%2FResult_CVec_CVec_u8ZZNoneZ.cs;h=6daf0ab887f92f871e88d7f6316ca13987d9d6df;hb=8de7213fbf663ff60322896282dad51e8ab2f001;hp=55a9364cb23f73013a5f7bc581e3dbc7c678f82c;hpb=afc50e5d491a11364849383b75a8f939df703bac;p=ldk-java diff --git a/c_sharp/src/org/ldk/structs/Result_CVec_CVec_u8ZZNoneZ.cs b/c_sharp/src/org/ldk/structs/Result_CVec_CVec_u8ZZNoneZ.cs index 55a9364c..6daf0ab8 100644 --- a/c_sharp/src/org/ldk/structs/Result_CVec_CVec_u8ZZNoneZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_CVec_CVec_u8ZZNoneZ.cs @@ -21,7 +21,16 @@ public class Result_CVec_CVec_u8ZZNoneZ : CommonBase { public class Result_CVec_CVec_u8ZZNoneZ_OK : Result_CVec_CVec_u8ZZNoneZ { public readonly byte[][] res; internal Result_CVec_CVec_u8ZZNoneZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - this.res = bindings.CResult_CVec_CVec_u8ZZNoneZ_get_ok(ptr); + long res = bindings.CResult_CVec_CVec_u8ZZNoneZ_get_ok(ptr); + int res_conv_8_len = InternalUtils.getArrayLength(res); + byte[][] res_conv_8_arr = new byte[res_conv_8_len][]; + for (int i = 0; i < res_conv_8_len; i++) { + long res_conv_8 = InternalUtils.getU64ArrayElem(res, i); + byte[] res_conv_8_conv = InternalUtils.decodeUint8Array(res_conv_8); + res_conv_8_arr[i] = res_conv_8_conv; + } + bindings.free_buffer(res); + this.res = res_conv_8_arr; } } @@ -34,7 +43,7 @@ public class Result_CVec_CVec_u8ZZNoneZ : CommonBase { * Creates a new CResult_CVec_CVec_u8ZZNoneZ in the success state. */ public static Result_CVec_CVec_u8ZZNoneZ ok(byte[][] o) { - long ret = bindings.CResult_CVec_CVec_u8ZZNoneZ_ok(o); + long ret = bindings.CResult_CVec_CVec_u8ZZNoneZ_ok(InternalUtils.encodeUint64Array(InternalUtils.mapArray(o, o_conv_8 => InternalUtils.encodeUint8Array(o_conv_8)))); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_CVec_CVec_u8ZZNoneZ ret_hu_conv = Result_CVec_CVec_u8ZZNoneZ.constr_from_ptr(ret);