X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FOption_TypeZ.ts;h=b6919288c4953cbcb7312e93760ff2421277c2d7;hb=f3e670e9341decac613d33fc52febf19cea32f20;hp=a9919b60b7671f142d21c8b480b42727d0b153ff;hpb=a7653cf8717b1f9df4d3f4c4bd0b1f50f3bbc230;p=ldk-java diff --git a/ts/structs/Option_TypeZ.ts b/ts/structs/Option_TypeZ.ts index a9919b60..b6919288 100644 --- a/ts/structs/Option_TypeZ.ts +++ b/ts/structs/Option_TypeZ.ts @@ -35,7 +35,7 @@ export class None extends COption_TypeZ { super(null, ptr); } } - public static Option_TypeZ constructor__some(Type o) { + public static Option_TypeZ constructor_some(Type o) { number ret = bindings.COption_TypeZ_some(o == null ? 0 : o.ptr); Option_TypeZ ret_hu_conv = Option_TypeZ.constr_from_ptr(ret); ret_hu_conv.ptrs_to.add(ret_hu_conv); @@ -43,14 +43,19 @@ export class None extends COption_TypeZ { return ret_hu_conv; } - public static Option_TypeZ constructor__none() { + public static Option_TypeZ constructor_none() { number ret = bindings.COption_TypeZ_none(); Option_TypeZ ret_hu_conv = Option_TypeZ.constr_from_ptr(ret); ret_hu_conv.ptrs_to.add(ret_hu_conv); return ret_hu_conv; } - public Option_TypeZ _clone() { + public number clone_ptr() { + number ret = bindings.COption_TypeZ_clone_ptr(this.ptr); + return ret; + } + + public Option_TypeZ clone() { number ret = bindings.COption_TypeZ_clone(this.ptr); Option_TypeZ ret_hu_conv = Option_TypeZ.constr_from_ptr(ret); ret_hu_conv.ptrs_to.add(this);