Posted By

jx_boi on 09/07/10


Tagged

Fill bytes


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

Tyster


Fill Empty Bytes


 / Published in: C#
 

  1. private byte[] FillEmptyByte(byte[] a, int size)
  2. {
  3. byte[] cBytes;
  4. int fill = size - a.Length;
  5. if (fill > 0)
  6. {
  7. byte[] bFill = new byte[fill];
  8. cBytes = CombineByte(a, bFill);
  9. }
  10. else
  11. cBytes = a;
  12.  
  13. return cBytes;
  14. }

Report this snippet  

You need to login to post a comment.