Exemple #1
0
        public static byte[] GetAsmJitBytes(CodeContext <Action> c)
        {
            IntPtr patchSiteCodeJitRaw;
            int    patchSiteCodeJitSize;

            c.Compile(out patchSiteCodeJitRaw, out patchSiteCodeJitSize);
            var patchSiteCodeJitBytes = new byte[patchSiteCodeJitSize];

            Marshal.Copy(patchSiteCodeJitRaw, patchSiteCodeJitBytes, 0, patchSiteCodeJitSize);
            return(patchSiteCodeJitBytes);
        }