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

◆ GetString()

static string System.Globalization.IcuLocaleData.GetString ( ReadOnlySpan< byte > buffer)
inlinestaticprivate

Definition at line 1857 of file IcuLocaleData.cs.

1858 {
1859 string text = string.FastAllocateString(buffer.Length);
1860 Span<char> span = new Span<char>(ref text.GetRawStringData(), buffer.Length);
1861 for (int i = 0; i < buffer.Length; i++)
1862 {
1863 span[i] = (char)buffer[i];
1864 }
1865 return text;
1866 }

References System.buffer, and System.text.

Referenced by System.Globalization.IcuLocaleData.GetLocaleDataMappedCulture(), and System.Globalization.IcuLocaleData.GetThreeLetterWindowsLanguageName().