Class BitList
Provides bit array with automatic resizing
Inheritance
System.Object
BitList
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: Azos.dll
Syntax
public class BitList : IEquatable<BitList>
Constructors
BitList(Int32)
Declaration
public BitList(int initSize = 0)
Parameters
Type |
Name |
Description |
System.Int32 |
initSize |
|
Properties
ByteSize
Declaration
public int ByteSize { get; }
Property Value
Type |
Description |
System.Int32 |
|
Item[Int32]
Declaration
public bool this[int i] { get; set; }
Parameters
Type |
Name |
Description |
System.Int32 |
i |
|
Property Value
Type |
Description |
System.Boolean |
|
Size
Declaration
Property Value
Type |
Description |
System.Int32 |
|
Methods
AppendBit(Boolean)
Declaration
public void AppendBit(bool bit)
Parameters
Type |
Name |
Description |
System.Boolean |
bit |
|
AppendBitList(BitList)
Declaration
public void AppendBitList(BitList other)
Parameters
Type |
Name |
Description |
BitList |
other |
|
AppendBits(Int32, Int32)
Declaration
public void AppendBits(int value, int numBits)
Parameters
Type |
Name |
Description |
System.Int32 |
value |
|
System.Int32 |
numBits |
|
Equals(BitList)
Declaration
public bool Equals(BitList otherObj)
Parameters
Type |
Name |
Description |
BitList |
otherObj |
|
Returns
Type |
Description |
System.Boolean |
|
GetBytes(Byte[], Int32, Int32, Int32)
Declaration
public void GetBytes(byte[] buf, int bitOffset, int offset, int numBytes)
Parameters
Type |
Name |
Description |
System.Byte[] |
buf |
|
System.Int32 |
bitOffset |
|
System.Int32 |
offset |
|
System.Int32 |
numBytes |
|
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.Object.GetHashCode()
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.Object.ToString()
Xor(BitList)
Declaration
public void Xor(BitList other)
Parameters
Type |
Name |
Description |
BitList |
other |
|
Implements
System.IEquatable<T>
Extension Methods