AllocateDebugMemory() 공개 메소드

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.
리턴 uint
예제 #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)
        }