}
static Result_PayeePubKeyErrorZ constr_from_ptr(long ptr) {
- if (bindings.LDKCResult_PayeePubKeyErrorZ_result_ok(ptr)) {
+ if (bindings.CResult_PayeePubKeyErrorZ_is_ok(ptr)) {
return new Result_PayeePubKeyErrorZ_OK(null, ptr);
} else {
return new Result_PayeePubKeyErrorZ_Err(null, ptr);
}
}
- public static Result_PayeePubKeyErrorZ constructor__ok(PayeePubKey o) {
+ public static Result_PayeePubKeyErrorZ constructor_ok(PayeePubKey o) {
number ret = bindings.CResult_PayeePubKeyErrorZ_ok(o == null ? 0 : o.ptr & ~1);
Result_PayeePubKeyErrorZ ret_hu_conv = Result_PayeePubKeyErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
- public static Result_PayeePubKeyErrorZ constructor__err(Secp256k1Error e) {
+ public static Result_PayeePubKeyErrorZ constructor_err(Secp256k1Error e) {
number ret = bindings.CResult_PayeePubKeyErrorZ_err(e);
Result_PayeePubKeyErrorZ ret_hu_conv = Result_PayeePubKeyErrorZ.constr_from_ptr(ret);
return ret_hu_conv;
}
- public Result_PayeePubKeyErrorZ _clone() {
+ public boolean is_ok() {
+ boolean ret = bindings.CResult_PayeePubKeyErrorZ_is_ok(this.ptr);
+ return ret;
+ }
+
+ public number clone_ptr() {
+ number ret = bindings.CResult_PayeePubKeyErrorZ_clone_ptr(this.ptr);
+ return ret;
+ }
+
+ public Result_PayeePubKeyErrorZ clone() {
number ret = bindings.CResult_PayeePubKeyErrorZ_clone(this.ptr);
Result_PayeePubKeyErrorZ ret_hu_conv = Result_PayeePubKeyErrorZ.constr_from_ptr(ret);
return ret_hu_conv;