Function

NM-1.0NMutils_hwaddr_atoba

  • Parses asc and converts it to binary form in a GLib.ByteArray. See nm_utils_hwaddr_aton() if you don't want a GLib.ByteArray.

    Parameters

    • asc: string

      the ASCII representation of a hardware address

    • length: number

      the expected length in bytes of the result

    Returns Uint8Array

    a new GLib.ByteArray, or null if asc couldn't be parsed