6 namespace org { namespace ldk { namespace structs {
12 public class TwoTuple_usizeTransactionZ : CommonBase {
13 internal TwoTuple_usizeTransactionZ(object _dummy, long ptr) : base(ptr) { }
14 ~TwoTuple_usizeTransactionZ() {
15 if (ptr != 0) { bindings.C2Tuple_usizeTransactionZ_free(ptr); }
22 long ret = bindings.C2Tuple_usizeTransactionZ_get_a(this.ptr);
30 public byte[] get_b() {
31 long ret = bindings.C2Tuple_usizeTransactionZ_get_b(this.ptr);
33 if (ret >= 0 && ret <= 4096) { return null; }
34 byte[] ret_conv = InternalUtils.decodeUint8Array(ret);
38 internal long clone_ptr() {
39 long ret = bindings.C2Tuple_usizeTransactionZ_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_usizeTransactionZ clone() {
49 long ret = bindings.C2Tuple_usizeTransactionZ_clone(this.ptr);
51 if (ret >= 0 && ret <= 4096) { return null; }
52 TwoTuple_usizeTransactionZ ret_hu_conv = new TwoTuple_usizeTransactionZ(null, ret);
53 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(this); };
58 * Creates a new C2Tuple_usizeTransactionZ from the contained elements.
60 public static TwoTuple_usizeTransactionZ of(long a, byte[] b) {
61 long ret = bindings.C2Tuple_usizeTransactionZ_new(a, InternalUtils.encodeUint8Array(b));
64 if (ret >= 0 && ret <= 4096) { return null; }
65 TwoTuple_usizeTransactionZ ret_hu_conv = new TwoTuple_usizeTransactionZ(null, ret);
66 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); };