기술 자료

Unity Engine

Unity Engine

CountBits(int, int)

Returns the number of bits in a range that are 1.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

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

Parameters

pos

Index of the bit at which to start searching.

numBits

Number of bits to test. Defaults to 1.

Returns

Type

Description

intThe number of bits in a range of bits that are 1.