Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ BitArray() [6/6]

System.Collections.BitArray.BitArray ( BitArray bits)
inline

Definition at line 302 of file BitArray.cs.

303 {
304 if (bits == null)
305 {
306 throw new ArgumentNullException("bits");
307 }
308 int int32ArrayLengthFromBitLength = GetInt32ArrayLengthFromBitLength(bits.m_length);
309 m_array = new int[int32ArrayLengthFromBitLength];
310 Array.Copy(bits.m_array, m_array, int32ArrayLengthFromBitLength);
311 m_length = bits.m_length;
312 _version = bits._version;
313 }
static int GetInt32ArrayLengthFromBitLength(int n)
Definition BitArray.cs:988

References System.Collections.BitArray._version, System.Array.Copy(), System.Collections.BitArray.GetInt32ArrayLengthFromBitLength(), System.Collections.BitArray.m_array, and System.Collections.BitArray.m_length.