![]() |
От: | Аноним | |
Дата: | 23.06.14 13:06 | ||
Оценка: |
[DllImport("msvcrt.dll", SetLastError = false, CallingConvention= CallingConvention.Cdecl)]
static extern unsafe IntPtr memmove(double* dest, MyStruct* src, int count);
///.......
// MyStruct - размер 128
MyStruct data = GetData();
double[] array = new double[128];
fixed (MyStruct* myStruct = &data)
fixed (double* myArray = array)
memmove(myArray, myStruct, 128);