*
*/
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;
}
* 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; }