19 references to IPAddressParser
System.Net.Primitives (19)
System\Net\IPAddress.cs (19)
229public static bool IsValid(ReadOnlySpan<char> ipSpan) => IPAddressParser.IsValid(ipSpan);
233public static bool IsValidUtf8(ReadOnlySpan<byte> utf8Text) => IPAddressParser.IsValid(utf8Text);
248address = IPAddressParser.Parse(ipString.AsSpan(), tryParse: true);
260result = IPAddressParser.Parse(utf8Text, tryParse: true);
266address = IPAddressParser.Parse(ipSpan, tryParse: true);
288return IPAddressParser.Parse(ipString.AsSpan(), tryParse: false)!;
298return IPAddressParser.Parse(utf8Text, tryParse: false)!;
303return IPAddressParser.Parse(ipSpan, tryParse: false)!;
464Span<char> span = stackalloc char[IPAddressParser.MaxIPv6StringLength];
466IPAddressParser.FormatIPv4Address(_addressOrScopeId, span) :
467IPAddressParser.FormatIPv6Address(_numbers, _addressOrScopeId, span);
503if (destination.Length >= IPAddressParser.MaxIPv4StringLength)
505charsWritten = IPAddressParser.FormatIPv4Address(_addressOrScopeId, destination);
511if (destination.Length >= IPAddressParser.MaxIPv6StringLength)
513charsWritten = IPAddressParser.FormatIPv6Address(_numbers, _addressOrScopeId, destination);
518Span<TChar> tmpDestination = stackalloc TChar[IPAddressParser.MaxIPv6StringLength];
519Debug.Assert(tmpDestination.Length >= IPAddressParser.MaxIPv4StringLength);
522IPAddressParser.FormatIPv4Address(PrivateAddress, tmpDestination) :
523IPAddressParser.FormatIPv6Address(_numbers, PrivateScopeId, tmpDestination);