Platforms to show: All Mac Windows Linux Cross-Platform
Back to MemoryBlockMBS class.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | memoryBlock | MBS Util Plugin | 5.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
There is no need to call this method except you want to free all resources of this object now without waiting for Xojo to do it for you.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | memoryBlock | MBS Util Plugin | 16.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
This constructor does nothing, so you can call Create yourself.
See also:
MemoryBlockMBS.Constructor(Mem as MemoryBlock)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | memoryBlock | MBS Util Plugin | 16.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Raises exception is size is invalid or no memory is available.
See also:
MemoryBlockMBS.Constructor(Mem as MemoryBlock, Size as Int64, Offset as Int64 = 0)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | memoryBlock | MBS Util Plugin | 16.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Raises exception is size is invalid or no memory is available.
See also:
MemoryBlockMBS.Constructor(Size as Int64)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | memoryBlock | MBS Util Plugin | 16.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Raises exception is size is invalid or no memory is available.
See also:
MemoryBlockMBS.Constructor(Str as String)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | memoryBlock | MBS Util Plugin | 16.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Text encoding is ignored and bytes copied as they are.
Raises exception is size is invalid or no memory is available.
See also:
MemoryBlockMBS.Constructor(Str as String, Size as Int64, Offset as Int64 = 0)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | memoryBlock | MBS Util Plugin | 16.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Text encoding is ignored and bytes copied as they are.
Raises exception is size is invalid or no memory is available.
See also:
MemoryBlockMBS.Create(size as Int64) as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | memoryBlock | MBS Util Plugin | 9.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Returns true on success and false on failure.
Size can be any positive value up to &h7FFFFFFF (=2^31-1).
Size became 64bit to avoid integer overflows.
MemoryBlockMBS.Resize(Size as Int64) as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | MemoryBlock | MBS Util Plugin | 9.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Returns true on success.
If false is returned, the memoryblockMBS is not touched.
If the new size is smaller, data is lost as the memoryblock is cut.
If the new size is bigger, the memoryblock is resized. Or if that does not work, a new memoryblock is created and data is copied. New bytes will be zero.
The items on this page are in the following plugins: MBS Util Plugin.