Frida Docs Unified
    Preparing search index...
    • 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.

      Parameters

      • size: number | UInt64

        Number of bytes to allocate.

      • Optionaloptions: MemoryAllocOptions

        Options to customize the memory allocation.

      Returns NativePointer