示例#1
0
        private static unsafe void WriteFatMethodHeader(byte[] buffer, uint pos, FatMethodHeader header)
        {
            fixed(byte *p = buffer)
            {
                FatMethodHeader *ptr = (FatMethodHeader *)(p + pos);

                *ptr = header;
            }
        }
示例#2
0
        private static unsafe FatMethodHeader ReadFatMethodHeader(byte[] buffer, uint pos)
        {
            FatMethodHeader methodHeader = new FatMethodHeader();

            fixed(byte *p = buffer)
            {
                FatMethodHeader *ptr = (FatMethodHeader *)(p + pos);

                methodHeader = *ptr;
            }

            return(methodHeader);
        }