Skip to content

Instantly share code, notes, and snippets.

@bnayae
Created May 12, 2018 19:31
Show Gist options
  • Save bnayae/70109241bd64070e719bde6e80c6dd01 to your computer and use it in GitHub Desktop.
Save bnayae/70109241bd64070e719bde6e80c6dd01 to your computer and use it in GitHub Desktop.
fixed (int* data = &Data[0])
{
for (int i = 0; i < Data.Length - (BUFFER_SIZE + 1); i += BUFFER_SIZE)
{
int* sub = data + i;
if (sub[BUFFER_SIZE - 1] != i + BUFFER_SIZE - 1)
throw new Exception();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment