Gets System.IO.BufferedStream of given buffer size.

Namespace: Alachisoft.NCache.Web.Caching
Assembly: Alachisoft.NCache.Web (in Alachisoft.NCache.Web.dll) Version: 4.1.0.0 (4.1.0.0)

Syntax

C#
public Stream GetBufferedStream(
	int bufferSize
)
Visual Basic
Public Function GetBufferedStream ( _
	bufferSize As Integer _
) As Stream
Visual C++
public:
Stream^ GetBufferedStream(
	int bufferSize
)

Parameters

bufferSize
Type: System..::..Int32
Buffer size in bytes.

Return Value

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.

See Also