ドキュメント

Unity Engine

Unity Engine

BitField64

A 64-bit array of bits.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

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

Remarks

Stack allocated, so it does not require thread safety checks or disposal.

Fields

Value

Description

ValueThe 64 bits, stored as a ulong.

Constructors

Constructor

Description

BitField64(System.UInt64)Initializes and returns an instance of BitField64.

Methods

Method

Description

ClearClears all bits to 0.
CountBitsReturns the number of bits that are 1.
CountLeadingZerosReturns the number of leading zeroes.
CountTrailingZerosReturns the number of trailing zeros.
GetBitsReturns one or more contiguous bits from the bit field as the lower bits of a ulong.
IsSetReturns true if the bit at a position is 1.
SetBitsSets a single bit to 1 or 0.
TestAllReturns true if all of the bits in a contiguous range are 1.
TestAnyReturns true if any of the bits in a contiguous range are 1.
TestNoneReturns true if none of the bits in a contiguous range are 1.