AllocateDebugMemory() public method

Allocates debug memory on the xbox. Address space of 0xB0000000 to 0xC0000000.
public AllocateDebugMemory ( uint size ) : uint
size uint Size of memory to be allocated. Note that an unaligned size will be rounded up to the next 4kb page boundary.
return uint
Beispiel #1
0
        /// <summary>
        /// Changes the script buffer size.
        /// </summary>
        /// <param name="size"></param>
        public void ChangeScriptBufferSize(uint size)
        {
            if (ScriptBufferAddress != 0xB0037800)
            {
                Xbox.FreeMemory(ScriptBufferAddress);
            }

            ScriptBufferAddress = Xbox.AllocateDebugMemory(size);
            ScriptBufferSize    = size;
            Xbox.SetMemory(0xB00292D0, ScriptBufferAddress);   // reroutes the ScriptBufferAddress ptr...(assumes were already running v7887 xbdm)
        }