BitSet


Object Hierarchy:

Object hierarchy for BitSet

Description:

public class BitSet : Object

A fixed-size or dynamically growing set of bits.

BitSet supports individual bit manipulation and bitwise operations (AND, OR, XOR). Inspired by Java's BitSet.

Bits are indexed starting from 0. The BitSet automatically grows to accommodate any bit index set.

Example:

    var bits = new BitSet (64);
bits.set (0);
bits.set (3);
bits.set (7);
assert (bits.get (3));
assert (!bits.get (4));
assert (bits.cardinality () == 3);


Namespace: Vala.Collections
Package: Valacore

Content:

Creation methods:

Methods:

Inherited Members:

All known members inherited from class GLib.Object