9 references to SystemMaxDBCSCharSize
mscorlib (9)
system\runtime\interopservices\marshal.cs (2)
1242int nb = (s.Length + 1) * SystemMaxDBCSCharSize; 1912int nb = (s.Length + 1) * SystemMaxDBCSCharSize;
system\string.cs (1)
1441Contract.Assert(cbNativeBuffer >= (Length + 1) * Marshal.SystemMaxDBCSCharSize, "Insufficient buffer length passed to ConvertToAnsi");
system\stubhelpers.cs (6)
30byte[] buffer = new byte[(str.Length + 1) * Marshal.SystemMaxDBCSCharSize]; 41int cbAllocLength = (1 + 1) * Marshal.SystemMaxDBCSCharSize; 74if (pbNativeBuffer != null || Marshal.SystemMaxDBCSCharSize == 1) 80nb = (strManaged.Length + 1) * Marshal.SystemMaxDBCSCharSize; 381int nbytes = sizeof(uint) + ((cch + 1) * Marshal.SystemMaxDBCSCharSize); 1150int allocSize = (pManagedHome.Capacity * Marshal.SystemMaxDBCSCharSize) + 4;