This class allows you to work with a file as if it’s an allocated block of memory.
File read/write at memory speed.
Use pointers to get/set values in the memory block.
Whatever change you make in the mapped memory block will be made in the file.
This includes PB arrays using Dim At.
You can treat the in-file array as a regular PB array.
Make changes, Scan, Sort – at full memory speed.
All changes reflected in file.
- see sample on how to change array size, preserving data.
you can copy, or download source at bottom of page
This class maps whole file, Read/Write locked.
Special note on changing size of file.
File Mapping is a fixed size.
The Resize() method will close the file view, close file mapping object: change size of file and turn everything back on.
.
File read/write at memory speed.
Use pointers to get/set values in the memory block.
Whatever change you make in the mapped memory block will be made in the file.
This includes PB arrays using Dim At.
You can treat the in-file array as a regular PB array.
Make changes, Scan, Sort – at full memory speed.
All changes reflected in file.
- see sample on how to change array size, preserving data.
you can copy, or download source at bottom of page
This class maps whole file, Read/Write locked.
Special note on changing size of file.
File Mapping is a fixed size.
The Resize() method will close the file view, close file mapping object: change size of file and turn everything back on.
.
Comment