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

◆ strlen()

static unsafe int System.String.strlen ( byte * ptr)
inlinestaticpackage

Definition at line 1428 of file String.cs.

1429 {
1430 int num = SpanHelpers.IndexOf(ref *ptr, 0, int.MaxValue);
1431 if (num < 0)
1432 {
1434 }
1435 return num;
1436 }
static void ThrowMustBeNullTerminatedString()
Definition String.cs:1439

References System.SpanHelpers.IndexOf(), and System.String.ThrowMustBeNullTerminatedString().

Referenced by System.String.Ctor().