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

◆ ValidateRanges()

static void System.Text.Encodings.Web.TextEncoder.ValidateRanges ( int startIndex,
int characterCount,
int actualInputLength )
inlinestaticprivateinherited

Definition at line 363 of file TextEncoder.cs.

364 {
365 if (startIndex < 0 || startIndex > actualInputLength)
366 {
367 throw new ArgumentOutOfRangeException("startIndex");
368 }
369 if (characterCount < 0 || characterCount > actualInputLength - startIndex)
370 {
371 throw new ArgumentOutOfRangeException("characterCount");
372 }
373 }

References System.startIndex.

Referenced by System.Text.Encodings.Web.TextEncoder.Encode(), and System.Text.Encodings.Web.TextEncoder.Encode().