Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ValidateUrlEncodingParameters()

static bool System.Net.WebUtility.ValidateUrlEncodingParameters ( byte[] bytes,
int offset,
int count )
inlinestaticprivate

Definition at line 888 of file WebUtility.cs.

889 {
890 if (bytes == null && count == 0)
891 {
892 return false;
893 }
894 if (bytes == null)
895 {
896 throw new ArgumentNullException("bytes");
897 }
898 if (offset < 0 || offset > bytes.Length)
899 {
900 throw new ArgumentOutOfRangeException("offset");
901 }
903 {
904 throw new ArgumentOutOfRangeException("count");
905 }
906 return true;
907 }

References System.bytes, and System.count.

Referenced by System.Net.WebUtility.UrlDecodeInternal(), and System.Net.WebUtility.UrlEncodeToBytes().