class util::BoolArray

sys::Obj
  util::BoolArray

Source

Optimized fixed size array of booleans packed into words of 32-bits. The array values default to false.

copyFrom

This copyFrom(BoolArray that)

Source

Copy the booleans from that array into this array and return this.

fill

This fill(Bool val, Range? range := null)

Source

Fill this array with the given boolean value. If range is null then the entire array is filled, otherwise just the specified range. Return this.

get

@Operator
Bool get(Int index)

Source

Get the boolean at the given index. Negative indices are not supported.

make

static new make(Int size)

Source

Create a array of given size

set

@Operator
Void set(Int index, Bool val)

Source

Set the boolean at the given index. Negative indices are not supported.

size

Int size()

Source

Get number of booleans in the array