Visual Basic (Declaration) | |
---|---|
Public Property BufferSize As Integer |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As GZipStream Dim value As Integer instance.BufferSize = value value = instance.BufferSize |
C# | |
---|---|
public int BufferSize {get; set;} |
The working buffer is used for all stream operations. The default size is 1024 bytes. The minimum size is 128 bytes. You may get better performance with a larger buffer. Then again, you might not. You would have to test it.
Set this before the first call to Read()
or Write()
on the stream. If you try to set it afterwards, it will throw.
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family