docs.unity3d.com
    Show / Hide Table of Contents

    Interface IBitArray

    IBitArray interface.

    Namespace: UnityEngine.Rendering
    Syntax
    public interface IBitArray

    Properties

    allFalse

    Return true if all the bits of this BitArray are set to 0. Returns false otherwise.

    Declaration
    bool allFalse { get; }
    Property Value
    Type Description
    Boolean

    allTrue

    Return true if all the bits of this BitArray are set to 1. Returns false otherwise.

    Declaration
    bool allTrue { get; }
    Property Value
    Type Description
    Boolean

    capacity

    Gets the capacity of this BitArray. This is the number of bits that are usable.

    Declaration
    uint capacity { get; }
    Property Value
    Type Description
    UInt32

    humanizedData

    Writes the bits in the array in a human-readable form. This is as a string of 0s and 1s packed by 8 bits. This is useful for debugging.

    Declaration
    string humanizedData { get; }
    Property Value
    Type Description
    String

    Item[UInt32]

    An indexer that allows access to the bit at a given index. This provides both read and write access.

    Declaration
    bool this[uint index] { get; set; }
    Parameters
    Type Name Description
    UInt32 index

    Index of the bit.

    Property Value
    Type Description
    Boolean

    State of the bit at the provided index.

    Methods

    BitAnd(IBitArray)

    Perform an AND bitwise operation between this BitArray and the one you pass into the function and return the result. Both BitArrays must have the same capacity. This will not change current BitArray values.

    Declaration
    IBitArray BitAnd(IBitArray other)
    Parameters
    Type Name Description
    IBitArray other

    BitArray with which to the And operation.

    Returns
    Type Description
    IBitArray

    The resulting bit array.

    BitNot()

    Return the BitArray with every bit inverted.

    Declaration
    IBitArray BitNot()
    Returns
    Type Description
    IBitArray

    BitOr(IBitArray)

    Perform an OR bitwise operation between this BitArray and the one you pass into the function and return the result. Both BitArrays must have the same capacity. This will not change current BitArray values.

    Declaration
    IBitArray BitOr(IBitArray other)
    Parameters
    Type Name Description
    IBitArray other

    BitArray with which to the Or operation.

    Returns
    Type Description
    IBitArray

    The resulting bit array.

    Extension Methods

    ReflectionUtils.Invoke(Object, String, Object[])
    ReflectionUtils.SetField(Object, String, Object)
    ReflectionUtils.GetField(Object, String)
    ReflectionUtils.GetFields(Object)
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023