From 38098e06b9eeb5ffd5e9280b53f210f02bcbfc6f Mon Sep 17 00:00:00 2001 From: Jhett Black <10942655+jhett12321@users.noreply.github.com> Date: Sun, 23 Jun 2024 16:45:59 +0200 Subject: [PATCH] Expose StringHelper.GetStringLength (#9) --- src/main/StringHelper.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))