net/netip.Addr.BitLen (method)
9 uses
net/netip (current package)
netip.go#L388: func (ip Addr) BitLen() int {
netip.go#L411: f1, f2 := ip.BitLen(), ip2.BitLen()
netip.go#L1242: if !ip.isZero() && bits >= 0 && bits <= ip.BitLen() {
netip.go#L1267: func (p Prefix) IsSingleIP() bool { return p.IsValid() && p.Bits() == p.ip.BitLen() }
netip.go#L1335: if f1, f2 := p.ip.BitLen(), ip.BitLen(); f1 == 0 || f2 == 0 || f1 != f2 {
net
ip.go#L530: if !ok || i != len(mask) || n < 0 || n > ipAddr.BitLen() {
ip.go#L533: m := CIDRMask(n, ipAddr.BitLen())
|
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |