pub fn fromIp4(ip4: Ip4Address) Ip6Address
Constructs an IPv4-mapped IPv6 address.
ip4: Ip4Address
470 471 472 473 474 475
pub fn fromIp4(ip4: Ip4Address) Ip6Address { return .{ .bytes = .{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0xff, 0xff } ++ ip4.bytes, .port = ip4.port, }; }
Constructs an IPv4-mapped IPv6 address.