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

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

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

Definition at line 20 of file SpanUtility.cs.

21 {
22 if ((uint)index >= (uint)span.Length)
23 {
24 return false;
25 }
26 return true;
27 }

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