开发者

c# take only half of the byte array

开发者 https://www.devze.com 2023-02-26 12:34 出处:网络
Question is simple, i get the first half of the byte array like this: myArray.Take(128).ToArray(); So now how would i get the rest o开发者_运维知识库f the array without the first 128 bytes. Is ther

Question is simple, i get the first half of the byte array like this:

myArray.Take(128).ToArray();

So now how would i get the rest o开发者_运维知识库f the array without the first 128 bytes. Is there something similar to Take() or i just have to copy them to a new array?


You can use Skip:

myArray.Skip(128).ToArray();
0

精彩评论

暂无评论...
验证码 换一张
取 消