hwaddr_aton_len


Description:


[ Version ( since = "0.9.10" ) ]
public uint8 hwaddr_aton_len (string asc, void* buffer, size_t length)

Parses asc and converts it to binary form in buffer.

Bytes in asc can be sepatared 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 length .


Namespace: NM.Utils
Package: libnm-util



2022 vala-language.org