docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IBitArray

    IBitArray interface.

    Namespace: UnityEngine.Rendering
    Assembly: Unity.RenderPipelines.Core.Runtime.dll
    Syntax
    public interface IBitArray

    Properties

    this[uint]

    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
    uint index

    Index of the bit.

    Property Value
    Type Description
    bool

    State of the bit at the provided index.

    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
    bool

    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
    bool

    capacity

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

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

    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

    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

    The resulting bit array.

    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.GetField(object, string)
    ReflectionUtils.GetFields(object)
    ReflectionUtils.Invoke(object, string, params object[])
    ReflectionUtils.SetField(object, string, object)
    AnalyticsUtils.ToNestedColumnWithDefault<T>(T, T, bool)
    AnalyticsUtils.ToNestedColumn<T>(T, T)
    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)