Пример #1
0
        /// <summary>
        /// Allocates the memory.
        /// </summary>
        /// <param name="size">The size.</param>
        /// <param name="alignment">The alignment.</param>
        /// <returns></returns>
        IMemory IHardwareAbstraction.AllocateMemory(uint size, uint alignment)
        {
            uint address = KernelMemory.AllocateMemory(size);

            return(new Memory(address, size));
        }
Пример #2
0
        /// <summary>
        /// Allocates the memory.
        /// </summary>
        /// <param name="size">The size.</param>
        /// <param name="alignment">The alignment.</param>
        /// <returns></returns>
        public override Memory AllocateMemory(uint size, uint alignment)
        {
            var address = KernelMemory.AllocateMemory(size);

            return(new Memory(address, size));
        }