objc ¤
Apple Objective-C Runtime Support
This module implements support for analyzing the Apple Objective-C runtime. As expected, Apple provides no oficial specification for the internal ABI of ObjC and no guarantees of its stability, and so this module is not guaranteed to work on all versions of Darwin.
Classes:
-
Object
– -
Class
– -
InstanceVariable
–An Objective-C Instance Variable.
-
ClassProperty
– -
Selector
–An Objective-C Selector.
-
Method
–An Objective-C Method Pointer.
Attributes:
-
T
–
Class ¤
Bases: Object
Attributes:
-
superclass
(Class | None
) – -
name
(bytes
) – -
methods
(Generator[Method]
) – -
ivars
(Generator[InstanceVariable]
) – -
properties
(Generator[ClassProperty]
) – -
is_metaclass
(bool
) – -
cls
(Class | None
) –
InstanceVariable ¤
An Objective-C Instance Variable.
Instance Variables are NOT objects!
Attributes:
-
offset
(int
) –The offset in bytes of this value from the start of the object instance.
-
name
(bytes
) –The name of this instance variable.
-
typename
(bytes
) –The name of the type of this instance variable.
-
alignment
(int
) –The alignment of this instance variable, in bytes.
-
size
(int
) –The size of this instance variable, in bytes.
offset property
¤
The offset in bytes of this value from the start of the object instance.
ClassProperty ¤
Selector ¤
Method ¤
An Objective-C Method Pointer.
Methods are NOT objects!
A method pointer can be one of three types: Small, small direct, and big.
Pointer types are distinguished by the two least significant bits in the integer representation of the pointer. A value of 1
is used for both small pointer types, while all other values are used to distinguish between the signing nuances of big pointers.
Small pointers 32-bit wide and relative to a given base value. Big pointers contain the pointers themselves, and they may or may not be signed.
Small direct pointers are small pointers that reside in the shared cache, and their selectors are relative to @selector(🤯), while the selectors of regular small pointers are relative to the pointers themselves.
Attributes: