mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-27 03:58:01 +02:00
properly reset internal state on close
This commit is contained in:
parent
4211c267a6
commit
98da39a3ba
2 changed files with 10 additions and 5 deletions
|
@ -179,7 +179,12 @@ namespace System.IO
|
|||
|
||||
public override Result<void> Close()
|
||||
{
|
||||
return Flush();
|
||||
let ret = Flush();
|
||||
|
||||
mPos = 0;
|
||||
mBufferPos = -Int32.MinValue;
|
||||
mBufferEnd = -Int32.MinValue;
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue