6 namespace org { namespace ldk { namespace structs {
12 public class TwoTuple_OutPointCVec_u8ZZ : CommonBase {
13 internal TwoTuple_OutPointCVec_u8ZZ(object _dummy, long ptr) : base(ptr) { }
14 ~TwoTuple_OutPointCVec_u8ZZ() {
15 if (ptr != 0) { bindings.C2Tuple_OutPointCVec_u8ZZ_free(ptr); }
21 public OutPoint get_a() {
22 long ret = bindings.C2Tuple_OutPointCVec_u8ZZ_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 byte[] get_b() {
34 long ret = bindings.C2Tuple_OutPointCVec_u8ZZ_get_b(this.ptr);
36 if (ret >= 0 && ret <= 4096) { return null; }
37 byte[] ret_conv = InternalUtils.decodeUint8Array(ret);
41 internal long clone_ptr() {
42 long ret = bindings.C2Tuple_OutPointCVec_u8ZZ_clone_ptr(this.ptr);
48 * Creates a new tuple which has the same data as `orig`
49 * but with all dynamically-allocated buffers duplicated in new buffers.
51 public TwoTuple_OutPointCVec_u8ZZ clone() {
52 long ret = bindings.C2Tuple_OutPointCVec_u8ZZ_clone(this.ptr);
54 if (ret >= 0 && ret <= 4096) { return null; }
55 TwoTuple_OutPointCVec_u8ZZ ret_hu_conv = new TwoTuple_OutPointCVec_u8ZZ(null, ret);
56 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(this); };
61 * Creates a new C2Tuple_OutPointCVec_u8ZZ from the contained elements.
63 public static TwoTuple_OutPointCVec_u8ZZ of(org.ldk.structs.OutPoint a, byte[] b) {
64 long ret = bindings.C2Tuple_OutPointCVec_u8ZZ_new(a.ptr, InternalUtils.encodeUint8Array(b));
67 if (ret >= 0 && ret <= 4096) { return null; }
68 TwoTuple_OutPointCVec_u8ZZ ret_hu_conv = new TwoTuple_OutPointCVec_u8ZZ(null, ret);
69 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); };
70 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(a); };