Overview
Returns the length (in bytes) of the given 'Memory' when 'Memory' be memory address, Returns SizeOf Structure if 'Memory' be structure address and returns size of your array if 'Memory be array address.
(number) Memory address or Structure address or Array address.
(number) Returns the length (in bytes) of the given 'Memory' when 'Memory' be memory address, Returns SizeOf Structure if 'Memory' be structure address and returns size of your array if 'Memory' be array address.
When adding an action with the script editor, you can use this field to specify a variable that the return value will be stored in.
mem = Memory.Allocate(1024) Dialog.Message("Size of Memory", Memory.Size(mem)) Memory.Free(mem)
struct = Memory.CreateStructure("long, short, int, double, float") Dialog.Message("Size of Structure", Memory.Size(struct)) Memory.FreeStructure(struct)
array = Memory.CreateArray(ARRAY_INT, 20) Dialog.Message("Size of Array", Memory.Size(array)) Memory.FreeArray(array)
See also: Related Actions