Use temp file during rebuilding sometimes

This commit is contained in:
Matt Nadareski
2024-07-16 15:09:51 -04:00
parent 0fc4e2192d
commit 41d8b4297e
2 changed files with 28 additions and 5 deletions

View File

@@ -368,7 +368,9 @@ namespace SabreTools.FileTypes
if (outputStream != null)
{
// Copy the input stream to the output
inputStream.Seek(0, SeekOrigin.Begin);
if (inputStream.CanSeek)
inputStream.Seek(0, SeekOrigin.Begin);
int bufferSize = 4096 * 128;
byte[] ibuffer = new byte[bufferSize];
int ilen;