Function

NM-1.0NMutils_hwaddr_aton

  • Parses asc and converts it to binary form in buffer. Bytes in asc can be separated by colons (:), or hyphens (-), but not mixed.

    Parameters

    • asc: string

      the ASCII representation of a hardware address

    • buffer: string | Uint8Array<ArrayBufferLike>

      buffer to store the result into

    Returns number

    buffer, or null if asc couldn't be parsed or would be shorter or longer than length.