public unsafe void RATMethods() { var xRAM = new byte[1024 * 1024]; fixed(byte *xPtr = xRAM) { RAT.Debug = true; RAT.Init(xPtr, (uint)xRAM.Length); var largePage = RAT.AllocPages(RAT.PageType.HeapLarge, 3); Assert.AreEqual(RAT.PageType.HeapLarge, RAT.GetPageType(largePage)); Assert.AreEqual(RAT.GetFirstRATIndex(largePage), RAT.GetFirstRATIndex((byte *)largePage + 20)); Assert.AreEqual(RAT.PageType.HeapLarge, RAT.GetPageType((byte *)largePage + RAT.PageSize)); } }