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

◆ IsValidIndex< T >() [1/2]

static bool System.Text.Encodings.Web.SpanUtility.IsValidIndex< T > ( ReadOnlySpan< T > span,
int index )
inlinestatic

Definition at line 10 of file SpanUtility.cs.

11 {
12 if ((uint)index >= (uint)span.Length)
13 {
14 return false;
15 }
16 return true;
17 }

References System.index, and System.ReadOnlySpan< T >.Length.