# IPV4_MASKS variable · @imqueue/net

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

The 33 IPv4 network masks, indexed by prefix length — `IPV4_MASKS[24]` is the mask for a `/24`.

**Signature:**

```typescript
IPV4_MASKS: bigint[]
```

## Remarks

Precomputed rather than shifted per call, because a conversion does this on every record in a list. Index 0 is `0n` (a `/0`, matching everything) and index 32 is all ones (a single host), so the array is 33 entries and indexing it with a prefix length needs no adjustment.

Exported as a plain array, so it is mutable — treat it as read-only. Reach for [masksOf()](https://imqueue.org/api/net/latest/net.masksof/) instead when the family is only known at run time.

