UsingfilestreamwritebytestooutputprogressconsoleduetoinsufficientmemoryOutofmemory异常。有什么我想念的吗?我不知道为什么会出现内存丢失错误,因为我认为Filestream只会使用最多4096字节的缓冲区?老实说,我不完全确定缓冲区的含义,如有任何建议,我们将不胜感激。publicstaticasyncTaskCreateRandomFile(stringpathway,intsize,IProgressprog){byte[]fileSize=newbyte[size];newRandom().NextBytes(fileSize);awaitTask.Run(()=>{使用(FileStreamfs=File.Create(pathway,4096)){for(inti=0;i
