Skip to content
This repository has been archived by the owner on Nov 22, 2018. It is now read-only.

Commit

Permalink
Release the buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
JunTaoLuo committed Sep 1, 2016
1 parent 884cb58 commit f17c732
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ public override long Position
public void DisableBuffering()
{
BufferingEnabled = false;
BufferedStream.SetLength(0);
BufferedStream.Capacity = 0;
BufferedStream.Dispose();
}

Expand Down

0 comments on commit f17c732

Please sign in to comment.