Rupert

::Me(C#,VC,MonoTouch,MonoforAndroid);

导航

2013年12月25日

摘要: {int[] src = new[] { 1, 2, 3, 4, 5, 6 };const int destLen = 4;//目标数组大小int int_size = sizeof(int);//用于获取值类型的字节大小。int[] dest = new int[destLen];//只支持基元类型,按字节偏移复制Buffer.BlockCopy(src, (src.Length - destLen) * int_size, dest, 0, destLen * int_size);foreach (var i in dest){Console.Write(i + "") 阅读全文

posted @ 2013-12-25 11:30 ArRan 阅读(728) 评论(0) 推荐(0) 编辑