6 namespace org { namespace ldk { namespace structs {
12 public class ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ : CommonBase {
13 internal ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ(object _dummy, long ptr) : base(ptr) { }
14 ~ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ() {
15 if (ptr != 0) { bindings.C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_free(ptr); }
21 public OutPoint get_a() {
22 long ret = bindings.C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_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 MonitorEvent[] get_b() {
34 long[] ret = bindings.C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_get_b(this.ptr);
36 int ret_conv_14_len = ret.Length;
37 MonitorEvent[] ret_conv_14_arr = new MonitorEvent[ret_conv_14_len];
38 for (int o = 0; o < ret_conv_14_len; o++) {
39 long ret_conv_14 = ret[o];
40 org.ldk.structs.MonitorEvent ret_conv_14_hu_conv = org.ldk.structs.MonitorEvent.constr_from_ptr(ret_conv_14);
41 if (ret_conv_14_hu_conv != null) { ret_conv_14_hu_conv.ptrs_to.AddLast(this); };
42 ret_conv_14_arr[o] = ret_conv_14_hu_conv;
44 return ret_conv_14_arr;
50 public byte[] get_c() {
51 byte[] ret = bindings.C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_get_c(this.ptr);
56 internal long clone_ptr() {
57 long ret = bindings.C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_clone_ptr(this.ptr);
63 * Creates a new tuple which has the same data as `orig`
64 * but with all dynamically-allocated buffers duplicated in new buffers.
66 public ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ clone() {
67 long ret = bindings.C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_clone(this.ptr);
69 if (ret >= 0 && ret <= 4096) { return null; }
70 ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ ret_hu_conv = new ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ(null, ret);
71 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(this); };
76 * Creates a new C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ from the contained elements.
78 public static ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ of(org.ldk.structs.OutPoint a, MonitorEvent[] b, byte[] c) {
79 long ret = bindings.C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_new(a == null ? 0 : a.ptr, b != null ? InternalUtils.mapArray(b, b_conv_14 => b_conv_14.ptr) : null, InternalUtils.check_arr_len(c, 33));
83 if (ret >= 0 && ret <= 4096) { return null; }
84 ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ ret_hu_conv = new ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ(null, ret);
85 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); };
86 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(a); };
87 foreach (MonitorEvent b_conv_14 in b) { if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(b_conv_14); }; };