Gio.InetAddressMask.new_from_string

function new_from_string(mask_string: String): Gio.InetAddressMask {
    // Gjs wrapper for g_inet_address_mask_new_from_string()
}
  

Parses mask_string as an IP address and (optional) length, and creates a new Gio.InetAddressMask. The length, if present, is delimited by a "/". If it is not present, then the length is assumed to be the full length of the address.

Since 2.32

mask_string

an IP address or address/length string

Returns

a new Gio.InetAddressMask corresponding to @string, or null on error.