Frida Docs Unified
    Preparing search index...

    Scaffold class.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Accessors

    • get base(): Il2Cpp.Object

      Returns the same object, but having its parent class as class. It basically is the C# base keyword, so that parent members can be accessed.

      Example
      Consider the following classes:

      class Foo
      {
      int foo()
      {
      return 1;
      }
      }
      class Bar : Foo
      {
      new int foo()
      {
      return 2;
      }
      }

      then:

      const Bar: Il2Cpp.Class = ...;
      const bar = Bar.new();

      console.log(bar.foo()); // 2
      console.log(bar.base.foo()); // 1

      Returns Il2Cpp.Object

    • get class(): Class

      Gets the class of this object.

      Returns Class

    • get headerSize(): number

      Gets the Il2CppObject struct size, possibly equal to Process.pointerSize * 2.

      Returns number

    • get monitor(): Monitor

      Returns a monitor for this object.

      Returns Monitor

    • get size(): number

      Gets the size of the current object.

      Returns number

    Methods

    • Gets the non-static method with the given name (and optionally parameter count) of the current class hierarchy.

      Type Parameters

      Parameters

      • name: string
      • OptionalparameterCount: number

      Returns BoundMethod<T>

    • Creates a reference to this object.

      Parameters

      • pin: boolean

      Returns GCHandle

    • Returns string

    • Gets the non-static method with the given name (and optionally parameter count) of the current class hierarchy, if it exists.

      Type Parameters

      Parameters

      • name: string
      • OptionalparameterCount: number

      Returns BoundMethod<T>

    • Unboxes the value type (either a primitive, a struct or an enum) out of this object.

      Returns ValueType

    • Creates a weak reference to this object.

      Parameters

      • trackResurrection: boolean

      Returns GCHandle