PowerTCP SSH and SFTP for .NET
BlockSize Property




Gets or sets the buffer size used for local file I/O, and determines the frequency that the Progress event is raised at.
Syntax
'Declaration
 
<DefaultValueAttribute(65536)>
Public Property BlockSize As Integer
'Usage
 
Dim instance As Optimizations
Dim value As Integer
 
instance.BlockSize = value
 
value = instance.BlockSize
[DefaultValue(65536)]
public int BlockSize {get; set;}
[DefaultValue(65536)]
public: __property int get_BlockSize();
public: __property void set_BlockSize( 
   int value
);
[DefaultValue(65536)]
public:
property int BlockSize {
   int get();
   void set (    int value);
}

Property Value

Defaults to 65536.
Remarks

The Progress event will be raised at the frequency set by this property. Set this property to a lower number to have the Progress event raised more frequently.

Reading and writing file operations are done 32768 bytes at a time, so for optimal perfomance the BlockSize property should be set using the following algorithm:

((ReadAheadBuffers + 1) / 2) * 32768

Note that setting this value below 32768 may result in a transfer speed decrease.

See Also

Reference

Optimizations Class
Optimizations Members


PowerTCP SSH and SFTP for .NET Documentation Version 7.0
© 2023 Dart Communications. All Rights Reserved.
Send comments on this topic