package
Version:
v25.0.3+incompatible
Opens a new window with list of versions in this module.
Published: Feb 6, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package ipbits contains utilities for manipulating netip.Addr values as
numbers or bitfields.
Add returns ip + (x << shift).
Field returns the value of the bitfield [u, v] in ip as an integer,
where bit 0 is the most-significant bit of ip.
The result is undefined if u > v, if v-u > 64, or if u or v is larger than
ip.BitLen().
Source Files
¶
Click to show internal directories.
Click to hide internal directories.