+
+ /**
+ * Creates a new CResult_InvoiceFeaturesDecodeErrorZ in the success state.
+ */
+ public static Result_InvoiceFeaturesDecodeErrorZ ok(InvoiceFeatures o) {
+ long ret = bindings.CResult_InvoiceFeaturesDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
+ if (ret >= 0 && ret <= 4096) { return null; }
+ Result_InvoiceFeaturesDecodeErrorZ ret_hu_conv = Result_InvoiceFeaturesDecodeErrorZ.constr_from_ptr(ret);
+ return ret_hu_conv;
+ }
+
+ /**
+ * Creates a new CResult_InvoiceFeaturesDecodeErrorZ in the error state.
+ */
+ public static Result_InvoiceFeaturesDecodeErrorZ err(DecodeError e) {
+ long ret = bindings.CResult_InvoiceFeaturesDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
+ if (ret >= 0 && ret <= 4096) { return null; }
+ Result_InvoiceFeaturesDecodeErrorZ ret_hu_conv = Result_InvoiceFeaturesDecodeErrorZ.constr_from_ptr(ret);
+ return ret_hu_conv;
+ }
+
+ /**
+ * Checks if the given object is currently in the success state
+ */
+ public boolean is_ok() {
+ boolean ret = bindings.CResult_InvoiceFeaturesDecodeErrorZ_is_ok(this.ptr);
+ return ret;
+ }
+