Files
stgsharp/源代码/BenchMark/Program.cs
T

29 lines
602 B
C#

using BenchmarkDotNet.Running;
using BenchmarkDotNet.Attributes;
using System.Runtime.InteropServices;
using System.Reflection;
using System.Numerics;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using BenchmarkDotNet.Jobs;
namespace BenchMark
{
internal unsafe class Program
{
static void Main(string[] args)
{
uint[] array = new uint[] { 0, 10, 2, 3 };
fixed (uint* ptr = array)
{
IntPtr p = (IntPtr)ptr;
Console.WriteLine(*((uint*)p + 1));
}
}
}
}