Skip to content

Instantly share code, notes, and snippets.

View acamilleri-seekers's full-sized avatar

acamilleri-seekers

  • Seekers Capital
  • Hong Kong
View GitHub Profile
@matsuda
matsuda / memoryAddress.swift
Last active March 14, 2024 09:41
Get memory address in Swift
///
/// https://stackoverflow.com/a/29741007
///
let s = Struct() // Struct
withUnsafePointer(to: s) {
print(String(format: "%p", $0)
}
///
/// http://stackoverflow.com/a/36539213/226791