Class Lidgren::Network::NetBitVector
ClassList > Lidgren > Network > NetBitVector
Fixed size vector of booleans.
Public Properties
| Type | Name |
|---|---|
| property int | Capacity Gets the number of bits/booleans stored in this vector. |
| property bool | this[int index] Gets the bit/bool at the specified index. |
Public Functions
| Type | Name |
|---|---|
| void | Clear () Sets all bits/booleans to zero/false. |
| int | Count () Returns the number of bits/booleans set to one/true. |
| bool | Get (int bitIndex) Gets the bit/bool at the specified index. |
| int | GetFirstSetIndex () Gets the first (lowest) index set to true. |
| bool | IsEmpty () Returns true if all bits/booleans are set to zero/false. |
| NetBitVector (int bitsCapacity) NetBitVector constructor. |
|
| void | RotateDown () Shift all bits one step down, cycling the first bit to the top. |
| void | Set (int bitIndex, bool value) Sets or clears the bit/bool at the specified index. |
| override string | ToString () Returns a string that represents this object. |
Public Properties Documentation
property Capacity
property this[int index]
Public Functions Documentation
function Clear
function Count
Returns the number of bits/booleans set to one/true.
Returns:
function Get
function GetFirstSetIndex
function IsEmpty
function NetBitVector
function RotateDown
function Set
function ToString
The documentation for this class was generated from the following file api/unity-plugin/Scripts/Networking/Lidgren.Network/NetBitVector.cs