docs.unity.cn
    Show / Hide Table of Contents

    Struct SafeBitRef

    Pointer to a single bit, and a safety handle.

    Namespace: Unity.Entities
    Syntax
    public readonly struct SafeBitRef
    Remarks

    Do not store outside of stack

    Constructors

    Name Description
    SafeBitRef(UInt64*, Int32)

    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(Int32)

    Create a new pointer at a bit offset from this bit pointer

    SetBit(Boolean)

    Set the bool value of the bit pointed at

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Thursday, August 10, 2023