Free the returned object with [gobject.object.ObjectWrap.unref].
InetAddress.newFromBytes
gio.inet_address.InetAddress newFromBytes(ubyte[] bytes, gio.types.SocketFamily family)Creates a new #GInetAddress from the given family and bytes. bytes should be 4 bytes for [gio.types.SocketFamily.Ipv4] and 16 bytes for [gio.types.SocketFamily.Ipv6].
Parameters
bytes | raw address data |
family | the address family of bytes |
Returns
a new #GInetAddress corresponding to family and bytes.