How to split a byte array

前端 未结 7 1835
一个人的身影
一个人的身影 2020-12-03 20:20

I have a byte array in memory, read from a file. I would like to split the byte array at a certain point (index) without having to just create a new byte array and copy eac

7条回答
  •  余生分开走
    2020-12-03 21:00

    FYI. System.ArraySegment structure basically is the same thing as ArrayView in the code above. You can use this out-of-the-box structure in the same way, if you'd like.

提交回复
热议问题