Drivers.Framework.Heap.Free(void*)

Here are the examples of the csharp api class Drivers.Framework.Heap.Free(void*) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Example 7

1. Example

Project: FlingOS
Source File: Heap.cs
[NoDebug]
        [NoGC]
        public static void* AllocZeroedAPB(uint size, uint boundary, String caller)
        {
            void* result = null;
            void* oldValue = null;
            uint resultAddr;
            do
            {
                oldValue = result;
                result = AllocZeroed(size, boundary, caller);
                resultAddr = (uint)result;
                if (oldValue != null)
                {
                    Free(oldValue);
                }
            } while (resultAddr/0x1000 != (resultAddr + size - 1)/0x1000);

            return result;
        }