1. 首页
  2. 数据库
  3. 其它
  4. 浅谈C#各种数组直接的数据复制/转换

浅谈C#各种数组直接的数据复制/转换

上传者: 2020-12-30 14:13:40上传 PDF文件 50.33KB 热度 6次
之前做Opengl程序,用的的C#的SharpGL这个库,里面有各种奇怪绑定的函数,比如原型为: void glInterleavedArrays(uint format, int stride, void * pointer); 的函数被他绑定成: private static extern void glInterleavedArrays(uint format, int stride, int[] pointer); 然后我就被逼着学习了各种float[] 转 int[] 的方法,比较他们的效率(其实我还是感觉c++比较快,一个指针类型转换,欧啦) 下面是我写的各种数组赋值转换的方法
下载地址
用户评论