1 package org.ldk.structs;
3 import org.ldk.impl.bindings;
4 import org.ldk.enums.*;
6 import java.util.Arrays;
7 import javax.annotation.Nullable;
13 @SuppressWarnings("unchecked") // We correctly assign various generic arrays
14 public class ThreeTuple_RawInvoice_u832InvoiceSignatureZ extends CommonBase {
15 ThreeTuple_RawInvoice_u832InvoiceSignatureZ(Object _dummy, long ptr) { super(ptr); }
16 @Override @SuppressWarnings("deprecation")
17 protected void finalize() throws Throwable {
19 if (ptr != 0) { bindings.C3Tuple_RawInvoice_u832InvoiceSignatureZ_free(ptr); }
25 public RawInvoice get_a() {
26 long ret = bindings.C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_a(this.ptr);
27 if (ret >= 0 && ret <= 4096) { return null; }
28 RawInvoice ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new RawInvoice(null, ret); }
29 ret_hu_conv.ptrs_to.add(this);
36 public byte[] get_b() {
37 byte[] ret = bindings.C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_b(this.ptr);
44 public InvoiceSignature get_c() {
45 long ret = bindings.C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_c(this.ptr);
46 if (ret >= 0 && ret <= 4096) { return null; }
47 InvoiceSignature ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new InvoiceSignature(null, ret); }
48 ret_hu_conv.ptrs_to.add(this);
53 long ret = bindings.C3Tuple_RawInvoice_u832InvoiceSignatureZ_clone_ptr(this.ptr);
58 * Creates a new tuple which has the same data as `orig`
59 * but with all dynamically-allocated buffers duplicated in new buffers.
61 public ThreeTuple_RawInvoice_u832InvoiceSignatureZ clone() {
62 long ret = bindings.C3Tuple_RawInvoice_u832InvoiceSignatureZ_clone(this.ptr);
63 if (ret >= 0 && ret <= 4096) { return null; }
64 ThreeTuple_RawInvoice_u832InvoiceSignatureZ ret_hu_conv = new ThreeTuple_RawInvoice_u832InvoiceSignatureZ(null, ret);
65 ret_hu_conv.ptrs_to.add(this);
70 * Creates a new C3Tuple_RawInvoice_u832InvoiceSignatureZ from the contained elements.
72 public static ThreeTuple_RawInvoice_u832InvoiceSignatureZ of(RawInvoice a, byte[] b, InvoiceSignature c) {
73 long ret = bindings.C3Tuple_RawInvoice_u832InvoiceSignatureZ_new(a == null ? 0 : a.ptr & ~1, InternalUtils.check_arr_len(b, 32), c == null ? 0 : c.ptr & ~1);
74 if (ret >= 0 && ret <= 4096) { return null; }
75 ThreeTuple_RawInvoice_u832InvoiceSignatureZ ret_hu_conv = new ThreeTuple_RawInvoice_u832InvoiceSignatureZ(null, ret);
76 ret_hu_conv.ptrs_to.add(ret_hu_conv);