It's similar to c
, where you would use the ->
operator (libHeader->ncmds
), requivalent to (*libHeader).ncmds
. That is, first your reference the pointer to get to the mach_header_64
value, then you access its ncmds
field.
In Swift, it's the exact same idea, with different syntax: libHeaver.pointee.ncmds
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…