美文网首页
截取byte数组

截取byte数组

作者: alohasingle | 来源:发表于2016-12-09 15:11 被阅读0次

/*

*截取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];

}

}

相关文章

网友评论

      本文标题:截取byte数组

      本文链接:https://www.haomeiwen.com/subject/tsgemttx.html