Function byteToBool

  • Converts a StaticArray to boolean.

    Parameters

    • arr: StaticArray<number>

      the StaticArray to convert

    Returns bool

    the boolean value

    Remarks

    The conversion is performed by checking if the first byte of the StaticArray<u8> is non-zero (i.e., it represents a true value) or zero (i.e., it represents a false value).

Generated using TypeDoc