private static bool IsUriValid(StringSegment chars) { var uri = chars; if (IsInUriBrackets(chars)) { uri = chars.Subsegment(1, chars.Length - 2); } return(uri != StringSegment.Empty && SipCharacters.IsValidUri(uri)); }
private static bool IsUriValid(ReadOnlyMemory <byte> bytes) { return(!bytes.IsEmpty && SipCharacters.IsValidUri(bytes.Span)); }
private static bool IsUriValid(ReadOnlyMemory <char> chars) { return(!chars.IsEmpty && SipCharacters.IsValidUri(chars.Span)); }