BufferSizes Enumeration

Specifies common buffer sizes to use for a disk or memory read/write operation.

To calculate the optimal read/write buffer size for a determined filesize, use the GetFileStreamBufferSize(Int64) function.

Definition

Namespace: DevCase.Core.IO.Memory
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public enum BufferSizes

Remarks

Members

Kb1 1,024 A buffer size of 1 Kilobyte (1024 bytes)
StreamReaderDefault 1,024 A buffer size of 1 Kilobyte (1024 bytes)

This is the default buffer size of StreamReader implementation.

StreamWriterDefault 1,024 A buffer size of 1 Kilobyte (1024 bytes)

This is the default buffer size of StreamWriter implementation.

Kb2 2,048 A buffer size of 2 Kilobytes (2048 bytes)
Kb4 4,096 A buffer size of 4 Kilobytes (4096 bytes)
FileStreamDefault 4,096 A buffer size of 4 Kilobytes (4096 bytes)

This is the default buffer size of FileStream implementation.

BufferedStreamDefault 4,096 A buffer size of 4 Kilobytes (4096 bytes)

This is the default buffer size of BufferedStream implementation.

Kb8 8,192 A buffer size of 8 Kilobytes (8192 bytes)
Kb16 16,384 A buffer size of 16 Kilobytes (16384 bytes)
Kb32 32,768 A buffer size of 32 Kilobytes (32768 bytes)
Kb64 65,536 A buffer size of 64 Kilobytes (65536 bytes)
Kb128 131,072 A buffer size of 128 Kilobytes (131072 bytes)
Kb256 262,144 A buffer size of 256 Kilobytes (262144 bytes)
Kb512 524,288 A buffer size of 512 Kilobytes (524288 bytes)
Mb1 1,048,576 A buffer size of 1 Megabyte (1048576 bytes)

See Also