Fill Empty Bytes


/ Published in: C#
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.