fix: Fixes mobile titles not displaying properly (#1149)

This commit is contained in:
mark1145 2022-08-28 06:31:22 +10:00 committed by GitHub
parent 42f2c7f6ae
commit b8146f26f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 55 additions and 36 deletions

View file

@ -303,4 +303,12 @@ public static class StringHelpers
chars = chars[(indexOf + 1)..];
}
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static char[] ToPooledArray(this string str)
{
var chars = STArrayPool<char>.Shared.Rent(str.Length);
str.CopyTo(chars);
return chars;
}
}