Function hextoArrayBuffer

  • convert a hexadecimal string to an ArrayBuffer

    Parameters

    • hex: string

      hexadecimal string

    Returns ArrayBuffer

    ArrayBuffer

    Description

    This function converts from a hexadecimal string to an ArrayBuffer.

    Example

    hextoArrayBuffer("fffa01") -> ArrayBuffer of [255, 250, 1]