Fix missed renames

This commit is contained in:
Matt Nadareski
2025-01-05 20:49:34 -05:00
parent bed35ce6b6
commit 39f02b3ee1

View File

@@ -281,14 +281,14 @@ namespace SabreTools.FileTypes
} }
/// <inheritdoc/> /// <inheritdoc/>
public bool Write(Stream? inputStream, string outDir, BaseFile? baseFile) public bool Write(Stream? stream, string outDir, BaseFile? baseFile)
{ {
// If either input is null or empty, return // If either input is null or empty, return
if (inputStream == null || baseFile == null || baseFile.Filename == null) if (stream == null || baseFile == null || baseFile.Filename == null)
return false; return false;
// If the stream is not readable, return // If the stream is not readable, return
if (!inputStream.CanRead) if (!stream.CanRead)
return false; return false;
// Set internal variables // Set internal variables
@@ -323,14 +323,14 @@ namespace SabreTools.FileTypes
if (outputStream == null) if (outputStream == null)
return false; return false;
if (inputStream.CanSeek) if (stream.CanSeek)
inputStream.Seek(0, SeekOrigin.Begin); stream.Seek(0, SeekOrigin.Begin);
// Copy the input stream to the output // Copy the input stream to the output
int bufferSize = 4096 * 128; int bufferSize = 4096 * 128;
byte[] ibuffer = new byte[bufferSize]; byte[] ibuffer = new byte[bufferSize];
int ilen; int ilen;
while ((ilen = inputStream.Read(ibuffer, 0, bufferSize)) > 0) while ((ilen = stream.Read(ibuffer, 0, bufferSize)) > 0)
{ {
outputStream.Write(ibuffer, 0, ilen); outputStream.Write(ibuffer, 0, ilen);
outputStream.Flush(); outputStream.Flush();
@@ -360,7 +360,7 @@ namespace SabreTools.FileTypes
} }
/// <inheritdoc/> /// <inheritdoc/>
public bool Write(List<string> inputFiles, string outDir, List<BaseFile>? baseFiles) public bool Write(List<string> files, string outDir, List<BaseFile>? baseFiles)
{ {
throw new NotImplementedException(); throw new NotImplementedException();
} }