UtilsLib REALbasic Plugin

MemoryBlock Class Extension

The UtilsLib Plugin extends the built in REALbasic MemoryBlock class with several functions.

Extension like this only works with REALbasic 5.5 or later. Some of the functions are available in REALbasic 5.0 by adding a memory block parameter in front of all other parameters.

class extension MemoryBlock

Methods

BitSetTo set a specified bit in a MemoryBlock to a 1, use the BitSet method.
BitTstTo determine state of a bit in a MemoryBlock, use the BitTst function.
BitClrTo set a specified bit in a MemoryBlock to a 0, use the BitClr method.
BitSetTo set a specified bit in a MemoryBlock to a 1, use the BitSet method.
BitTstTo determine state of a bit in a bit string, use the BitTst function.
BitClrTo set a specified bit in a MemoryBlock to a 0, use the BitClr method.
CopyBitsToUse this method to copy a block of bits from one MemoryBlock to another.
CompareBitsUse this method to compare a block of bits from one MemoryBlock to another.

[Footnote]