[C#] Update auto-generated C# bindings
[ldk-java] / c_sharp / src / org / ldk / structs / TwoTuple_OutPointCVec_MonitorUpdateIdZZ.cs
index d8c626a331f66b7da0157f360ffabe9d580e5207..55915cda3b2b9ff0e030da58c15e652610180689 100644 (file)
@@ -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; }