func net/netip.AddrFrom16
21 uses
net/netip (current package)
netip.go#L76: func IPv6LinkLocalAllNodes() Addr { return AddrFrom16([16]byte{0: 0xff, 1: 0x02, 15: 0x01}) }
netip.go#L80: func IPv6LinkLocalAllRouters() Addr { return AddrFrom16([16]byte{0: 0xff, 1: 0x02, 15: 0x02}) }
netip.go#L83: func IPv6Loopback() Addr { return AddrFrom16([16]byte{15: 0x01}) }
netip.go#L102: func AddrFrom16(addr [16]byte) Addr {
netip.go#L343: return AddrFrom16(ip).WithZone(zone), nil
netip.go#L354: return AddrFrom16([16]byte(slice)), true
netip.go#L1045: *ip = AddrFrom16([16]byte(b))
netip.go#L1048: *ip = AddrFrom16([16]byte(b[:16])).WithZone(string(b[16:]))
net
addrselect.go#L231: Prefix: netip.PrefixFrom(netip.AddrFrom16([16]byte{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x01}), 128),
addrselect.go#L238: Prefix: netip.PrefixFrom(netip.AddrFrom16([16]byte{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0xff, 0xff}), 96),
addrselect.go#L244: Prefix: netip.PrefixFrom(netip.AddrFrom16([16]byte{}), 96),
addrselect.go#L251: Prefix: netip.PrefixFrom(netip.AddrFrom16([16]byte{0x20, 0x01}), 32),
addrselect.go#L258: Prefix: netip.PrefixFrom(netip.AddrFrom16([16]byte{0x20, 0x02}), 16),
addrselect.go#L264: Prefix: netip.PrefixFrom(netip.AddrFrom16([16]byte{0x3f, 0xfe}), 16),
addrselect.go#L270: Prefix: netip.PrefixFrom(netip.AddrFrom16([16]byte{0xfe, 0xc0}), 10),
addrselect.go#L276: Prefix: netip.PrefixFrom(netip.AddrFrom16([16]byte{0xfc}), 7),
addrselect.go#L282: Prefix: netip.PrefixFrom(netip.AddrFrom16([16]byte{}), 0),
addrselect.go#L294: ip = netip.AddrFrom16(ip.As16())
ip.go#L308: return netip.AddrFrom16([16]byte(ip)).String()
udpsock_posix.go#L87: ip = netip.AddrFrom16(from.Addr).WithZone(zoneCache.name(int(from.ZoneId)))
udpsock_posix.go#L107: ip := netip.AddrFrom16(sa.Addr).WithZone(zoneCache.name(int(sa.ZoneId)))
 |
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. |