6 namespace org { namespace ldk { namespace structs {
12 public class TwoTuple_OutPointCVec_MonitorUpdateIdZZ : CommonBase {
13 internal TwoTuple_OutPointCVec_MonitorUpdateIdZZ(object _dummy, long ptr) : base(ptr) { }
14 ~TwoTuple_OutPointCVec_MonitorUpdateIdZZ() {
15 if (ptr != 0) { bindings.C2Tuple_OutPointCVec_MonitorUpdateIdZZ_free(ptr); }
21 public OutPoint get_a() {
22 long ret = bindings.C2Tuple_OutPointCVec_MonitorUpdateIdZZ_get_a(this.ptr);
24 if (ret >= 0 && ret <= 4096) { return null; }
25 org.ldk.structs.OutPoint ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.OutPoint(null, ret); }
26 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(this); };
33 public MonitorUpdateId[] get_b() {
34 long[] ret = bindings.C2Tuple_OutPointCVec_MonitorUpdateIdZZ_get_b(this.ptr);
36 int ret_conv_17_len = ret.Length;
37 MonitorUpdateId[] ret_conv_17_arr = new MonitorUpdateId[ret_conv_17_len];
38 for (int r = 0; r < ret_conv_17_len; r++) {
39 long ret_conv_17 = ret[r];
40 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); }
41 if (ret_conv_17_hu_conv != null) { ret_conv_17_hu_conv.ptrs_to.AddLast(this); };
42 ret_conv_17_arr[r] = ret_conv_17_hu_conv;
44 return ret_conv_17_arr;
47 internal long clone_ptr() {
48 long ret = bindings.C2Tuple_OutPointCVec_MonitorUpdateIdZZ_clone_ptr(this.ptr);
54 * Creates a new tuple which has the same data as `orig`
55 * but with all dynamically-allocated buffers duplicated in new buffers.
57 public TwoTuple_OutPointCVec_MonitorUpdateIdZZ clone() {
58 long ret = bindings.C2Tuple_OutPointCVec_MonitorUpdateIdZZ_clone(this.ptr);
60 if (ret >= 0 && ret <= 4096) { return null; }
61 TwoTuple_OutPointCVec_MonitorUpdateIdZZ ret_hu_conv = new TwoTuple_OutPointCVec_MonitorUpdateIdZZ(null, ret);
62 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(this); };
67 * Creates a new C2Tuple_OutPointCVec_MonitorUpdateIdZZ from the contained elements.
69 public static TwoTuple_OutPointCVec_MonitorUpdateIdZZ of(org.ldk.structs.OutPoint a, MonitorUpdateId[] b) {
70 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);
73 if (ret >= 0 && ret <= 4096) { return null; }
74 TwoTuple_OutPointCVec_MonitorUpdateIdZZ ret_hu_conv = new TwoTuple_OutPointCVec_MonitorUpdateIdZZ(null, ret);
75 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); };
76 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(a); };
77 foreach (MonitorUpdateId b_conv_17 in b) { if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(b_conv_17); }; };