daily update on 20240213 by nitload youmu. 逐步弃用GLFW,正在使用wgl重写glfw底层,相关实现转移到C#实现,SSC彻底变成线性代数计算器。
This commit is contained in:
@@ -6,6 +6,7 @@ using System.Numerics;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.Versioning;
|
||||
using BenchmarkDotNet.Jobs;
|
||||
using Microsoft.Diagnostics.Tracing.Parsers.Clr;
|
||||
|
||||
namespace BenchMark
|
||||
{
|
||||
@@ -14,9 +15,9 @@ namespace BenchMark
|
||||
|
||||
static void Main(string[] args)
|
||||
{
|
||||
TypeCode c = TypeCode.Int32;
|
||||
Console.WriteLine(c);
|
||||
|
||||
int[] a = new int[10];
|
||||
IntPtr p = GCHandle.Alloc(a, GCHandleType.Pinned).AddrOfPinnedObject();
|
||||
Console.WriteLine(*(int*)p);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user