net/netip.Addr.BitLen (method)
11 uses
	net/netip (current package)
		netip.go#L398: func (ip Addr) BitLen() int {
		netip.go#L420: 	f1, f2 := ip.BitLen(), ip2.BitLen()
		netip.go#L1277: 	if !ip.isZero() && bits >= 0 && bits <= ip.BitLen() {
		netip.go#L1302: func (p Prefix) IsSingleIP() bool { return p.IsValid() && p.Bits() == p.ip.BitLen() }
		netip.go#L1313: 	if c := cmp.Compare(p.Addr().BitLen(), p2.Addr().BitLen()); c != 0 {
		netip.go#L1403: 	if f1, f2 := p.ip.BitLen(), ip.BitLen(); f1 == 0 || f2 == 0 || f1 != f2 {
	net
		ip.go#L531: 	if !ok || i != len(mask) || n < 0 || n > ipAddr.BitLen() {
		ip.go#L534: 	m := CIDRMask(n, ipAddr.BitLen())
|  | The pages are generated with Golds v0.7.6. (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 @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |