MBS Xojo Developer Conference and Training
Join us from 3rd to 6th May 2017 in Berlin, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

MemoryBlockMBS class

class, memoryBlock, MBS Util Plugin (Memory), class MemoryBlockMBS,
Plugin version: 5.3, Mac: Yes, Win: Yes, Linux: Yes, Console & Web: Yes, Feedback.

Function: A class to hold a memoryblock.
Example:
dim m as new MemoryBlockMBS

if m.Create(2000) then

// copy struing into memory
m.Memory.StringValue(0,5)="Hello"

// and read again
MsgBox m.Memory.StringValue(0,5)

end if
Notes:
Realbasics memoryblocks have two bad things:
- they are limited to 1 GB on Mac OS X and Mac OS Classic
- they take a lot of time to create them
- they take a lot of real memory

Realbasic allocates the memory and fills it with zeros.

The plugin in contrast uses zero filled pages to create the memoryblock which nearly take no time to create them and it does only need virtual memory until the memory is really used which saved swapping space.

This class has no sub classes.

Some examples which use this class:


The items on this page are in the following plugins: MBS Util Plugin.


MemoryBlock   -   MemoryStorageMBS




Links
MBS Realbasic tutorial videos