mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Fix missed renames
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user