Slide 28
Slide 28 text
SIRIKIT AND ME
EXTENSION - MEMORY
▸ ·ͣɺAppleͱ Orangeͱ͍͏ೋͭͷΞϓϦΛ࡞Γ·͢ɻ
▸ AppleΞϓϦͰɺIntϙΠϯλΛ֬อ͠ɺͦ͜ʹʮ12345ʯΛ͍Ε·͢ɻ
▸ ͦͷIntϙΠϯλͷΞυϨεΛهɻ
let ApplePtr = UnsafeMutablePointer.allocate(capacity:1)
ApplePtr.pointee = 12345
let AppleValue = ApplePtr.pointee
print(ApplePtr) // 0x00000001c0013570
print(AppleValue) // 12345