UtilStreamGetFileStreamBufferSize Method
Given a filesize, determine the optimal buffer size to boost the performance of a FileStream operation.
Namespace: DevCase.Core.IO.FileSystemAssembly: 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
)
Public Shared Function GetFileStreamBufferSize (
filesize As Long
) As BufferSizes
Dim filesize As Long
Dim returnValue As BufferSizes
returnValue = UtilStream.GetFileStreamBufferSize(filesize)
public:
static BufferSizes GetFileStreamBufferSize(
long long filesize
)
static member GetFileStreamBufferSize :
filesize : int64 -> BufferSizes
No code example is currently available or this language may not be supported.
- filesize Int64
-
The size, in bytes, of the data to be read or write by a FileStream.
BufferSizes
The returned value is the proper buffer size, in bytes,
that should be set as
BufferSize parameter when instancing a
FileStream.