X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Forg%2Fldk%2Fstructs%2FOption_CVec_NetAddressZZ.java;h=a3e77a308d68b6d43e38c2bc99df4ce87bc95ea1;hb=f3e670e9341decac613d33fc52febf19cea32f20;hp=9ae23246e3627ce0706f5a1367c46db59dd35809;hpb=e30b350e325e7d517ea744578876d473839ad495;p=ldk-java diff --git a/src/main/java/org/ldk/structs/Option_CVec_NetAddressZZ.java b/src/main/java/org/ldk/structs/Option_CVec_NetAddressZZ.java index 9ae23246..a3e77a30 100644 --- a/src/main/java/org/ldk/structs/Option_CVec_NetAddressZZ.java +++ b/src/main/java/org/ldk/structs/Option_CVec_NetAddressZZ.java @@ -29,6 +29,9 @@ public class Option_CVec_NetAddressZZ extends CommonBase { assert false; return null; // Unreachable without extending the (internal) bindings interface } + /** + * When we're in this state, this COption_CVec_NetAddressZZ contains a crate::c_types::derived::CVec_NetAddressZ + */ public final static class Some extends Option_CVec_NetAddressZZ { public final NetAddress[] some; private Some(long ptr, bindings.LDKCOption_CVec_NetAddressZZ.Some obj) { @@ -44,6 +47,9 @@ public class Option_CVec_NetAddressZZ extends CommonBase { this.some = some_conv_12_arr; } } + /** + * When we're in this state, this COption_CVec_NetAddressZZ contains nothing + */ public final static class None extends Option_CVec_NetAddressZZ { private None(long ptr, bindings.LDKCOption_CVec_NetAddressZZ.None obj) { super(null, ptr); @@ -71,6 +77,11 @@ public class Option_CVec_NetAddressZZ extends CommonBase { return ret_hu_conv; } + long clone_ptr() { + long ret = bindings.COption_CVec_NetAddressZZ_clone_ptr(this.ptr); + return ret; + } + /** * Creates a new COption_CVec_NetAddressZZ which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers.