|
@naim94a | |||||
|
#idatips Ever get a pointer to the middle of a struct?
Just add the __shifted keyword to the variable's type definition! pic.twitter.com/zvYs3dTU7w
|
||||||
|
||||||
|
GI
@ebp_esp_eip
|
25. sij |
|
Can't you just define another struct called person inside PersonNode?
|
||
|
|
||
|
Naim A.
@naim94a
|
25. sij |
|
You could, but in some cases Person is rarely used on it's own and defining it separately would make things uglier (a1->person->name, instead of a1->name). This also works with negative offsets, which is useful for upcasted c++ instances.
|
||
|
|
||