Platforms to show: All Mac Windows Linux Cross-Platform

MemoryBlock.BytesZeroMBS(srcOfs as Integer, numBytes as Integer) as Boolean
Type Topic Plugin Version macOS Windows Linux iOS Targets
method MemoryBlock MBS Util Plugin 10.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Function: Returns true if all bytes in the memoryblock in the given range are zero.
Example:
dim m as MemoryBlock = NewMemoryBlock(100)

if m.BytesZeroMBS(0,100) then
MsgBox "all zero"
else
MsgBox "error"
end if

m.Byte(50)=1

if m.BytesZeroMBS(0,100) then
MsgBox "error"
else
MsgBox "okay"
end if
Notes:
Returns false on any error.
Bounds are not checked with the memoryblock, so be careful.

Blog Entries

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

Feedback: Report problem or ask question.

The biggest plugin in space...


Start Chat