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));
        }
예제 #2
0
 private static bool IsUriValid(ReadOnlyMemory <byte> bytes)
 {
     return(!bytes.IsEmpty && SipCharacters.IsValidUri(bytes.Span));
 }
예제 #3
0
 private static bool IsUriValid(ReadOnlyMemory <char> chars)
 {
     return(!chars.IsEmpty && SipCharacters.IsValidUri(chars.Span));
 }