Allocates size bytes of memory on Frida's private heap, or, if size is a multiple of Process#pageSize,
one or more raw memory pages managed by the OS. The allocated memory will be released when the returned
NativePointer value gets garbage collected. This means you need to keep a reference to it while the pointer
is being used by code outside the JavaScript runtime.
Allocates
size
bytes of memory on Frida's private heap, or, ifsize
is a multiple of Process#pageSize, one or more raw memory pages managed by the OS. The allocated memory will be released when the returned NativePointer value gets garbage collected. This means you need to keep a reference to it while the pointer is being used by code outside the JavaScript runtime.