7 references to MaxUtf8BytesPerChar
System.Private.CoreLib (7)
src\libraries\System.Private.CoreLib\src\System\Text\UTF8Encoding.cs (1)
816byteCount *= MaxUtf8BytesPerChar;
src\libraries\System.Private.CoreLib\src\System\Text\UTF8Encoding.Sealed.cs (6)
60byte* pDestination = stackalloc byte[MaxSmallInputElementCount * MaxUtf8BytesPerChar]; 67bytesWritten = GetBytesCommon(pSource, sourceLength, pDestination, MaxSmallInputElementCount * MaxUtf8BytesPerChar); 68Debug.Assert(0 <= bytesWritten && bytesWritten <= s.Length * MaxUtf8BytesPerChar); 81if ((uint)charCount > (int.MaxValue / MaxUtf8BytesPerChar) - 1) 93return (charCount * MaxUtf8BytesPerChar) + MaxUtf8BytesPerChar;