Can you use a Memory Mapped File? MemoryMappedFile Class says:
Memory-mapped files enable programmers to work with extremely large files
So that appears to be what Microsoft intends to be used for such large files.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I need to use BinaryReader.Read to read the file that more than 2GB (greater than the integer value range), the function parameters only support int32.
_BinaryReader.Read(_Buffer, 0, ChunkSize) 'ChunkSize value is 5GB (5,368,709,120), it's long value.
Can you use a Memory Mapped File? MemoryMappedFile Class says:
Memory-mapped files enable programmers to work with extremely large files
So that appears to be what Microsoft intends to be used for such large files.