Posted By

jx_boi on 09/07/10


Tagged

bytes


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

Tyster


Combine Bytes


 / Published in: C#
 

  1. private byte[] Combine(byte[] a, byte[] b)
  2. {
  3. byte[] c = new byte[a.Length + b.Length];
  4. System.Buffer.BlockCopy(a, 0, c, 0, a.Length);
  5. System.Buffer.BlockCopy(b, 0, c, a.Length, b.Length);
  6. return c;
  7. }

Report this snippet  

You need to login to post a comment.