Documentation

Unity Engine


Unity Engine


SafeBitRef

Pointer to a single bit, and a safety handle.
Read time 1 minuteLast updated a day ago

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