pub unsafe extern "C" fn mlirLlvmRawFdOStreamCreate(
path: *const c_char,
binary: bool,
errorCallback: MlirStringCallback,
userData: *mut c_void,
) -> MlirLlvmRawFdOStreamExpand description
Create a raw_fd_ostream for the given path. This wrapper is needed because std::ostream does not provide the file sharing semantics required on Windows.
path: output file path.binary: controls text vs binary mode.errorCallback: called with an error message on failure (optional).userData: forwarded toerrorCallbackso it can copy the error message into caller-owned storage (e.g., astd::string). On failure, returns a null stream and invokes the optional error callback with the error message.