Table of Contents

Struct BitSet32

Namespace
Lime
Assembly
Lime.dll

Representation of 32-bit array of bit flags.

public struct BitSet32 : IEquatable<BitSet32>
Implements
Inherited Members

Constructors

BitSet32(uint)

public BitSet32(uint value)

Parameters

value uint

Fields

Empty

Returns 0x00000000 (all bits are 0).

public static readonly BitSet32 Empty

Field Value

BitSet32

Full

Returns 0xffffffff (all bits are 1).

public static readonly BitSet32 Full

Field Value

BitSet32

Value

Uint that is used for array representation.

[YuzuMember("0")]
public uint Value

Field Value

uint

Properties

Count

public int Count { get; }

Property Value

int

this[int]

public bool this[int bit] { get; set; }

Parameters

bit int

Bit index (0 - 31).

Property Value

bool

Methods

All()

Returns true if all bits are 1.

public bool All()

Returns

bool

Any()

Returns true if any bit is 1.

public bool Any()

Returns

bool

Equals(BitSet32)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(BitSet32 other)

Parameters

other BitSet32

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current instance.

Returns

bool

true if obj and this instance are the same type and represent the same value; otherwise, false.

GetHashCode()

Returns the hash code for this instance.

public override int GetHashCode()

Returns

int

A 32-bit signed integer that is the hash code for this instance.

ToString()

Returns the string representation of this BitSet32 as sequence of "0" and "1" (from 32 bit to 1 bit). Zeroes on the left are trimmed.

public override string ToString()

Returns

string

Operators

operator ==(BitSet32, BitSet32)

public static bool operator ==(BitSet32 lhs, BitSet32 rhs)

Parameters

lhs BitSet32
rhs BitSet32

Returns

bool

operator !=(BitSet32, BitSet32)

public static bool operator !=(BitSet32 lhs, BitSet32 rhs)

Parameters

lhs BitSet32
rhs BitSet32

Returns

bool