截取byte数组

2016-12-09  本文已影响0人  alohasingle

/*

*截取Byte数组

* begin:从哪一位开始

* count:截取的个数

*/

- (void)bytesplit2byte:(Byte[])src orc:(Byte[])orc begin:(NSInteger)begin count:(NSInteger)count{

memset(orc,0,sizeof(char)*count);

for(NSIntegeri = begin; i < begin+count; i++){

orc[i-begin] = src[i];

}

}

上一篇 下一篇

猜你喜欢

热点阅读