On 2010-05-29 10:17:34 +0200, Robert <[email protected]> said:
Replying to myself: Simple, close the file, and re-open with new size. Old content is kept. This should be added to the docs, as it's not totally clear.
This could become problematic if the app holds some slices to the MMF and the 2nd open maps to a different memory address. In this case all references to the MMF are invalid.
I saw that it's possible to specify an explicit address but it seems not to be ensured that this address is used by the OS.
Going to do some tests to see if this holds or not. Returned values from the MMF (even index offsets) of course stay the same and are valid.
-- Robert M. Münch http://www.robertmuench.de
