# masksOf() function · @imqueue/net

Source: https://imqueue.org/api/net/latest/net.masksof/
Published: 2026-08-01
Author: @imqueue maintainers (https://github.com/imqueue)
Package: @imqueue/net 3.0.2 — generated reference, not hand-written

The mask table for a family, indexable by prefix length.

**Signature:**

```typescript
export declare function masksOf(type: NetworkType): bigint[];
```

## Parameters


| Parameter | Type | Description |
| --- | --- | --- |
| type | [NetworkType](https://imqueue.org/api/net/latest/net.networktype/) | the address family |


**Returns:**

bigint\[\]

[IPV6\_MASKS](https://imqueue.org/api/net/latest/net.ipv6_masks/) for IPv6, otherwise [IPV4\_MASKS](https://imqueue.org/api/net/latest/net.ipv4_masks/).

## Remarks

Returns the shared array itself, not a copy, so mutating the result corrupts every later conversion. Like [sizeOf()](https://imqueue.org/api/net/latest/net.sizeof/), anything that is not exactly `IPV6` is treated as IPv4 rather than rejected.

