Gio.InetAddressMask.new

function new(addr: Gio.InetAddress, length: Number(guint)): Gio.InetAddressMask {
    // Gjs wrapper for g_inet_address_mask_new()
}
  

Creates a new Gio.InetAddressMask representing all addresses whose first length bits match addr.

Since 2.32

addr

a Gio.InetAddress

length

number of bits of addr to use

Returns

a new Gio.InetAddressMask, or null on error