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

◆ ValidateUrlEncodingParameters()

static bool System.Web.Util.HttpEncoder.ValidateUrlEncodingParameters ( [NotNullWhen(true)] byte[] bytes,
int offset,
int count )
inlinestaticprivate

Definition at line 625 of file HttpEncoder.cs.

626 {
627 if (bytes == null && count == 0)
628 {
629 return false;
630 }
631 if (bytes == null)
632 {
633 throw new ArgumentNullException("bytes");
634 }
635 if (offset < 0 || offset > bytes.Length)
636 {
637 throw new ArgumentOutOfRangeException("offset");
638 }
639 if (count < 0 || offset + count > bytes.Length)
640 {
641 throw new ArgumentOutOfRangeException("count");
642 }
643 return true;
644 }

References System.bytes, and System.count.

Referenced by System.Web.Util.HttpEncoder.UrlDecode(), System.Web.Util.HttpEncoder.UrlDecode(), and System.Web.Util.HttpEncoder.UrlEncode().