Gets System.IO.BufferedStream of given buffer size.

Namespace: Alachisoft.NCache.Web.Caching
Assembly: Alachisoft.NCache.Web (in Alachisoft.NCache.Web.dll) Version: 4.3.0.0 (4.3.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

Type: 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.

See Also