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)
332
StringToAnsiString
(pManaged, len, pNative, /*terminateWithNull=*/true, bestFit, throwOnUnmappableChar);
342
StringToAnsiString
(pManaged, str.Length, pNative, /*terminateWithNull=*/true, bestFit, throwOnUnmappableChar);
421
return
StringToAnsiString
(pManaged, lenUnicode, null, /*terminateWithNull=*/true, bestFit, throwOnUnmappableChar);
440
StringToAnsiString
(pManaged, lenUnicode, pNative, /*terminateWithNull=*/false, bestFit, throwOnUnmappableChar);
484
byte* nativeArray =
StringToAnsiString
(&managedValue, 1, null, /*terminateWithNull=*/false, bestFit, throwOnUnmappableChar);