+
+ /**
+ * Creates a new CResult_QueryShortChannelIdsDecodeErrorZ in the success state.
+ */
+ public static Result_QueryShortChannelIdsDecodeErrorZ ok(QueryShortChannelIds o) {
+ long ret = bindings.CResult_QueryShortChannelIdsDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
+ if (ret >= 0 && ret <= 4096) { return null; }
+ Result_QueryShortChannelIdsDecodeErrorZ ret_hu_conv = Result_QueryShortChannelIdsDecodeErrorZ.constr_from_ptr(ret);
+ return ret_hu_conv;
+ }
+
+ /**
+ * Creates a new CResult_QueryShortChannelIdsDecodeErrorZ in the error state.
+ */
+ public static Result_QueryShortChannelIdsDecodeErrorZ err(DecodeError e) {
+ long ret = bindings.CResult_QueryShortChannelIdsDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
+ if (ret >= 0 && ret <= 4096) { return null; }
+ Result_QueryShortChannelIdsDecodeErrorZ ret_hu_conv = Result_QueryShortChannelIdsDecodeErrorZ.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_QueryShortChannelIdsDecodeErrorZ_is_ok(this.ptr);
+ return ret;
+ }
+
+ long clone_ptr() {
+ long ret = bindings.CResult_QueryShortChannelIdsDecodeErrorZ_clone_ptr(this.ptr);
+ return ret;
+ }
+
+ /**
+ * Creates a new CResult_QueryShortChannelIdsDecodeErrorZ which has the same data as `orig`
+ * but with all dynamically-allocated buffers duplicated in new buffers.
+ */
+ public Result_QueryShortChannelIdsDecodeErrorZ clone() {
+ long ret = bindings.CResult_QueryShortChannelIdsDecodeErrorZ_clone(this.ptr);
+ if (ret >= 0 && ret <= 4096) { return null; }
+ Result_QueryShortChannelIdsDecodeErrorZ ret_hu_conv = Result_QueryShortChannelIdsDecodeErrorZ.constr_from_ptr(ret);
+ return ret_hu_conv;
+ }
+