Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


UnsafeBitArray.ReadOnly

A read-only alias for the value of a UnsafeBitArray. Does not have its own allocated storage.
Read time 1 minuteLast updated 15 days ago

Definition

public struct UnsafeBitArray.ReadOnly

Fields

Value

Description

LengthThe number of bits.
PtrPointer to the data.

Properties

Property

Description

IsCreatedWhether this array has been allocated (and not yet deallocated).
IsEmptyWhether the container is empty.

Methods

Method

Description

CountBitsReturns the number of bits in a range that are 1.
FindReturns the index of the first occurrence in this array of "N" contiguous 0 bits.
GetBitsReturns a ulong which has bits copied from this array.
IsSetReturns true if the bit at an index is 1.
TestAllReturns true if all of the bits in a range are 1.
TestAnyReturns true if at least one of the bits in a range is 1.
TestNoneReturns true if none of the bits in a range are 1 ("i.e." all bits in the range are 0).