Skip to content

Instantly share code, notes, and snippets.

@zacktian89
Created September 4, 2013 03:39
Show Gist options
  • Select an option

  • Save zacktian89/6432535 to your computer and use it in GitHub Desktop.

Select an option

Save zacktian89/6432535 to your computer and use it in GitHub Desktop.
int array to byte array in C#
byte[] result = new byte[intArray.Length * sizeof(int)];
Buffer.BlockCopy(intArray, 0, result, 0, result.Length);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment