6 namespace org { namespace ldk { namespace structs {
12 public class TwoTuple__u168_u168Z : CommonBase {
13 internal TwoTuple__u168_u168Z(object _dummy, long ptr) : base(ptr) { }
14 ~TwoTuple__u168_u168Z() {
15 if (ptr != 0) { bindings.C2Tuple__u168_u168Z_free(ptr); }
21 public short[] get_a() {
22 short[] ret = bindings.C2Tuple__u168_u168Z_get_a(this.ptr);
30 public short[] get_b() {
31 short[] ret = bindings.C2Tuple__u168_u168Z_get_b(this.ptr);
36 internal long clone_ptr() {
37 long ret = bindings.C2Tuple__u168_u168Z_clone_ptr(this.ptr);
43 * Creates a new tuple which has the same data as `orig`
44 * but with all dynamically-allocated buffers duplicated in new buffers.
46 public TwoTuple__u168_u168Z clone() {
47 long ret = bindings.C2Tuple__u168_u168Z_clone(this.ptr);
49 if (ret >= 0 && ret <= 4096) { return null; }
50 TwoTuple__u168_u168Z ret_hu_conv = new TwoTuple__u168_u168Z(null, ret);
51 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(this); };
56 * Creates a new C2Tuple__u168_u168Z from the contained elements.
58 public static TwoTuple__u168_u168Z of(short[] a, short[] b) {
59 long ret = bindings.C2Tuple__u168_u168Z_new(InternalUtils.check_arr_len(a, 8), InternalUtils.check_arr_len(b, 8));
62 if (ret >= 0 && ret <= 4096) { return null; }
63 TwoTuple__u168_u168Z ret_hu_conv = new TwoTuple__u168_u168Z(null, ret);
64 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); };