docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    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

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)