CoreClasses Xojo Plugin

BitArray Class (console safe)

BitArray is a very compact relocatable Boolean array class. Each element only takes one Bit of memory.

Contents of the array can be serialized to string and back to BitArray.

Object
   BitArray

class BitArray

Constructors

BitArrayConstructor that constructs a empty BitArray
BitArrayConstructor that constructs a BitArray from a string buffer.

Methods

AppendUse this method to append a Boolean value to the array.
CountUse this function to get the element count from the array.
GetAtGets element at given index. This method does the same as the Item method, but is here so that other plugins can make use of the BitArray internally.
GetBytesSerializes the BitArray to a string.
IndexOfReturns a index of occurrence of a element in the array from a given starting point.
IndexOfReturns a index of first occurrence of a element in the array. This variation searches from start of the array.
InsertUse this method to insert a value into the array.
ItemUse this setter/getter function to read or write to a item in the array.
Operator_RedimImplements the Redim operator.
Operator_SubscriptImplements operator to write to the array with the ( ) indexer operator.
Operator_SubscriptImplements operator to write to the array with the ( ) indexer operator.
RemoveUse this method to remove a single value from the array.
RemoveUse this method to remove values from the array.
ResizeUse this method to resize the array.
SetAtSets element at given index. This method does the same as the Item method, but is here so that other plugins can make use of the BitArray internally.
SortUse this method to sort the array.
SwapUse this method to swap two objects in the array.

Supported Platforms:

  • macOS Intel 64 bit
  • macOS Apple Silicon
  • Windows 32 bit
  • Windows 64 bit
  • Windows ARM 64 bit
  • Linux 32 bit
  • Linux 64 bit
  • Linux ARM 32 bit
  • Linux ARM 64 bit
  • iOS