func net/netip.AddrFrom16
21 uses
net/netip (current package)
netip.go#L75: func IPv6LinkLocalAllNodes() Addr { return AddrFrom16([16]byte{0: 0xff, 1: 0x02, 15: 0x01}) }
netip.go#L79: func IPv6LinkLocalAllRouters() Addr { return AddrFrom16([16]byte{0: 0xff, 1: 0x02, 15: 0x02}) }
netip.go#L82: func IPv6Loopback() Addr { return AddrFrom16([16]byte{15: 0x01}) }
netip.go#L101: func AddrFrom16(addr [16]byte) Addr {
netip.go#L333: return AddrFrom16(ip).WithZone(zone), nil
netip.go#L344: return AddrFrom16([16]byte(slice)), true
netip.go#L1015: *ip = AddrFrom16([16]byte(b))
netip.go#L1018: *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#L307: 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.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. |