'C# equivalent of numpy memmap to create big file
I would like to migrate my code from python to C#.
At some in my python code I use np.memmap to create a really big empty image on my disk.
An example is show here:
out_full_size = np.memmap("test.rgb", dtype=np.uint8, mode='w+', shape=(100000,100000, 3))
This code create a big image of empty pixels directly on the disk in a matter of seconds. Image that I would fill chunk by chunk.
I would like to know if there is any C# function which allow to do this ? I saw in the doc that it is possible to access a large file without loading it entirely but not to create one
Solution 1:[1]
You can create a file with File.Create.
To create a memory-mapped view of part of it, you can use MemoryMappedFile.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | N??B |
