Exemplo n.º 1
0
        public bool CheckEntryFromAddressDynamicTable(IntPtr entryAddress)
        {
            int entry = Math.DivRem((int)((ulong)entryAddress - (ulong)_dynamicRegion.Pointer), DynamicTableStride, out int rem);

            return(rem == 0 && DynTable.EntryIsValid(entry));
        }
Exemplo n.º 2
0
        public IntPtr GetEntryAddressDynamicTable(int entry)
        {
            Debug.Assert(DynTable.EntryIsValid(entry));

            return(_dynamicRegion.Pointer + entry * DynamicTableStride);
        }