Allow LineBufferedReader to keep underlying stream open

This commit is contained in:
smoogipoo 2020-03-31 10:13:50 +09:00
parent a8f7d7ea42
commit f6f5de7ad1

View File

@ -17,9 +17,9 @@ namespace osu.Game.IO
private readonly StreamReader streamReader;
private readonly Queue<string> lineBuffer;
public LineBufferedReader(Stream stream)
public LineBufferedReader(Stream stream, bool leaveOpen = false)
{
streamReader = new StreamReader(stream);
streamReader = new StreamReader(stream, Encoding.UTF8, true, 1024, leaveOpen);
lineBuffer = new Queue<string>();
}