Platforms to show: All Mac Windows Linux Cross-Platform
MemoryStorageMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | MemoryBlock | MBS Util Plugin | 16.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
The memory is stored using mapped memory in the system address space outside of the 32bit app memory of your app.
Normally a 32-bit app can only use 2 to 4 GB of memory. Using blocks of memory outside this address space, you can easily keep 10 GB of data in memory.
Be aware that a some point creating more storages may fail due to out of memory.
The system may decide to swap memory to disk if you run out of physical memory.
Please have your app check free space on boot disk regularly and avoid running out of disk space for swap!
- 4 properties
- property MemoryValue as MemoryBlock
- property Size as Integer
- property SizeAllocated as Integer
- property StringValue as String
- 6 methods
- method Constructor(Size as Int64 = 0)
- method Destructor
- method MemoryValue(Offset as Int64, Assigns s as MemoryBlock)
- method MemoryValue(Offset as Int64, Size as Int64) as MemoryBlock
- method StringValue(Offset as Int64, Assigns s as String)
- method StringValue(Offset as Int64, Size as Int64) as String
This class has no sub classes.
Some examples using this class:
Blog Entries
- MBS Xojo Plugins, version 18.1pr3
- MBS Xojo Plugins, version 18.1pr2
- MBS Releases the MBS Xojo / Real Studio plug-ins in version 16.4
Videos
Release notes
- Version 18.1
- Added getter/setter for MemoryStorageMBS.
- Added MemoryStorageMBS.Constructor.
The items on this page are in the following plugins: MBS Util Plugin.
MemoryStatisticsMBS - MFMailComposeViewControllerMBS