hwaddr_aton


Description:


public uint8 hwaddr_aton (string asc, uint8[] buffer)

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

the ASCII representation of a hardware address

buffer

buffer to store the result into

length

the expected length in bytes of the result and the size of the buffer in bytes.

Returns:

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


Namespace: NM.Utils
Package: libnm