6 references to SystemMaxDBCSCharSize
System.Private.CoreLib (6)
Internal\Runtime\CompilerHelpers\InteropHelpers.cs (2)
101
return (byte*)CoTaskMemAllocAndZeroMemory(checked((sb.Capacity + 2) * Marshal.
SystemMaxDBCSCharSize
));
119
return (byte*)CoTaskMemAllocAndZeroMemory(checked((chArray.Length + 2) * Marshal.
SystemMaxDBCSCharSize
));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshal.cs (2)
1027
long lnb = (s.Length + 1) * (long)
SystemMaxDBCSCharSize
;
1131
long lnb = (s.Length + 1) * (long)
SystemMaxDBCSCharSize
;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshal.Unix.cs (1)
38
Debug.Assert(bufferLength >= (s.Length + 1) *
SystemMaxDBCSCharSize
, "Insufficient buffer length passed to StringToAnsiString");
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshalling\AnsiStringMarshaller.cs (1)
80
if ((long)Marshal.
SystemMaxDBCSCharSize
* managed.Length >= buffer.Length)