Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


NativeBitArray.ReadOnly

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

Definition

  • Type: Struct
  • Namespace: Unity.Collections
  • Assembly: UnityEngine.ManagedKernelModule
public struct NativeBitArray.ReadOnly

Properties

Property

Description

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

Methods

Method

Description

CountBitsReturns the number of bits in a range that are 1.
FindFinds the first length-"N" contiguous sequence of 0 bits in this bit array.
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).