Skip to content

Instantly share code, notes, and snippets.

@zhangz
Forked from christiannagel/ArrayPool.cs
Created June 4, 2017 05:58
Show Gist options
  • Select an option

  • Save zhangz/5b24015b0df418b1edbab1b3d522da04 to your computer and use it in GitHub Desktop.

Select an option

Save zhangz/5b24015b0df418b1edbab1b3d522da04 to your computer and use it in GitHub Desktop.
Show memory address of array
unsafe private static void ShowAddress(string name, int[] item)
{
fixed (int* addr = item)
{
Console.Write($"\t0x{(ulong)addr:X}");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment