X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=c_sharp%2Fsrc%2Forg%2Fldk%2Fstructs%2FTwoTuple_OutPointCVec_MonitorUpdateIdZZ.cs;fp=c_sharp%2Fsrc%2Forg%2Fldk%2Fstructs%2FTwoTuple_OutPointCVec_MonitorUpdateIdZZ.cs;h=55915cda3b2b9ff0e030da58c15e652610180689;hb=8de7213fbf663ff60322896282dad51e8ab2f001;hp=d8c626a331f66b7da0157f360ffabe9d580e5207;hpb=afc50e5d491a11364849383b75a8f939df703bac;p=ldk-java diff --git a/c_sharp/src/org/ldk/structs/TwoTuple_OutPointCVec_MonitorUpdateIdZZ.cs b/c_sharp/src/org/ldk/structs/TwoTuple_OutPointCVec_MonitorUpdateIdZZ.cs index d8c626a3..55915cda 100644 --- a/c_sharp/src/org/ldk/structs/TwoTuple_OutPointCVec_MonitorUpdateIdZZ.cs +++ b/c_sharp/src/org/ldk/structs/TwoTuple_OutPointCVec_MonitorUpdateIdZZ.cs @@ -31,16 +31,18 @@ public class TwoTuple_OutPointCVec_MonitorUpdateIdZZ : CommonBase { * */ public MonitorUpdateId[] get_b() { - long[] ret = bindings.C2Tuple_OutPointCVec_MonitorUpdateIdZZ_get_b(this.ptr); + long ret = bindings.C2Tuple_OutPointCVec_MonitorUpdateIdZZ_get_b(this.ptr); GC.KeepAlive(this); - int ret_conv_17_len = ret.Length; + if (ret >= 0 && ret <= 4096) { return null; } + int ret_conv_17_len = InternalUtils.getArrayLength(ret); MonitorUpdateId[] ret_conv_17_arr = new MonitorUpdateId[ret_conv_17_len]; for (int r = 0; r < ret_conv_17_len; r++) { - long ret_conv_17 = ret[r]; + long ret_conv_17 = InternalUtils.getU64ArrayElem(ret, r); org.ldk.structs.MonitorUpdateId ret_conv_17_hu_conv = null; if (ret_conv_17 < 0 || ret_conv_17 > 4096) { ret_conv_17_hu_conv = new org.ldk.structs.MonitorUpdateId(null, ret_conv_17); } if (ret_conv_17_hu_conv != null) { ret_conv_17_hu_conv.ptrs_to.AddLast(this); }; ret_conv_17_arr[r] = ret_conv_17_hu_conv; } + bindings.free_buffer(ret); return ret_conv_17_arr; } @@ -67,7 +69,7 @@ public class TwoTuple_OutPointCVec_MonitorUpdateIdZZ : CommonBase { * Creates a new C2Tuple_OutPointCVec_MonitorUpdateIdZZ from the contained elements. */ public static TwoTuple_OutPointCVec_MonitorUpdateIdZZ of(org.ldk.structs.OutPoint a, MonitorUpdateId[] b) { - long ret = bindings.C2Tuple_OutPointCVec_MonitorUpdateIdZZ_new(a == null ? 0 : a.ptr, b != null ? InternalUtils.mapArray(b, b_conv_17 => b_conv_17 == null ? 0 : b_conv_17.ptr) : null); + long ret = bindings.C2Tuple_OutPointCVec_MonitorUpdateIdZZ_new(a == null ? 0 : a.ptr, InternalUtils.encodeUint64Array(InternalUtils.mapArray(b, b_conv_17 => b_conv_17 == null ? 0 : b_conv_17.ptr))); GC.KeepAlive(a); GC.KeepAlive(b); if (ret >= 0 && ret <= 4096) { return null; }