начало задачи о зависимостях
This commit is contained in:
+14
-2
@@ -1,5 +1,7 @@
|
||||
|
||||
using System.Runtime.InteropServices;
|
||||
using mROA.Codegen;
|
||||
using mROA.Implementation.Test;
|
||||
|
||||
namespace mROA.Example;
|
||||
|
||||
@@ -7,7 +9,17 @@ public class MainX
|
||||
{
|
||||
public static void Main(string[] args)
|
||||
{
|
||||
CoCodegenMethodRepository a = new CoCodegenMethodRepository();
|
||||
|
||||
// CoCodegenMethodRepository a = new CoCodegenMethodRepository();
|
||||
unsafe
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public unsafe byte[] Convert<T>(T input)
|
||||
{
|
||||
var size = Marshal.SizeOf(typeof(T));
|
||||
var place = Marshal.AllocHGlobal(size);
|
||||
var pt = (T*)place;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user