7 internal unsafe
static IntPtr ConvertToNative(
string strManaged,
bool fBestFit,
bool fThrowOnUnmappableChar, ref
int cch)
9 if (strManaged ==
null)
13 cch = strManaged.Length;
16 int* ptr2 = (
int*)ptr;
40 return new string((sbyte*)(
void*)pNative, 0, cch);
static void Memmove(ref byte dest, ref byte src, nuint len)
static void FreeCoTaskMem(IntPtr ptr)
static IntPtr AllocCoTaskMem(int cb)
static readonly int SystemMaxDBCSCharSize
static unsafe ref byte GetArrayDataReference(Array array)
static unsafe byte[] DoAnsiConversion(string str, bool fBestFit, bool fThrowOnUnmappableChar, out int cbLength)
static void ClearNative(IntPtr pNative)
static unsafe string ConvertToManaged(IntPtr pNative, int cch)
static unsafe IntPtr ConvertToNative(string strManaged, bool fBestFit, bool fThrowOnUnmappableChar, ref int cch)
static readonly IntPtr Zero