Search Results for

    Show / Hide Table of Contents

    Struct BitArray16

    A 16-bit array.

    Namespace: GDX.Collections
    Syntax
    [Serializable]
    public struct BitArray16
    Examples

    Useful for packing a bunch of data with known indices tightly.

        if(myBitArray16[1])
        {
            BeAwesome();
        }

    Constructors

    | Improve this Doc View Source

    BitArray16(UInt16)

    Create a new BitArray16 based on provided bits0.

    Declaration
    public BitArray16(ushort bits0)
    Parameters
    Type Name Description
    System.UInt16 bits0

    An existing value to be used to create the backing data for a BitArray16

    Fields

    | Improve this Doc View Source

    Bits0

    First reserved System.UInt16 memory block (16-bits).

    Declaration
    public ushort Bits0
    Field Value
    Type Description
    System.UInt16
    Remarks

    Indices 0-15

    Properties

    | Improve this Doc View Source

    Item[Byte]

    Access bit in array.

    Declaration
    public bool this[byte index] { get; set; }
    Parameters
    Type Name Description
    System.Byte index

    Target bit index.

    Property Value
    Type Description
    System.Boolean
    • Improve this Doc
    • View Source
    In This Article
    Back to top Built on 2024-01-01 against 1f69a68.
    Generated by Dox+DocFX.