Method GetBufferedStream
GetBufferedStream(Int32)
Gets System.IO.BufferedStream of given buffer size.
Declaration
public Stream GetBufferedStream(int bufferSize)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | bufferSize | Buffer size in bytes. |
Returns
Type | Description |
---|---|
System.IO.Stream | An instance of System.IO.BufferedStream. |
Remarks
CacheStream does not buffer the data. Each read/write operation performed on the stream is propagated to cache. However, this can cause performance issues if small chunks of data are being read/written from/to stream. System.IO.BufferedStream supports buffering of data. This method returns an instance of System.IO.BufferedStream which encapsulates CacheStream.
GetBufferedStream()
Gets System.IO.BufferedStream of given buffer size.
Declaration
public Stream GetBufferedStream()
Returns
Type | Description |
---|---|
System.IO.Stream | An instance of System.IO.BufferedStream with buffer size of 4 Kb. |
Remarks
CacheStream does not buffer the data. Each read/write operation performed on the stream is propagated to cache. However, this can cause performance issues if small chunks of data are being read/written from/to stream. System.IO.BufferedStream supports buffering of data. This method returns an instance of System.IO.BufferedStream which encapsulates CacheStream.