MemoryBlock methods

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

Platforms to show: All Mac Windows Linux Cross-Platform

Back to MemoryBlock class.

MemoryBlock.ExpandBitsMBS(dest as memoryblock, SourceByteCount as Integer, LowValue as Integer = 0, HighValue as Integer = 255) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method MemoryBlock MBS Util Plugin 11.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Expands bits into bytes.
Example
dim m1 as new MemoryBlock(200)
dim m2 as new MemoryBlock(1600)

for i as Integer = 0 to 127
m1.Int8Value(i) = i
next

dim n as Integer = 128
dim b as Boolean = m1.ExpandBitsMBS(m2, n)

break // see result in debugger

Takes a bit from the source memoryblock and writes a byte for it to destination. Uses LowValue (default 0) if the bit is not set and HighValue (Default 255) if the bit is set.
Works only on x86 CPUs (no PPC).
Reads source memoryblock in 32 bit blocks and writes the destination in 32 byte blocks.

Blog Entries

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


💬 Ask a question or report a problem