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

◆ GetFixedBufferStringLength()

static int System.FixedBufferExtensions.GetFixedBufferStringLength ( this ReadOnlySpan< char > span)
inlinestaticpackage

Definition at line 15 of file FixedBufferExtensions.cs.

16 {
17 int num = span.IndexOf('\0');
18 if (num >= 0)
19 {
20 return num;
21 }
22 return span.Length;
23 }

References System.ReadOnlySpan< T >.Length.