Basics
Guides
API Reference
Basics
Guides
API Reference
[220:14] static extends: object
Alternate constructors for InetAddressMask. Usage:
InetAddressMaskCtors.<name>(...). The primary constructor lives
directly on InetAddressMask.
newFromString (string mask_string)
Parses @mask_string as an IP address and (optional) length, and creates a new #GInetAddressMask. 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.
mask_string is an IP address or address/length string.A new InetAddressMask.[242:14] static extends: object
Generated metadata helpers for InetAddressMask class surfaces.
properties ()
Returns property metadata for
InetAddressMask.
A list.[16:7] extends: object
GInetAddressMask represents a range of IPv4 or IPv6 addresses described by
a base address and a length indicating how many bits of the base address are
relevant for matching purposes. These are often given in string form. For
example, 10.0.0.0/8, or fe80::/10.
InetAddressMask (addr = null, length = null)
Creates a new #GInetAddressMask representing all addresses whose first
bits match @addr.addr is a #GInetAddress.length is number of bits of @addr to use.toNativeHandle (Source)
Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from
fn.call(...), another generated wrapper exposinghandle(), or null. Returns null when the argument carries no pointer.
Source is the raw handle, raw buffer, wrapper, or null.A raw pointer carrier or null when no pointer is present.getLib ()
Returns the opened native library for this generated wrapper.
The opened native library.handle ()
Returns the wrapped NativeHandle.
The wrapped NativeHandle.isNull ()
Returns true when the wrapped handle is null.
A bool.describe ()
Returns a small string for debugging generated wrappers.
A string.asObject ()
Wraps this handle as
Object.
A Object object.asInitable ()
Wraps this handle as
Initable.
A Initable object.getProperty (string Name)
Reads one generated property by name.
setProperty (string Name, Value)
Writes one generated property by name.
setAddress (object Value)
The base address.
Value is the new property value.None.setLength (int Value)
The prefix length, in bytes.
Value is the new property value.None.equal (object mask2)
Tests if @mask and @mask2 are the same mask.
mask2 is another #GInetAddressMask.get_address ()
Gets @mask's base address
get_family ()
Gets the #GSocketFamily of @mask's address
get_length ()
Gets @mask's length
matches (object address)
Tests if @address falls within the range described by @mask.
address is a #GInetAddress.to_string ()
Converts @mask back to its corresponding string form.

Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.