¡@

Home 

c# Programming Glossary: createmydata

C# performance - Using unsafe pointers instead of IntPtr and Marshal

http://stackoverflow.com/questions/17549123/c-sharp-performance-using-unsafe-pointers-instead-of-intptr-and-marshal

int length unsigned char bytes __declspec dllexport void CreateMyData struct MyData myData int length __declspec dllexport void DestroyMyData.. _MY_LIB_H_ MyLib.c #include stdlib.h #include MyLib.h void CreateMyData struct MyData myData int length int i myData struct MyData malloc.. myData NULL int length 100 1024 1024 printf C test n CreateMyData myData length if myData NULL printf Length d n myData length..