+
+ /**
+ * Creates a new CResult_boolPeerHandleErrorZ in the success state.
+ */
+ public static Result_boolPeerHandleErrorZ constructor_ok(boolean o) {
+ long ret = bindings.CResult_boolPeerHandleErrorZ_ok(o);
+ Result_boolPeerHandleErrorZ ret_hu_conv = Result_boolPeerHandleErrorZ.constr_from_ptr(ret);
+ return ret_hu_conv;
+ }
+
+ /**
+ * Creates a new CResult_boolPeerHandleErrorZ in the error state.
+ */
+ public static Result_boolPeerHandleErrorZ constructor_err(PeerHandleError e) {
+ long ret = bindings.CResult_boolPeerHandleErrorZ_err(e == null ? 0 : e.ptr & ~1);
+ Result_boolPeerHandleErrorZ ret_hu_conv = Result_boolPeerHandleErrorZ.constr_from_ptr(ret);
+ ret_hu_conv.ptrs_to.add(e);
+ return ret_hu_conv;
+ }
+
+ /**
+ * Creates a new CResult_boolPeerHandleErrorZ which has the same data as `orig`
+ * but with all dynamically-allocated buffers duplicated in new buffers.
+ */
+ public Result_boolPeerHandleErrorZ clone() {
+ long ret = bindings.CResult_boolPeerHandleErrorZ_clone(this.ptr);
+ Result_boolPeerHandleErrorZ ret_hu_conv = Result_boolPeerHandleErrorZ.constr_from_ptr(ret);
+ return ret_hu_conv;
+ }
+