Hello,
I’m playing with the shared memory function of the MBS plugin and I’m considering how to calculate how much room I’ll need.
This is about this function: FileMappingMBS.CreateSharedMemory(name as string, Size as Int64) as boolean
Which has this line in the documentation:
The Size should be a multiple of the page size (4096).
I can understand it two ways:
• This is just the declared size that must be a multiple of 4096; in that case, 8192 is the available size.
• Any byte takes 4096 bytes of RAM (e.g. for storage or reference purpose or headers); in that case, 8192 means I can use two bytes.
I see the latter would probably be silly, but I can’t think it’s impossible. Which one is correct?