ドキュメント

Unity Engine

Download Unity

Unity Engine

SafeBitRef

Pointer to a single bit, and a safety handle.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Struct
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
public readonly struct SafeBitRef

Remarks

Do not store outside of stack

Constructors

Constructor

Description

SafeBitRef(System.UInt64*,System.Int32,Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle)Build a safe pointer to a bit at address ptr + offsetInBits.

Properties

Property

Description

IsValidTest if this pointer is valid (not null).

Static Properties

Property

Description

NullAn invalid pointer.

Methods

Method

Description

GetBitGet the bool value of the bit pointed at.
OffsetCreate a new pointer at a bit offset from this bit pointer
SetBitSet the bool value of the bit pointed at