X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=c_sharp%2Fsrc%2Forg%2Fldk%2Fstructs%2FOption_ScalarZ.cs;h=b3ef0179ccf3a50c3f6c856e4d6d55dd526657ec;hb=c6777737ea14e7814b0fa7d6fe16536f31d4a82b;hp=d5c98bb152b8abe11e771c923a77133ce6b6328a;hpb=ee72c84d4bf9e2404e02fe20155efb502ceaee1b;p=ldk-java diff --git a/c_sharp/src/org/ldk/structs/Option_ScalarZ.cs b/c_sharp/src/org/ldk/structs/Option_ScalarZ.cs index d5c98bb1..b3ef0179 100644 --- a/c_sharp/src/org/ldk/structs/Option_ScalarZ.cs +++ b/c_sharp/src/org/ldk/structs/Option_ScalarZ.cs @@ -62,5 +62,24 @@ public class Option_ScalarZ : CommonBase { return ret_hu_conv; } + internal long clone_ptr() { + long ret = bindings.COption_ScalarZ_clone_ptr(this.ptr); + GC.KeepAlive(this); + return ret; + } + + /** + * Creates a new COption_ScalarZ which has the same data as `orig` + * but with all dynamically-allocated buffers duplicated in new buffers. + */ + public Option_ScalarZ clone() { + long ret = bindings.COption_ScalarZ_clone(this.ptr); + GC.KeepAlive(this); + if (ret >= 0 && ret <= 4096) { return null; } + org.ldk.structs.Option_ScalarZ ret_hu_conv = org.ldk.structs.Option_ScalarZ.constr_from_ptr(ret); + if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(this); }; + return ret_hu_conv; + } + } } } }