- if (ret < 1024) { return null; }
- long ret_a = bindings.LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ_get_a(ret);
- RawInvoice ret_a_hu_conv = new RawInvoice(null, ret_a);
- ret_a_hu_conv.ptrs_to.add(this);;
- byte[] ret_b = bindings.LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ_get_b(ret);
- long ret_c = bindings.LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ_get_c(ret);
- InvoiceSignature ret_c_hu_conv = new InvoiceSignature(null, ret_c);
- ret_c_hu_conv.ptrs_to.add(this);;
- ThreeTuple<RawInvoice, byte[], InvoiceSignature> ret_conv = new ThreeTuple<RawInvoice, byte[], InvoiceSignature>(ret_a_hu_conv, ret_b, ret_c_hu_conv, () -> {
- bindings.C3Tuple_RawInvoice_u832InvoiceSignatureZ_free(ret);
- });
- ret_a_hu_conv.ptrs_to.add(ret_conv);
- ret_c_hu_conv.ptrs_to.add(ret_conv);
- this.ptrs_to.add(this);
- return ret_conv;
+ if (ret >= 0 && ret <= 4096) { return null; }
+ ThreeTuple_RawInvoice_u832InvoiceSignatureZ ret_hu_conv = new ThreeTuple_RawInvoice_u832InvoiceSignatureZ(null, ret);
+ ret_hu_conv.ptrs_to.add(this);
+ ;
+ return ret_hu_conv;