6 namespace org { namespace ldk { namespace structs {
12 public class TwoTuple_CVec_u8Zu64Z : CommonBase {
13 internal TwoTuple_CVec_u8Zu64Z(object _dummy, long ptr) : base(ptr) { }
14 ~TwoTuple_CVec_u8Zu64Z() {
15 if (ptr != 0) { bindings.C2Tuple_CVec_u8Zu64Z_free(ptr); }
21 public byte[] get_a() {
22 long ret = bindings.C2Tuple_CVec_u8Zu64Z_get_a(this.ptr);
24 if (ret >= 0 && ret <= 4096) { return null; }
25 byte[] ret_conv = InternalUtils.decodeUint8Array(ret);
33 long ret = bindings.C2Tuple_CVec_u8Zu64Z_get_b(this.ptr);
38 internal long clone_ptr() {
39 long ret = bindings.C2Tuple_CVec_u8Zu64Z_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_CVec_u8Zu64Z clone() {
49 long ret = bindings.C2Tuple_CVec_u8Zu64Z_clone(this.ptr);
51 if (ret >= 0 && ret <= 4096) { return null; }
52 TwoTuple_CVec_u8Zu64Z ret_hu_conv = new TwoTuple_CVec_u8Zu64Z(null, ret);
53 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(this); };
58 * Creates a new C2Tuple_CVec_u8Zu64Z from the contained elements.
60 public static TwoTuple_CVec_u8Zu64Z of(byte[] a, long b) {
61 long ret = bindings.C2Tuple_CVec_u8Zu64Z_new(InternalUtils.encodeUint8Array(a), b);
64 if (ret >= 0 && ret <= 4096) { return null; }
65 TwoTuple_CVec_u8Zu64Z ret_hu_conv = new TwoTuple_CVec_u8Zu64Z(null, ret);
66 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); };