vimpunk / mio

Cross-platform C++11 header-only library for memory mapped file IO
MIT License
1.71k stars 157 forks source link

How to use Mio to read and write large files #85

Open LoveChina-3000 opened 2 years ago

LoveChina-3000 commented 2 years ago

Hi,May i ask a question? How to use Mio to read and write large files?Thank you

spudwa commented 2 years ago

How large? MB or GB or TB?

LoveChina-3000 commented 2 years ago

On a 32-bit computer, files larger than 8GB can be read and written. Is there any relevant example to refer to。Thank you

LoveChina-3000 commented 2 years ago

Hi, How to use mio to write a file which more than 8 GB. Thank you

spudwa commented 2 years ago

32bit windows has a memory limit of 2gb, while you are using NTFS limits. mmap needs to be able allocate contiguous virtual memory so it's not going to happen unless you move to 64bit