8 references to MaxSmallInputElementCount
System.Private.CoreLib (8)
src\libraries\System.Private.CoreLib\src\System\Text\UTF8Encoding.Sealed.cs (8)
45
if (s?.Length <=
MaxSmallInputElementCount
)
58
Debug.Assert(s.Length <=
MaxSmallInputElementCount
);
60
byte* pDestination = stackalloc byte[
MaxSmallInputElementCount
* MaxUtf8BytesPerChar];
67
bytesWritten = GetBytesCommon(pSource, sourceLength, pDestination,
MaxSmallInputElementCount
* MaxUtf8BytesPerChar);
123
if (bytes?.Length <=
MaxSmallInputElementCount
)
136
Debug.Assert(bytes.Length <=
MaxSmallInputElementCount
);
138
char* pDestination = stackalloc char[
MaxSmallInputElementCount
]; // each byte produces at most one char
145
charsWritten = GetCharsCommon(pSource, sourceLength, pDestination,
MaxSmallInputElementCount
);