ObjLoad

Load a dumped object from memory or file.

OutputVar := ObjLoad(AddressOrPath, Password)
Function Example: obj := ObjLoad(A_ScriptDir "\MyObj.bin")

Parameters

OutputVar

The name of the variable in which to store the loaded object.

AddressOrPath

Buffer object or a pointer to dumped object in memory.
This can be also a file path to load an object from file.

Password (optional)

The password if for dumped object if it was used in ObjDump, otherwise it can be omitted.

General Remarks

Only standard objects and arrays are supported (such that can be enumerated by for loop).
ComObject, RegExMatchObject, FileObject, Func and DynaCall objects are not supported.
Struct object can be dumped but ObjLoad will restore a normal object instead of a Struct object.
If original object has a custom "base" reference, it won't be dumped by ObjDump and will not be restored.

Examples

See ObjDump.