6 namespace org { namespace ldk { namespace structs {
12 public class ThreeTuple_OnionMessageContentsDestinationBlindedPathZ : CommonBase {
13 internal ThreeTuple_OnionMessageContentsDestinationBlindedPathZ(object _dummy, long ptr) : base(ptr) { }
14 ~ThreeTuple_OnionMessageContentsDestinationBlindedPathZ() {
15 if (ptr != 0) { bindings.C3Tuple_OnionMessageContentsDestinationBlindedPathZ_free(ptr); }
21 public OnionMessageContents get_a() {
22 long ret = bindings.C3Tuple_OnionMessageContentsDestinationBlindedPathZ_get_a(this.ptr);
24 if (ret >= 0 && ret <= 4096) { return null; }
25 OnionMessageContents ret_hu_conv = new OnionMessageContents(null, ret);
26 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(this); };
33 public Destination get_b() {
34 long ret = bindings.C3Tuple_OnionMessageContentsDestinationBlindedPathZ_get_b(this.ptr);
36 if (ret >= 0 && ret <= 4096) { return null; }
37 org.ldk.structs.Destination ret_hu_conv = org.ldk.structs.Destination.constr_from_ptr(ret);
38 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(this); };
45 public BlindedPath get_c() {
46 long ret = bindings.C3Tuple_OnionMessageContentsDestinationBlindedPathZ_get_c(this.ptr);
48 if (ret >= 0 && ret <= 4096) { return null; }
49 org.ldk.structs.BlindedPath ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.BlindedPath(null, ret); }
50 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(this); };
54 internal long clone_ptr() {
55 long ret = bindings.C3Tuple_OnionMessageContentsDestinationBlindedPathZ_clone_ptr(this.ptr);
61 * Creates a new tuple which has the same data as `orig`
62 * but with all dynamically-allocated buffers duplicated in new buffers.
64 public ThreeTuple_OnionMessageContentsDestinationBlindedPathZ clone() {
65 long ret = bindings.C3Tuple_OnionMessageContentsDestinationBlindedPathZ_clone(this.ptr);
67 if (ret >= 0 && ret <= 4096) { return null; }
68 ThreeTuple_OnionMessageContentsDestinationBlindedPathZ ret_hu_conv = new ThreeTuple_OnionMessageContentsDestinationBlindedPathZ(null, ret);
69 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(this); };
74 * Creates a new C3Tuple_OnionMessageContentsDestinationBlindedPathZ from the contained elements.
76 public static ThreeTuple_OnionMessageContentsDestinationBlindedPathZ of(org.ldk.structs.OnionMessageContents a, org.ldk.structs.Destination b, org.ldk.structs.BlindedPath c) {
77 long ret = bindings.C3Tuple_OnionMessageContentsDestinationBlindedPathZ_new(a.ptr, b.ptr, c.ptr);
81 if (ret >= 0 && ret <= 4096) { return null; }
82 ThreeTuple_OnionMessageContentsDestinationBlindedPathZ ret_hu_conv = new ThreeTuple_OnionMessageContentsDestinationBlindedPathZ(null, ret);
83 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); };
84 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(a); };
85 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(b); };
86 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(c); };