Xceed .NET Libraries Documentation
DefaultStreamBufferSize Property


Xceed.FileSystem Assembly > Xceed.FileSystem Namespace > AbstractFile Class : DefaultStreamBufferSize Property
Gets or sets the recommended default buffer size for stream copy operations.
Syntax
'Declaration
 
Public Shared Property DefaultStreamBufferSize As Integer
'Usage
 
Dim value As Integer

 

AbstractFile.DefaultStreamBufferSize = value

 

value = AbstractFile.DefaultStreamBufferSize
public static int DefaultStreamBufferSize {get; set;}

Property Value

A value representing the recommended default buffer size for stream copy operations. By default, 65536 bytes.
Remarks

Methods like the default implementation of GetStreamBufferSize query this property.

Changing this value has the potential to affect every class that derives from AbstractFile.

An ArgumentException will be thrown if the property is set to a value less than or equal to zero.

Care must be taken when choosing a buffer size. If the value is too small, the loop count and the number of function calls increase, impacting performance. If the value is too large memory can be used up with no improvements in performance.

In most cases, it is not necessary to modify the default value of this property.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

AbstractFile Class
AbstractFile Members