6 references to StringToAnsiString
System.Private.CoreLib (6)
Internal\Runtime\CompilerHelpers\InteropHelpers.cs (1)
48
PInvokeMarshal.
StringToAnsiString
(pManaged, lenUnicode, pNative, /*terminateWithNull=*/true, bestFit, throwOnUnmappableChar);
System\Runtime\InteropServices\PInvokeMarshal.cs (5)
319
StringToAnsiString
(pManaged, len, pNative, /*terminateWithNull=*/true, bestFit, throwOnUnmappableChar);
329
StringToAnsiString
(pManaged, str.Length, pNative, /*terminateWithNull=*/true, bestFit, throwOnUnmappableChar);
408
return
StringToAnsiString
(pManaged, lenUnicode, null, /*terminateWithNull=*/true, bestFit, throwOnUnmappableChar);
427
StringToAnsiString
(pManaged, lenUnicode, pNative, /*terminateWithNull=*/false, bestFit, throwOnUnmappableChar);
471
byte* nativeArray =
StringToAnsiString
(&managedValue, 1, null, /*terminateWithNull=*/false, bestFit, throwOnUnmappableChar);