6 namespace org { namespace ldk { namespace structs {
12 public class TwoTuple_u32TxOutZ : CommonBase {
13 internal TwoTuple_u32TxOutZ(object _dummy, long ptr) : base(ptr) { }
14 ~TwoTuple_u32TxOutZ() {
15 if (ptr != 0) { bindings.C2Tuple_u32TxOutZ_free(ptr); }
22 int ret = bindings.C2Tuple_u32TxOutZ_get_a(this.ptr);
30 public TxOut get_b() {
31 long ret = bindings.C2Tuple_u32TxOutZ_get_b(this.ptr);
33 if (ret >= 0 && ret <= 4096) { return null; }
34 TxOut ret_conv = new TxOut(null, ret);
38 internal long clone_ptr() {
39 long ret = bindings.C2Tuple_u32TxOutZ_clone_ptr(this.ptr);
45 * Creates a new tuple which has the same data as `orig`
46 * but with all dynamically-allocated buffers duplicated in new buffers.
48 public TwoTuple_u32TxOutZ clone() {
49 long ret = bindings.C2Tuple_u32TxOutZ_clone(this.ptr);
51 if (ret >= 0 && ret <= 4096) { return null; }
52 TwoTuple_u32TxOutZ ret_hu_conv = new TwoTuple_u32TxOutZ(null, ret);
53 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(this); };
58 * Creates a new C2Tuple_u32TxOutZ from the contained elements.
60 public static TwoTuple_u32TxOutZ of(int a, org.ldk.structs.TxOut b) {
61 long ret = bindings.C2Tuple_u32TxOutZ_new(a, b.ptr);
64 if (ret >= 0 && ret <= 4096) { return null; }
65 TwoTuple_u32TxOutZ ret_hu_conv = new TwoTuple_u32TxOutZ(null, ret);
66 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); };