Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


TestAll(int, int)

Returns true if all of the bits in a contiguous range are 1.
Read time 1 minuteLast updated 12 days ago

Definition

  • Type: Method
  • Namespace: Unity.Collections
  • Assembly: UnityEngine.ManagedKernelModule
public bool TestAll(int pos, int numBits = 1)

Parameters

pos

Position in the bit field (must be 0-63).

numBits

Number of bits to test (must be 1-64).

Returns

Type

Description

boolTrue if all bits in the contiguous range are 1.