Struct EnabledMask
Safe pointer to a bit buffer first bit, and a pointer to the chunk's component disabled count, which is updated when the bits are written to.
Namespace: Unity.Entities
Syntax
public struct EnabledMask
Remarks
Do not store outside of stack
Constructors
| Name | Description |
|---|---|
| EnabledMask(SafeBitRef, Int32*) | Interpret the memory at SafeBitRef as an EnabledMask. |
Properties
| Name | Description |
|---|---|
| EnableBit | First bit of the EnabledMask buffer |
| Item[Int32] | Access the bit at bit-memory-address (first bit) + index |
Methods
| Name | Description |
|---|---|
| GetBit(Int32) | Retrieve the value of the bit from bit-memory-address (first bit) + index |
| GetEnabledRefRO<T>(Int32) | Get a EnabledRefRO<T> reference to the enabled bit at index. |
| GetEnabledRefRW<T>(Int32) | Get a EnabledRefRW<T> reference to the enabled bit at index. |
| GetOptionalEnabledRefRO<T>(Int32) | Get a EnabledRefRO<T> reference to the enabled bit at index. |
| GetOptionalEnabledRefRW<T>(Int32) | Get a EnabledRefRW<T> reference to the enabled bit at index. Returns EnabledRefRORW<T>.Null if this EnabledMask is not valid. |