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

Append (console safe) Use this method to append a Boolean value to the array.
Count (console safe) Use this function to get the element count from the array.
GetAt (console safe) Gets 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.
GetBytes (console safe) Serializes the BitArray to a string.
IndexOf (console safe) Returns a index of first occurrence of a element in the array. This variation searches from start of the array.
IndexOf (console safe) Returns a index of occurrence of a element in the array from a given starting point.
Insert (console safe) Use this method to insert a value into the array.
Item (console safe) Use this setter/getter function to read or write to a item in the array.
Operator_Redim (console safe) Implements the Redim operator.
Operator_Subscript (console safe) Implements operator to write to the array with the ( ) indexer operator.
Operator_Subscript (console safe) Implements operator to write to the array with the ( ) indexer operator.
Remove (console safe) Use this method to remove values from the array.
Remove (console safe) Use this method to remove a single value from the array.
Resize (console safe) Use this method to resize the array.
SetAt (console safe) Sets 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.
Sort (console safe) Use this method to sort the array.
Swap (console safe) Use this method to swap two objects in the array.

Supported Platforms:

  • MacOS X Carbon
  • MacOS X Cocoa 32 bit
  • MacOS X Cocoa 64 bit
  • Windows 32 bit
  • Windows 64 bit
  • Linux 32 bit
  • Linux 64 bit
  • Linux ARM