+
+ /**
+ * Creates a new CResult_OutPointDecodeErrorZ in the success state.
+ */
+ public static Result_OutPointDecodeErrorZ ok(OutPoint o) {
+ long ret = bindings.CResult_OutPointDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
+ if (ret >= 0 && ret <= 4096) { return null; }
+ Result_OutPointDecodeErrorZ ret_hu_conv = Result_OutPointDecodeErrorZ.constr_from_ptr(ret);
+ return ret_hu_conv;
+ }
+
+ /**
+ * Creates a new CResult_OutPointDecodeErrorZ in the error state.
+ */
+ public static Result_OutPointDecodeErrorZ err(DecodeError e) {
+ long ret = bindings.CResult_OutPointDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
+ if (ret >= 0 && ret <= 4096) { return null; }
+ Result_OutPointDecodeErrorZ ret_hu_conv = Result_OutPointDecodeErrorZ.constr_from_ptr(ret);
+ return ret_hu_conv;
+ }
+
+ /**
+ * Creates a new CResult_OutPointDecodeErrorZ which has the same data as `orig`
+ * but with all dynamically-allocated buffers duplicated in new buffers.
+ */
+ public Result_OutPointDecodeErrorZ clone() {
+ long ret = bindings.CResult_OutPointDecodeErrorZ_clone(this.ptr);
+ if (ret >= 0 && ret <= 4096) { return null; }
+ Result_OutPointDecodeErrorZ ret_hu_conv = Result_OutPointDecodeErrorZ.constr_from_ptr(ret);
+ return ret_hu_conv;
+ }
+