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