Skip to content

Instantly share code, notes, and snippets.

@djfr
Created September 24, 2013 16:50
Show Gist options
  • Save djfr/6687673 to your computer and use it in GitHub Desktop.
Save djfr/6687673 to your computer and use it in GitHub Desktop.
private static byte[] CreateByteArray(int size, byte b)
{
var array = new byte[size];
for (var i = 0; i < array.Length; i++)
{
array[i] = b;
}
return array;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment