Struct SafeBitRef
Pointer to a single bit, and a safety handle.
Namespace: Unity.Entities
Assembly: Unity.Entities.dll
Syntax
public readonly struct SafeBitRef
Remarks
Do not store outside of stack
Constructors
Name | Description |
---|---|
SafeBitRef(ulong*, int, AtomicSafetyHandle) | Build a safe pointer to a bit at address ptr + offsetInBits. |
Properties
Name | Description |
---|---|
IsValid | Test if this pointer is valid (not null). |
Null | An invalid pointer. |
Methods
Name | Description |
---|---|
GetBit() | Get the bool value of the bit pointed at. |
Offset(int) | Create a new pointer at a bit offset from this bit pointer |
SetBit(bool) | Set the bool value of the bit pointed at |