Platforms to show: All Mac Windows Linux Cross-Platform

Back to MemoryBlock class.

MemoryBlock.MidMBS(offset as Integer) as memoryblock

Type Topic Plugin Version macOS Windows Linux iOS Targets
method MemoryBlock MBS Util Plugin 3.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns a memoryblock with the bytes of the given memoryblock from the given offset on.

Offset is 0 based.
Returns nil if offset<0 or on low memory.
This function will not work if the memoryblock has an unknown size.

See also:

Some examples using this method:

MemoryBlock.MidMBS(offset as Integer, length as Integer) as memoryblock

Type Topic Plugin Version macOS Windows Linux iOS Targets
method MemoryBlock MBS Util Plugin 3.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns a memoryblock with the given bytes from the middle of the memoryblock.

Offset is 0 based.
Returns nil if offset<0 or on low memory.
If length is too long then length is set to a lower value.
This function will not work if the memoryblock has an unknown size.

See also:

Some examples using this method:

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


The biggest plugin in space...