@mathjax/src
    Preparing search index...

    Class BitField

    Implements bit-fields with extendable field names

    dpvc@mathjax.org (Davide Cervone)

    Index

    Properties

    bits: number = 0

    The bits that are set

    MAXBIT: number = ...

    The largest bit available

    names: Map<string, number> = ...

    The map of names to bit positions

    next: number = 1

    The next bit to be allocated

    Methods

    • Parameters

      • name: string

        The name of the bit position to clear

      Returns void

    • Parameters

      • name: string

        The name whose bit position is needed (error if not defined)

      Returns number

      The position of the named bit

    • Parameters

      • name: string

        The name of the bit to check if set

      Returns boolean

      True if the named bit is set

    • Parameters

      • name: string

        The name of the bit position to set

      Returns void

    • Parameters

      • ...names: string[]

        The names of the bit positions to reserve

      Returns void

    • Parameters

      • name: string

        The name of the bit to check for being defined

      Returns boolean

      True if the named bit is already allocated