X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Forg%2Fldk%2Fstructs%2FResult_CVec_CVec_u8ZZNoneZ.java;fp=src%2Fmain%2Fjava%2Forg%2Fldk%2Fstructs%2FResult_CVec_CVec_u8ZZNoneZ.java;h=c76b6396e6b883dbc627ec8488aad5731b363a19;hb=c45b91b3165ba0ff774d12d357188cae979574d3;hp=768260be080d222225f931c7a1b775e0445abb94;hpb=ad6b4ed4fb492ae96d1771e9fbac03950e6f5c0e;p=ldk-java diff --git a/src/main/java/org/ldk/structs/Result_CVec_CVec_u8ZZNoneZ.java b/src/main/java/org/ldk/structs/Result_CVec_CVec_u8ZZNoneZ.java index 768260be..c76b6396 100644 --- a/src/main/java/org/ldk/structs/Result_CVec_CVec_u8ZZNoneZ.java +++ b/src/main/java/org/ldk/structs/Result_CVec_CVec_u8ZZNoneZ.java @@ -24,17 +24,40 @@ public class Result_CVec_CVec_u8ZZNoneZ extends CommonBase { super(_dummy, ptr); this.res = bindings.LDKCResult_CVec_CVec_u8ZZNoneZ_get_ok(ptr); } - public Result_CVec_CVec_u8ZZNoneZ_OK(byte[][] res) { - this(null, bindings.CResult_CVec_CVec_u8ZZNoneZ_ok(res)); - } } public static final class Result_CVec_CVec_u8ZZNoneZ_Err extends Result_CVec_CVec_u8ZZNoneZ { private Result_CVec_CVec_u8ZZNoneZ_Err(Object _dummy, long ptr) { super(_dummy, ptr); } - public Result_CVec_CVec_u8ZZNoneZ_Err() { - this(null, bindings.CResult_CVec_CVec_u8ZZNoneZ_err()); - } } + + /** + * Creates a new CResult_CVec_CVec_u8ZZNoneZ in the success state. + */ + public static Result_CVec_CVec_u8ZZNoneZ constructor_ok(byte[][] o) { + long ret = bindings.CResult_CVec_CVec_u8ZZNoneZ_ok(o); + Result_CVec_CVec_u8ZZNoneZ ret_hu_conv = Result_CVec_CVec_u8ZZNoneZ.constr_from_ptr(ret); + return ret_hu_conv; + } + + /** + * Creates a new CResult_CVec_CVec_u8ZZNoneZ in the error state. + */ + public static Result_CVec_CVec_u8ZZNoneZ constructor_err() { + long ret = bindings.CResult_CVec_CVec_u8ZZNoneZ_err(); + Result_CVec_CVec_u8ZZNoneZ ret_hu_conv = Result_CVec_CVec_u8ZZNoneZ.constr_from_ptr(ret); + return ret_hu_conv; + } + + /** + * Creates a new CResult_CVec_CVec_u8ZZNoneZ which has the same data as `orig` + * but with all dynamically-allocated buffers duplicated in new buffers. + */ + public Result_CVec_CVec_u8ZZNoneZ clone() { + long ret = bindings.CResult_CVec_CVec_u8ZZNoneZ_clone(this.ptr); + Result_CVec_CVec_u8ZZNoneZ ret_hu_conv = Result_CVec_CVec_u8ZZNoneZ.constr_from_ptr(ret); + return ret_hu_conv; + } + }