hwaddr_atoba


Description:


public ByteArray hwaddr_atoba (string asc, int type)

Parses asc and converts it to binary form in a ByteArray.

See hwaddr_aton if you don't want a ByteArray.

Parameters:

asc

the ASCII representation of a hardware address

type

the type of address; either ARPHRD_ETHER or ARPHRD_INFINIBAND

Returns:

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


Namespace: NM.Utils
Package: libnm-util



2022 vala-language.org