diff --git a/src/main/StringHelper.cs b/src/main/StringHelper.cs index 5ba178b..c44012b 100644 --- a/src/main/StringHelper.cs +++ b/src/main/StringHelper.cs @@ -126,7 +126,7 @@ public static string ReadFixedLengthString(this NativeArray cString) return ReadFixedLengthString(cString.Pointer, cString.Length); } - private static int GetStringLength(byte* cString, int? maxLength = null) + public static int GetStringLength(byte* cString, int? maxLength = null) { byte* walk = cString; while (*walk != 0 && (maxLength == null || walk - cString < maxLength))