@bacnet-js/client
    Preparing search index...

    Class GenericBitString<E>

    Generic implementation of a BACnet bitstring

    This class provides a strongly-typed representation of BACnet bitstrings, which are used to represent collections of boolean flags in BACnet properties. The class is generic over an enum type that defines the bit positions.

    Type Parameters

    • E extends EnumType<E>

      An enum type that defines the bit positions

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    Constructors

    • Creates a new bitstring with the specified bits set to 1

      Type Parameters

      Parameters

      • bitsUsed: number

        The total number of bits in this bitstring

      • trueBits: E[keyof E][]

        Array of enum values representing the positions of bits to set to 1

      Returns GenericBitString<E>

    Properties

    bitsUsed: number

    The number of bits in this bitstring

    value: number[]

    The array of byte values (0 - 255)