文档

Unity Engine

Download Unity

Unity Engine

SafeBitRef

Pointer to a single bit, and a safety handle.
阅读时间1 分钟最后更新于 20 天前

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