Gio.InetAddress.new_from_bytes
function new_from_bytes(bytes: ByteArray, family: Gio.SocketFamily): Gio.InetAddress { // Gjs wrapper for g_inet_address_new_from_bytes() }
Creates a new Gio.InetAddress from the given family and bytes. bytes should be 4 bytes for Gio.SocketFamily.ipv4 and 16 bytes for Gio.SocketFamily.ipv6.
Since 2.22
- bytes
raw address data
- family
the address family of bytes
- Returns
a new Gio.InetAddress corresponding to family and bytes.