mirror of
https://github.com/ppy/osu
synced 2024-12-28 18:02:53 +00:00
Allow LineBufferedReader to keep underlying stream open
This commit is contained in:
parent
a8f7d7ea42
commit
f6f5de7ad1
@ -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>();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user