6 namespace org { namespace ldk { namespace structs {
12 public class TwoTuple_OutPointChannelIdZ : CommonBase {
13 internal TwoTuple_OutPointChannelIdZ(object _dummy, long ptr) : base(ptr) { }
14 ~TwoTuple_OutPointChannelIdZ() {
15 if (ptr != 0) { bindings.C2Tuple_OutPointChannelIdZ_free(ptr); }
21 public OutPoint get_a() {
22 long ret = bindings.C2Tuple_OutPointChannelIdZ_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 ChannelId get_b() {
34 long ret = bindings.C2Tuple_OutPointChannelIdZ_get_b(this.ptr);
36 if (ret >= 0 && ret <= 4096) { return null; }
37 org.ldk.structs.ChannelId ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ChannelId(null, ret); }
38 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(this); };
42 internal long clone_ptr() {
43 long ret = bindings.C2Tuple_OutPointChannelIdZ_clone_ptr(this.ptr);
49 * Creates a new tuple which has the same data as `orig`
50 * but with all dynamically-allocated buffers duplicated in new buffers.
52 public TwoTuple_OutPointChannelIdZ clone() {
53 long ret = bindings.C2Tuple_OutPointChannelIdZ_clone(this.ptr);
55 if (ret >= 0 && ret <= 4096) { return null; }
56 TwoTuple_OutPointChannelIdZ ret_hu_conv = new TwoTuple_OutPointChannelIdZ(null, ret);
57 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(this); };
62 * Creates a new C2Tuple_OutPointChannelIdZ from the contained elements.
64 public static TwoTuple_OutPointChannelIdZ of(org.ldk.structs.OutPoint a, org.ldk.structs.ChannelId b) {
65 long ret = bindings.C2Tuple_OutPointChannelIdZ_new(a.ptr, b.ptr);
68 if (ret >= 0 && ret <= 4096) { return null; }
69 TwoTuple_OutPointChannelIdZ ret_hu_conv = new TwoTuple_OutPointChannelIdZ(null, ret);
70 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); };
71 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(a); };
72 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(b); };