C# Class Pchp.Core.Utilities.ElasticBitArray

Implementation of elastic bit array. The internal array is resized automatically within the set value operation.
Mostra file Open project: iolevel/peachpie Class Usage Examples

Public Methods

Method Description
ElasticBitArray ( int capacity ) : System
ToBitArray ( ) : BitArray

Copies to bit array to new BitArray object.

this ( int index ) : bool

Gets or sets index-th bit in the array.

Private Methods

Method Description
SetFalse ( int index ) : void
SetTrue ( int index ) : void

Method Details

ElasticBitArray() public method

public ElasticBitArray ( int capacity ) : System
capacity int
return System

ToBitArray() public method

Copies to bit array to new BitArray object.
public ToBitArray ( ) : BitArray
return System.Collections.BitArray

this() public method

Gets or sets index-th bit in the array.
public this ( int index ) : bool
index int
return bool