fix: Fixes mobile titles not displaying properly (#1149)
This commit is contained in:
parent
42f2c7f6ae
commit
b8146f26f1
6 changed files with 55 additions and 36 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue