Platforms to show: All Mac Windows Linux Cross-Platform
Back to MemoryBlock class.
MemoryBlock.MirrorBytesMBS(offsetByte as Integer = 0, lengthByte as Integer = -1)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | MemoryBlock | MBS Util Plugin | 7.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
e.g. "abcdefgh" in the memoryblock would give "hgfedcba"
This function is certainly not the fastest one, but faster than anything you can get written in Xojo.
And make sure the bounds are matched, because on memory access outside the valid ranges, the function will crash.
0 ≤ offsetByte < mem.size and 0 ≤ lengthByte ≤ mem.size - offsetByte
If lengthByte is -1, we query memoryblock for size. If size is unknown or negative, the function does nothing.
The items on this page are in the following plugins: MBS Util Plugin.