1 package org.ldk.structs;
3 import org.ldk.impl.bindings;
4 import org.ldk.enums.*;
6 import java.util.Arrays;
8 @SuppressWarnings("unchecked") // We correctly assign various generic arrays
9 public class Result_CVec_SignatureZNoneZ extends CommonBase {
10 private Result_CVec_SignatureZNoneZ(Object _dummy, long ptr) { super(ptr); }
11 protected void finalize() throws Throwable {
12 if (ptr != 0) { bindings.CResult_CVec_SignatureZNoneZ_free(ptr); } super.finalize();
15 static Result_CVec_SignatureZNoneZ constr_from_ptr(long ptr) {
16 if (bindings.LDKCResult_CVec_SignatureZNoneZ_result_ok(ptr)) {
17 return new Result_CVec_SignatureZNoneZ_OK(null, ptr);
19 return new Result_CVec_SignatureZNoneZ_Err(null, ptr);
22 public static final class Result_CVec_SignatureZNoneZ_OK extends Result_CVec_SignatureZNoneZ {
23 public final byte[][] res;
24 private Result_CVec_SignatureZNoneZ_OK(Object _dummy, long ptr) {
26 this.res = bindings.LDKCResult_CVec_SignatureZNoneZ_get_ok(ptr);
28 public Result_CVec_SignatureZNoneZ_OK(byte[][] res) {
29 this(null, bindings.CResult_CVec_SignatureZNoneZ_ok(res));
33 public static final class Result_CVec_SignatureZNoneZ_Err extends Result_CVec_SignatureZNoneZ {
34 public final byte err;
35 private Result_CVec_SignatureZNoneZ_Err(Object _dummy, long ptr) {
37 this.err = bindings.LDKCResult_CVec_SignatureZNoneZ_get_err(ptr);
39 public Result_CVec_SignatureZNoneZ_Err() {
40 this(null, bindings.CResult_CVec_SignatureZNoneZ_err());