Initialize byte array from portion of existing byte array c#

Posted by volody on Stack Overflow See other posts from Stack Overflow or by volody
Published on 2010-04-12T19:29:41Z Indexed on 2010/04/12 19:33 UTC
Read the original article Hit count: 571

Filed under:
|

Is there are an easy way to initialize byte array from portion of existing byte array. I C language is possible to use pointer to say like

char s[10] = new char[10];
char* b = s + 5;

Is it possible to do that in c#, like:

byte[] b = new byte[buffersize];
byte* header  = b + 5;
byte* data = b + 25;

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET