UtilStreamGetFileStreamBufferSize Method

Given a filesize, determine the optimal buffer size to boost the performance of a FileStream operation.

Definition

Namespace: DevCase.Core.IO.FileSystem
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static BufferSizes GetFileStreamBufferSize(
	long filesize
)

Parameters

filesize  Int64
The size, in bytes, of the data to be read or write by a FileStream.

Return Value

BufferSizes
The returned value is the proper buffer size, in bytes, that should be set as BufferSize parameter when instancing a FileStream.

See Also