Platforms to show: All Mac Windows Linux Cross-Platform

Back to MemoryBlock class.

MemoryBlock.MirrorBitsMBS(offsetBit as Integer, lengthBit as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method MemoryBlock MBS Util Plugin 7.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Mirrors the bits in a memoryblock.

e.g. "111100001" in the memoryblock would give "100001111"
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 ≤ offsetBit < mem.size*8 and 0 ≤ lengthBit ≤ mem.size*8 - offsetBit

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


The biggest plugin in space...