Difference between revisions of "Lua:allocateSharedMemory"

From Cheat Engine
Jump to navigation Jump to search
Line 25: Line 25:
  
  
== See also ==
+
{{LuaSeeAlso}}
* [[Lua]]
 

Revision as of 22:00, 19 March 2017

function allocateSharedMemory(name, size)

Creates a shared memory object of the given size if it doesn't exist yet. If size is not given and there is no shared region with this name then the default size of 4096 is used

It then maps this shared memory block into the currently targeted process. It returns the address of mapped region in the target process

When the process closes, you can target another process and allocate the same block on there again. Then you can read the state before the process closed


Function Parameters

Parameter Type Description
name string The name of the block to allocate
size integer The prefered size of the allocated block


See also