Platforms to show: All Mac Windows Linux Cross-Platform

Back to MemoryBlock class.

MemoryBlock.MultiplyUInt8MBS(Factor as Double, offsetByte as Integer = 0, lengthBytes as Integer = 0, MultiplyOnlyOver as Integer = -1)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method MemoryBlock MBS Util Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Multiplies UInt8 values in the memoryblock.
Example
dim myMemOut3 as new MemoryBlock(500)
myMemOut3.MultiplyUInt8MBS(0.9)

Values bigger than 255 are set to 255.
lengthBytes is in bytes, so 2 times the number of values.
Factor must be >= 0.0.
Offset is the offset in bytes from the beginning of the memoryblock to start. Wrong offsets (e.g. negative) can lead to crashes. lengthBytes is optional, if not specified or zero uses the length of memoryblock.

Added MultiplyOnlyOver parameter in version 18.4. If negative, we multiply all values. If positive, we multiply only values > the given value.

Blog Entries

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


The biggest plugin in space...