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