25 lines
496 B
C#
25 lines
496 B
C#
|
|
using System.Runtime.InteropServices;
|
|
using mROA.Codegen;
|
|
using mROA.Implementation.Test;
|
|
|
|
namespace mROA.Example;
|
|
|
|
public class MainX
|
|
{
|
|
public static void Main(string[] args)
|
|
{
|
|
// 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;
|
|
}
|
|
} |